Template:As of: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(leading and trailing spaces in positional parameters are significant - {{start date}} doesn't expect them) |
m (58 revisions imported from wikipedia:Template:As_of) |
||
(11 intermediate revisions by 8 users not shown) | |||
Line 10: | Line 10: | ||
## displayed text ([A/a]s of [Start date] by default) |
## displayed text ([A/a]s of [Start date] by default) |
||
-->{{#if: {{{alt|}}} | {{{alt}}} | {{#ifeq: {{{lc}}} | {{{lc|}}} | |
-->{{#if: {{{alt|}}} | {{{alt}}} | {{#if:{{{since|}}}|{{#ifeq: {{{lc}}} | {{{lc|}}} | s | S }}ince | {{#ifeq: {{{lc}}} | {{{lc|}}} | a | A }}s of}} {{#if:{{{pre|}}}|{{{pre}}} }}{{#if: {{{3|}}} | {{#ifeq:{{lc:{{{df|}}}}}|us|{{MONTHNAME|{{{2}}}}} {{#expr:{{{3}}}}}, |{{#expr:{{{3}}}}} {{MONTHNAME|{{{2}}}}} }}{{{1}}}|{{#if: {{{2|}}} |{{MONTHNAME|{{{2}}}}} }}{{{1}}}}}}}{{#if:{{{post|}}}|<nowiki />{{{post}}}}}<!-- |
||
#### That nowiki is required or, various characters (:, ;, #, and *} will be parsed as wikisyntax for list items. |
|||
## ref/update inline banner (hidden by default) |
## ref/update inline banner (hidden by default) |
||
--><sup class="plainlinks noprint asof-tag {{#if:{{{url|}}}|ref|update}}" style="display:none;">[{{#if:{{{url|}}}|{{{url}}} [ref]|{{fullurl:{{PAGENAME}}|action=edit}} [update]}}]</sup><!-- |
--><sup class="plainlinks noexcerpt noprint asof-tag {{#if:{{{url|}}}|ref|update}}" style="display:none;">[{{#if:{{{url|}}}|{{{url}}} [ref]|{{fullurl:{{PAGENAME}}|action=edit}} [update]}}]</sup><!-- |
||
## categorisation disabled outside main namespace |
## categorisation disabled outside main namespace |
||
Line 29: | Line 29: | ||
## dynamic example (as of today, self ref) |
## dynamic example (as of today, self ref) |
||
-->As of |
-->{{As of|{{CURRENTYEAR}}|{{CURRENTMONTH}}|{{CURRENTDAY}}}}<sup class="plainlinks">[https://en.wikipedia.org/wiki/Template:As_of [ref]]</sup> |
||
{{documentation}} |
{{documentation}} |
||
Line 35: | Line 35: | ||
<!-- Add categories and inter-wikis to the /doc subpage, not here! --> |
<!-- Add categories and inter-wikis to the /doc subpage, not here! --> |
||
</noinclude>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using as of template with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:As of]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | alt | df | lc | post | pre | since | url }} |
|||
</noinclude> |