Difference between revisions of "Template:Iswas/doc"
Jump to navigation
Jump to search
imported>Jerodlycett (added template) |
imported>Jerodlycett (Updated documentation to fullest) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| + | This template returns is or was based on the date given and the current date. | ||
| + | |||
| + | {{code|{{CURRENTYEAR}} <nowiki>{{iswas|</nowiki>{{CURRENTYEAR}}<nowiki>|year}}</nowiki> Wikipedia's {{age|2001|01|15}} year in existence}} produces {{code|{{CURRENTYEAR}} {{iswas|{{CURRENTYEAR}}|year}} Wikipedia's {{age|2001|01|15}} year in existence}}. | ||
| + | |||
| + | {{code|January 15, {{CURRENTYEAR}} <nowiki>{{iswas|</nowiki>January 15, {{CURRENTYEAR}}<nowiki>|mdy}}</nowiki> Wikipedia's birthday}} produces {{code|January 15, {{CURRENTYEAR}} {{iswas|January 15, {{CURRENTYEAR}}|mdy}} Wikipedia's birthday}}. | ||
| + | |||
| + | {| class="wikitable" | ||
| + | |+Format options | ||
| + | |- | ||
| + | ! Value | ||
| + | ! Description | ||
| + | ! Example | ||
| + | |- | ||
| + | | year | ||
| + | | Four digit year | ||
| + | | {{CURRENTYEAR}} | ||
| + | |- | ||
| + | | month | ||
| + | | Full month name and year (not recommeded) | ||
| + | | {{CURRENTMONTHNAME}} {{CURRENTYEAR}} | ||
| + | |- | ||
| + | | mon | ||
| + | | Short month name and year | ||
| + | | {{CURRENTMONTHABBREV}} {{CURRENTYEAR}} | ||
| + | |- | ||
| + | | dmy | ||
| + | | Full date in dmy format | ||
| + | | {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} | ||
| + | |- | ||
| + | | mdy | ||
| + | | Full date in mdy format | ||
| + | | {{CURRENTMONTHNAME}} {{CURRENTDAY}}, {{CURRENTYEAR}} | ||
| + | |- | ||
| + | | iso | ||
| + | | Full date in ISO 8601 format | ||
| + | | {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}} | ||
| + | |} | ||
| + | === TemplateData === | ||
| + | {{TemplateDataHeader}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| Line 15: | Line 54: | ||
} | } | ||
}, | }, | ||
| − | "description": "This template is | + | "description": "This template returns is or was based on the date given and the current date." |
} | } | ||
</templatedata> | </templatedata> | ||
Revision as of 13:20, 2 April 2015
| 40px | This is a documentation subpage for Template:Iswas. It contains usage information, categories and other content that is not part of the original template page. |
This template returns is or was based on the date given and the current date.
2026 {{iswas|2026|year}} Wikipedia's <span class="currentage"></span>25 year in existence produces 2026 is Wikipedia's <span class="currentage"></span>25 year in existence.
January 15, 2026 {{iswas|January 15, 2026|mdy}} Wikipedia's birthday produces January 15, 2026 was Wikipedia's birthday.
| Value | Description | Example |
|---|---|---|
| year | Four digit year | 2026 |
| month | Full month name and year (not recommeded) | March 2026 |
| mon | Short month name and year | Mar 2026 |
| dmy | Full date in dmy format | 25 March 2026 |
| mdy | Full date in mdy format | March 25, 2026 |
| iso | Full date in ISO 8601 format | 2026-03-25 |
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 |