Difference between revisions of "Template:Iswas/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jerodlycett
(added template)
imported>John of Reading
m (Typo/general fixes, replaced: recommeded → recommended using AWB)
 
(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 for use during a given timeframe. See examples."
+
"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

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.

Format options
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.

Template parameters

ParameterDescriptionTypeStatus
Date1

The date used by the template

Unknownrequired
Format2

The format of the date

Default
year
Unknownsuggested