Difference between revisions of "Template:Iswas"
Jump to navigation
Jump to search
imported>Jerodlycett m (Fixed typo) |
imported>Jerodlycett (Fixed) |
||
| Line 1: | Line 1: | ||
<includeonly>{{ {{{|safesubst:}}}#invoke:Unsubst||$B= | <includeonly>{{ {{{|safesubst:}}}#invoke:Unsubst||$B= | ||
| − | {{#switch:{{{2 | + | {{#switch:{{{2}}} |
| − | |year = {{#ifeq:{{#time:Y}}|{{{1 | + | |year = {{#ifeq:{{#time:Y}}|{{{1}}}|is|was}} |
| − | |month = {{#ifeq:{{#time:F Y}}|{{{1 | + | |month = {{#ifeq:{{#time:F Y}}|{{{1}}}|is|was}} |
| − | |mon = {{#ifeq:{{#time:M Y}}|{{{1 | + | |mon = {{#ifeq:{{#time:M Y}}|{{{1}}}|is|was}} |
| − | |dmy = {{#ifeq:{{#time:j M Y}}|{{{1 | + | |dmy = {{#ifeq:{{#time:j M Y}}|{{{1}}}|is|was}} |
| − | |mdy = {{#ifeq:{{#time:M j, Y}}|{{{1 | + | |mdy = {{#ifeq:{{#time:M j, Y}}|{{{1}}}|is|was}} |
| − | #default = {{#ifeq:{{#time:Y}}|{{{1 | + | #default = {{#ifeq:{{#time:Y}}|{{{1}}}|is|was}} |
}} | }} | ||
}}</includeonly> | }}</includeonly> | ||
<noinclude>{{documentation}}</noinclude> | <noinclude>{{documentation}}</noinclude> | ||
Revision as of 11:01, 2 April 2015
| 30px | This template uses Lua: |
This template returns is or was based on the date given and the current date.
2026 {{iswas|2026|year}} year <span class="currentage"></span>25 of Wikipedia's existence produces 2026 is year <span class="currentage"></span>25 of Wikipedia's existence.
January 15, 2026 {{iswas|January 15, 2026|mdy}} Wikipedia's birthday produces January 15, 2026 was #default = was Wikipedia's birthday.
| Value | Description | Example |
|---|---|---|
| year | Four digit year | 2026 |
| month | Full month name and year (not recommended) | March 2026 |
| mon | Short month name and year | Mar 2026 |
| dmy | Full date in dmy format | 18 March 2026 |
| mdy | Full date in mdy format | March 18, 2026 |
| iso | Full date in ISO 8601 format | 2026-03-18 |
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Iswas
This template returns is or was based on the date given and the current date.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Date | 1 | The date used by the template | Unknown | required |
| Format | 2 | The format of the date
| Unknown | suggested |
| The above documentation is transcluded from Template:Iswas/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |