Template:User Wiki age: Difference between revisions
Jump to navigation
Jump to search
m (Added translation switching and a Russian translation to the template) |
|||
Line 9: | Line 9: | ||
|info-s = 7 | |info-s = 7 | ||
|info-fc = #000000 | |info-fc = #000000 | ||
| info = <small>''As of {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}},''<br /></small>I have been a [[Main_Page|Portal Wikipedian]] for <!-- | | info = {{lang | ||
|en = <small>''As of {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}},''<br /></small>I have been a [[Main_Page|Portal Wikipedian]] for <!-- | |||
//-->{{#expr:{{CURRENTYEAR}}-{{{year}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month}}} | //-->{{#expr:{{CURRENTYEAR}}-{{{year}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month}}} | ||
|0 | |0 | ||
Line 91: | Line 92: | ||
|08=August | |08=August | ||
|09=September}} {{{day}}}, {{{year}}})</small> | |09=September}} {{{day}}}, {{{year}}})</small> | ||
|info-c = #C0DFFF | |||
| info-p = 2px 4px | |||
}} | |||
|ru = <small>''На момент {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} г.''<br /></small>Я был [[Main_Page|википедистом Portal]] в течение <!-- | |||
//-->{{#expr:{{CURRENTYEAR}}-{{{year}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month}}} | |||
|0 | |||
|{{#ifexpr:{{CURRENTMONTH}}<{{{month|02}}} | |||
|1 | |||
|{{#ifexpr:{{CURRENTDAY}}>={{{day}}} | |||
|0 | |||
|1 | |||
}} | |||
}} | |||
}}}} {{#ifexpr: {{#expr: {{CURRENTYEAR}}-{{{year}}}-{{#ifexpr:{{CURRENTMONTH}}>{{{month}}} | |||
|0 | |||
|{{#ifexpr:{{CURRENTMONTH}}<{{{month}}} | |||
|1 | |||
|{{#ifexpr:{{CURRENTDAY}}>={{{day}}} | |||
|0 | |||
|1 | |||
}} | |||
}} | |||
}}}} != 1 | лет | года}}, <!-- | |||
//-->{{#expr:{{CURRENTMONTH}}-{{{month}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day}}} | |||
|{{#ifexpr:{{CURRENTMONTH}}>={{{month}}} | |||
|0 | |||
|12 | |||
}} | |||
|{{#ifexpr:{{CURRENTMONTH}}>{{{month}}} | |||
|-1 | |||
|11 | |||
}} | |||
}}}} <!-- | |||
//-->{{#ifexpr: {{#expr:{{CURRENTMONTH}}-{{{month}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day}}} | |||
|{{#ifexpr:{{CURRENTMONTH}}>={{{month}}} | |||
|0 | |||
|12 | |||
}} | |||
|{{#ifexpr:{{CURRENTMONTH}}>{{{month}}} | |||
|-1 | |||
|11 | |||
}} | |||
}}}} != 1 | месяцев | месяца}} <!-- | |||
//-->и {{#expr:{{CURRENTDAY}}-{{{day}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day}}} | |||
|0 | |||
|{{#switch:{{CURRENTMONTH}} | |||
|5|7|10|12=30 | |||
|1|2|4|6|8|9|11=31 | |||
|3={{#ifexpr:{{CURRENTYEAR}} mod 4=0 | |||
|29 | |||
|28 | |||
}} | |||
}} | |||
}}}} {{#ifexpr: {{#expr:{{CURRENTDAY}}-{{{day}}}+{{#ifexpr:{{CURRENTDAY}}>={{{day}}} | |||
|0 | |||
|{{#switch:{{CURRENTMONTH}} | |||
|5|7|10|12=30 | |||
|1|2|4|6|8|9|11=31 | |||
|3={{#ifexpr:{{CURRENTYEAR}} mod 4=0 | |||
|29 | |||
|28 | |||
}} | |||
}} | |||
}}}} != 1 | дней | дня}}. <small>(с {{#switch: {{{month}}} | |||
|1=января | |||
|2=февраля | |||
|3=марта | |||
|4=апреля | |||
|5=мая | |||
|6=июня | |||
|7=июля | |||
|8=августа | |||
|9=сентября | |||
|10=октября | |||
|11=ноября | |||
|12=декабря | |||
|01=января | |||
|02=февраля | |||
|03=марта | |||
|04=апреля | |||
|05=мая | |||
|06=июня | |||
|07=июля | |||
|08=августа | |||
|09=сентября}} {{{day}}}, {{{year}}})</small> | |||
|info-c = #C0DFFF | |info-c = #C0DFFF | ||
| info-p = 2px 4px | | info-p = 2px 4px |
Revision as of 00:04, 8 January 2023
As of May 13, 2024, I have been a Portal Wikipedian for Expression error: Unrecognized punctuation character "{". Expression error: Unexpected < operator., Expression error: Unrecognized punctuation character "{". Expression error: Unexpected < operator., and Expression error: Unrecognized punctuation character "{". Expression error: Unexpected < operator.. (since {{{day}}}, {{{year}}}) |
The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.
This is normal.
Documentation for User Wiki age
Usage
Sample code | Resulting infobox | ||
---|---|---|---|
{{User Wiki age|day=12|month=02|year=2011}} |
| ||
{{User Wiki age|year=2011|month=02|day=12}} |
| ||
{{User Wiki age|year=2011|month=02|day=12|link=true}} |
| ||
{{User Wiki age|day=12|month=02|year=2011|link=true}} |
|