Template:Republican Calendar: Difference between revisions
Appearance
Content deleted Content added
m typo |
m fixed overflow after midnight |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ |
{{Republican Calendar/1|MO={{#if:{{{1|}}}|{{{2|0}}}|1}}|y={{#ifexpr:{{{1|0}}}|{{{1}}}|{{LOCALREPYEAR}}}} |
||
|gy={{LOCALYEAR}}|gm={{LOCALMONTH}}|gd={{LOCALDAY2}} |
|gy={{LOCALYEAR}}|gm={{LOCALMONTH}}|gd={{LOCALDAY2}} |
||
|pt={{#if:{{{3|}}}|2|{{#ifexpr:{{{1|0}}}|0|1}}}} |
|pt={{#if:{{{3|}}}|2|{{#ifexpr:{{{1|0}}}|0|1}}}} |
||
|dnr={{#expr:{{{2|1}}}*30+{{{3|1}}}-31}} |
|dnr={{#expr:{{{2|1}}}*30+{{{3|1}}}-31}} |
||
|t={{LOCALHOUR}}:{{#time:i}}:{{#time:s}}|{{#expr:( |
|t={{LOCALHOUR}}:{{#time:i}}:{{#time:s}}|{{#expr:({{#time:U}}+561)mod86400/8640}}}}<noinclude>{{doc}}<!-- place category and language links on the /doc sub-page, not here --> |
||
__NOTOC__ |
|||
Template '''<nowiki>{{Republican Calendar}}</nowiki>''' shows sheets of the French republican calendar. |
|||
* Without parameters the current month is shown, with the current day highlighted. |
|||
* With parameter 0 the current year is shown, with the current day highlighted. |
|||
* With one parameter the indicated year is shown. |
|||
* With two parameters, year + month, the indicated month is shown. |
|||
* With three parameters, year + month + day, the indicated date is highlighted. |
|||
* The complementary days are indicated as month 13. |
|||
====Examples==== |
|||
<pre> |
|||
* {{Republican Calendar}} shows the current month |
|||
* {{Republican Calendar|0}} current year |
|||
* {{Republican Calendar|123}} year 123 |
|||
* {{Republican Calendar|123|4}} fourth month of the year 123 |
|||
* {{Republican Calendar|123|4|26}} with day 26 highlighted |
|||
</pre> |
|||
====Adaptation for other Wikis==== |
|||
* [[template:GregMonthName]] + [[template:GregDayName]] contain the names of the months and days of the week. |
|||
* [[template:RepMonthNames]] contains the links to the pages about the months. |
|||
* [[French Republican Calendar/RommeSystem]] contains the leap year remarks. |
|||
* [[template:14RepMonths/3]] contains the header text for the collapsible conversion table. |
|||
* [[template:RepMonth]] and [[template:JoursComplement]] contain [[template:Roman]]; this template converts to Roman numerals, and probably has another name, for instance template:Nombre en romain. |
|||
* Change the subpage names (French Republican Calendar/...) according to your own page name, and adapt [[template:NavigationRepYears]]. |
|||
[[Category:Time, date and calendar templates|{{PAGENAME}}]] |
|||
[[Category:French Republican Calendar|{{PAGENAME}}]] |
|||
[[Category:French Republican Calendar templates|{{PAGENAME}}]] |
|||
[[de:Vorlage:RepublikanischerKalender]] |
|||
[[fr:modèle:Calendrier Républicain]] |
|||
[[nl:sjabloon:Republikeinse Kalender]] |
|||
</noinclude> |
Latest revision as of 11:05, 21 March 2016
Year: 233 | Month: Nivôse | Year: CCXXXIII | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
{{Republican Calendar}} shows sheets of the French Republican Calendar.
Usage
[edit]- Without parameters the current month is shown, with the current day highlighted.
- With parameter 0 the current year is shown, with the current day highlighted.
- With one parameter the indicated year is shown.
- With two parameters, year + month, the indicated month is shown.
- With three parameters, year + month + day, the indicated date is highlighted.
- The complementary days are indicated as month 13.
Examples
[edit]* {{RepublicanCalendar}} shows the current month
* {{RepublicanCalendar|0}} current year
* {{RepublicanCalendar|123}} year 123
* {{RepublicanCalendar|123|4}} fourth month of the year 123
* {{RepublicanCalendar|123|4|26}} with day 26 highlighted
Adaptation for other wikis
[edit]- template:GregMonthName + template:GregDayName contain the names of the months and days of the week.
- template:RepMonthNames contains the links to the pages about the months.
- French Republican Calendar/RommeSystem contains the leap year remarks.
- Template:Republican Calendar/conversion3 contains the header text for the collapsible conversion table.
- template:RepMonth and template:JoursComplement contain template:Roman; this template converts to Roman numerals, and probably has another name, for instance template:Nombre en romain.