Template:Calendar: Difference between revisions

From Protospace Wiki
Jump to navigation Jump to search
(Created page with "<includeonly> {{calendar legend}} {| class="wikitable" ! style="width:150px;" | Sunday ! style="width:150px;" | Monday ! style="width:150px;" | Tuesday ! style="width:150px;"...")
 
m (removed problematic newline)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{calendar legend}}
{{calendar legend}}
{| class="wikitable" style="width:100%;"
 
! style="min-width:150px; width:14.2857%;" | Sunday
{| class="wikitable"
! style="min-width:150px; width:14.2857%;" | Monday
! style="width:150px;" | Sunday
! style="min-width:150px; width:14.2857%;" | Tuesday
! style="width:150px;" | Monday
! style="min-width:150px; width:14.2857%;" | Wednesday
! style="width:150px;" | Tuesday
! style="min-width:150px; width:14.2857%;" | Thursday
! style="width:150px;" | Wednesday
! style="min-width:150px; width:14.2857%;" | Friday
! style="width:150px;" | Thursday
! style="min-width:150px; width:14.2857%;" | Saturday
! style="width:150px;" | Friday
! style="width:150px;" | Saturday
|- style="height:100px; vertical-align:top;"
|- style="height:100px; vertical-align:top;"
|
|
|
|
|
|
  {{event open house|19:00|Meet & Geek}}
|
|
|
|
Line 22: Line 21:
|
|
|
|
  {{event open house|19:00|Meet & Geek}}
|
|
|
|
Line 30: Line 30:
|
|
|
|
  {{event open house|19:00|Meet & Geek}}
|
|
|
|
Line 38: Line 39:
|
|
|
|
  {{event open house|19:00|Meet & Geek}}
|
|
|
|
Line 46: Line 48:
|
|
|
|
  {{event open house|19:00|Meet & Geek}}
|
|
|
|
Line 58: Line 61:
|
|
|
|
|}
|}</includeonly>
</includeonly>
<noinclude>
<noinclude>
This template will create a blank calendar. The calendar can be added to a page by typing <code>{{subst:calendar}}</code> where you want it to appear. The page should then be saved, and when you edit the page again the calendar will be there. The numbers will need to be added manually. The markup for each row of the calendar will initially look like this:
This template will create a blank calendar. The calendar can be added to a page by typing <code><nowiki>{{subst:calendar}}</nowiki></code> where you want it to appear. The page should then be saved, and when you edit the page again the calendar will be there. The numbers will need to be added manually. The markup for each row of the calendar will initially look like this:


<pre>
<pre>
Line 88: Line 90:


The three apostrophes on either side of the numbers will make them bold, which helps them to stand out from the events listed on the calendar. The calendar has six rows by default, the last one should be removed manually if it is not needed.
The three apostrophes on either side of the numbers will make them bold, which helps them to stand out from the events listed on the calendar. The calendar has six rows by default, the last one should be removed manually if it is not needed.
[[Category:Calendar templates]]
</noinclude>
</noinclude>

Latest revision as of 08:36, 1 November 2019


This template will create a blank calendar. The calendar can be added to a page by typing {{subst:calendar}} where you want it to appear. The page should then be saved, and when you edit the page again the calendar will be there. The numbers will need to be added manually. The markup for each row of the calendar will initially look like this:

|- style="height:100px; vertical-align:top;"
|
|
|
|
|
|
|

For example, if the the first day of the month was a Tuesday, the first row should be edited to look like this:

|- style="height:100px; vertical-align:top;"
|              <!-- This is Sunday -->
|              <!-- Monday -->
| '''1'''      <!-- This is Tuesday, so the cells should be numbered starting here. -->
| '''2'''
| '''3'''
| '''4'''
| '''5'''

The three apostrophes on either side of the numbers will make them bold, which helps them to stand out from the events listed on the calendar. The calendar has six rows by default, the last one should be removed manually if it is not needed.