Difference between revisions of "Template:Iswas/doc"
Jump to navigation
Jump to search
imported>Jerodlycett (added template) |
imported>John of Reading |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| + | {{Lua|Module:Unsubst}} | ||
| + | This template returns is or was based on the date given and the current date. | ||
| + | |||
| + | {{code|{{CURRENTYEAR}} <nowiki>{{iswas|</nowiki>{{CURRENTYEAR}}<nowiki>|year}}</nowiki> year {{age|2001|01|15}} of Wikipedia's existence}} produces {{code|{{CURRENTYEAR}} {{iswas|{{CURRENTYEAR}}|year}} year {{age|2001|01|15}} of Wikipedia's 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 recommended) | ||
| + | | {{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 56: | ||
} | } | ||
}, | }, | ||
| − | "description": "This template is | + | "description": "This template returns is or was based on the date given and the current date." |
} | } | ||
</templatedata> | </templatedata> | ||
Latest revision as of 07:19, 27 June 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. |
| 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 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 | 27 March 2026 |
| mdy | Full date in mdy format | March 27, 2026 |
| iso | Full date in ISO 8601 format | 2026-03-27 |
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 |