Template:Republican Calendar: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
m fixed overflow after midnight |
||
(17 intermediate revisions by 4 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}} |
||
|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}}}- |
|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 highlihted |
|||
</pre> |
|||
====Adaptation for other Wikis==== |
|||
* <nowiki>{{GregMonthName}} + {{GregDayName}}</nowiki> contain the names of the months and days of the week. |
|||
* <nowiki>{{RepMonthNames}}</nowiki> contains the links to the pages about the months. |
|||
* <nowiki>{{NavigationRepYears}}</nowiki> contains the link to the return page. |
|||
* <nowiki>{{RommeSystem}}</nowiki> contains the leap year remarks. |
|||
* <nowiki>{{14RepMonths/3}}</nowiki> contains the header text for the collapsible conversion table. |
|||
* <nowiki>{{ShowRepMonth}} and {{JoursComplement}} contain {{Roman}}</nowiki>; this template converts to Roman numerals, and probably has another name, for instance <nowiki>{{Romain}}</nowiki>. |
|||
[[Category:French Republican Calendar templates|{{PAGENAME}}]] |
|||
[[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.