Difference between revisions of "Template:Iswas"
Jump to navigation
Jump to search
imported>Jerodlycett (added iso) |
imported>Jerodlycett m (Fixed typo) |
||
Line 4: | Line 4: | ||
|month = {{#ifeq:{{#time:F Y}}|{{{1}}}|is|was}} | |month = {{#ifeq:{{#time:F Y}}|{{{1}}}|is|was}} | ||
|mon = {{#ifeq:{{#time:M Y}}|{{{1}}}|is|was}} | |mon = {{#ifeq:{{#time:M Y}}|{{{1}}}|is|was}} | ||
− | |dmy = {{#ifeq:{{#time:j | + | |dmy = {{#ifeq:{{#time:j F Y}}|{{{1}}}|is|was}} |
− | |mdy = {{#ifeq:{{#time: | + | |mdy = {{#ifeq:{{#time:F j, Y}}|{{{1}}}|is|was}} |
|iso = {{#ifeq:{{#time:Y-m-d}}|{{{1}}}|is|was}} | |iso = {{#ifeq:{{#time:Y-m-d}}|{{{1}}}|is|was}} | ||
|#default = {{#ifeq:{{#time:Y}}|{{{1}}}|is|was}} | |#default = {{#ifeq:{{#time:Y}}|{{{1}}}|is|was}} | ||
}} | }} | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 13:19, 2 April 2015
![]() | This template uses Lua: |
This template returns is or was based on the date given and the current date.
2025 {{iswas|2025|year}} year <span class="currentage"></span>24 of Wikipedia's existence
produces 2025 is year <span class="currentage"></span>24 of Wikipedia's existence
.
January 15, 2025 {{iswas|January 15, 2025|mdy}} Wikipedia's birthday
produces January 15, 2025 was Wikipedia's birthday
.
Value | Description | Example |
---|---|---|
year | Four digit year | 2025 |
month | Full month name and year (not recommended) | September 2025 |
mon | Short month name and year | Sep 2025 |
dmy | Full date in dmy format | 7 September 2025 |
mdy | Full date in mdy format | September 7, 2025 |
iso | Full date in ISO 8601 format | 2025-09-07 |
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. |