Template:As of: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Unknown user No edit summary |
Undid revision 260159744 by 69.64.32.38 (talk) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | |||
## param 1 is the year | |||
## optional param 2 is the month | |||
## optional param 3 is the day of the month | |||
## optional named parameter alt=[text] is alternative display text (may include wiki markup) | |||
## optional named parameter df=US produces American date format in displayed text | |||
## optional named parameter lc=on gives lower-case-first output | |||
## optional named parameter url=[URL] gives statement reference | |||
## displayed text ([A/a]s of [Start date] by default) | |||
-->{{#if: {{{alt|}}} | {{{alt}}} | {{#ifeq: {{{lc}}} | {{{lc|}}} | a | A }}s of {{#if: {{{3|}}} | {{Start date | {{{1}}} | {{MONTHNUMBER|{{{2}}}}} | {{{3}}} | df={{{df|yes}}} }} | {{#if: {{{2|}}} | {{MONTHNAME|{{{2}}}}} }} {{{1}}} }}}}<!-- | |||
## ref/update inline banner (hidden by default) | |||
--><sup class="plainlinks asof-tag {{#if:{{{url|}}}|ref|update}}" style="display:none;">[{{#if:{{{url|}}}|{{{url}}} [ref]|{{fullurl:{{PAGENAME}}|action=edit}} [update]}}]</sup><!-- | |||
## disable categorisation outside main namespace | |||
-->{{main other|[[Category:Articles containing potentially dated statements from <!-- | |||
## temporal category for template (word method) | |||
-->{{#if: {{#ifexpr: {{{1}}} = 1 }} | {{#ifexpr: {{#time:Y|{{{1}}}}} > 2004 | {{{1}}} | {{#ifexpr: {{#time:Y|{{{1}}}}} > 1989 | {{#time:Y|{{{1}}}}} | before 1990 }}}} | <!-- | |||
## temporal category for template (parameter method) | |||
-->{{#ifexpr: {{{1}}} > 2004 | {{#if:{{{2|}}} | {{MONTHNAME|{{{2}}}}} }} {{{1}}} | {{#ifexpr:{{{1}}} > 1989 | {{{1}}} | before 1990 }}}}}} ]]<!-- | |||
## global category for template | |||
-->[[Category:All articles containing potentially dated statements]]}}<!-- | |||
## add categories and inter-wikis to the /doc subpage, not here | |||
--></includeonly><noinclude><!-- | |||
## dynamic example (as of today, self ref) | |||
-->As of {{Start date|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}|df=yes}}<sup class="plainlinks">[http://en.wikipedia.org/wiki/Template:As_of [ref]]</sup> | |||
{{documentation}}</noinclude> |