5,626
edits
m (Undo revision 1149784 by TheShinyMew (talk) Don't change the example coding without changing the resulting image.) |
(since its not protected i assume anyone can edit this. hope there's no mistake in the code) |
||
Line 1: | Line 1: | ||
{| class="userboxitem" style="border: 1px solid #374; background: #{{{5|{{grass color}}}}}; {{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" cellspacing="0" cellpadding="0" | {| class="userboxitem" style="border: 1px solid #374; background: #{{{5|{{grass color}}}}}; {{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" cellspacing="0" cellpadding="0" | ||
! style="background: #{{{4|9e9}}}; {{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" | [[Image:{{{2|251}}}.png|{{{3|60}}}px|link=]] | ! style="background: #{{{4|9e9}}}; {{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" | [[Image:{{{2|251}}}.png|{{{3|60}}}px|link=]] | ||
| style="color: #374;" | This user is '''[[wp:{{{1}}} (number)#Age {{{1}}}|<span style="color: #{{{6|00A550}}};">{{{1}}}</span>]]''' years old. | | style="color: #374;" | This user is '''[[wp:{{#switch:{{{1|}}}|={{#expr:({{CURRENTYEAR}})-({{{year|2001}}})-(({{CURRENTMONTH}})<({{{month|02}}})or({{CURRENTMONTH}})=({{{month|02}}})and({{CURRENTDAY}})<({{{day|17}}}))}}|{{{1}}}}} (number)#Age {{#switch:{{{1|}}}|={{#expr:({{CURRENTYEAR}})-({{{year|2001}}})-(({{CURRENTMONTH}})<({{{month|02}}})or({{CURRENTMONTH}})=({{{month|02}}})and({{CURRENTDAY}})<({{{day|17}}}))}}|{{{1}}}}}|<span style="color: #{{{6|00A550}}};">{{#switch:{{{1|}}}|={{#expr:({{CURRENTYEAR}})-({{{year|2001}}})-(({{CURRENTMONTH}})<({{{month|02}}})or({{CURRENTMONTH}})=({{{month|02}}})and({{CURRENTDAY}})<({{{day|17}}}))}}|{{{1}}}}}</span>]]''' years old. | ||
|}<noinclude>'''How to change''' | |}<noinclude>'''How to change''' | ||
Line 14: | Line 14: | ||
#Another background color. | #Another background color. | ||
#The link's text color. | #The link's text color. | ||
If you want your age to be updated automatically every year then leave the first field ("Your age") blank and add:<br> | |||
year=your birth year<br> | |||
month=your birth month<br> | |||
day=your birth day<br> | |||
For example, if you entered the following: | For example, if you entered the following: | ||
<nowiki>{{User Age|10|Emerald May|25|86E575| | <nowiki>{{User Age|10|Emerald May|25|86E575|fff}}</nowiki> | ||
It should come out like this: | It should come out like this: | ||
{{User Age|10|Emerald May|25|86E575| | {{User Age|10|Emerald May|25|86E575|fff}} | ||
Or if you enter the following: | |||
<nowiki>{{User Age||Emerald May|25|86E575|fff|year=2001|month=02|day=17}}</nowiki> | |||
It should come out like this: | |||
{{User Age||Emerald May|25|86E575|fff|year=2001|month=02|day=17}} | |||
[[Category:Personal information tags]]</noinclude> |
edits