Template:Vgrtbl: Difference between revisions

From Bibliotheca Anonoma
(Created page with "<includeonly>{{#invoke:vgrtbl|main}}</includeonly><noinclude>{{Documentation}}</noinclude>")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:vgrtbl|main}}</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{#invoke:vgrtbl|main}}</includeonly><noinclude>{{Documentation}}
See [[wp:Template:Vgrtbl]] for more info.
 
=== Description ===
'''For dates from January 1, 1970 onward only!'''
 
This template takes one or more region code/release date pairs and formats them in a way that makes them sort properly in sortable tables.
 
===Examples===
 
{| class="wikitable sortable"
|-
! style="width:75%;"|Code (v=1, default)
! style="width:25%;"|Output
|-
|<code><nowiki>{{Vgrtbl|NA|1989-03-12|EU|August 16, 2008}}</nowiki></code>
|{{Vgrtbl|NA|1989-03-12|EU|August 16, 2008}}
|-
|<code><nowiki>{{Vgrtbl|NA|1989-03-12|EU|12 March 1989}}</nowiki></code>
|{{Vgrtbl|NA|1989-03-12|EU|12 March 1989}}
|-
|<code><nowiki>{{Vgrtbl|c=0|NA|1989-03-12|EU|12 March 1989}}</nowiki></code>
|{{Vgrtbl|c=0|NA|1989-03-12|EU|12 March 1989}}
|-
|<code><nowiki>{{Vgrtbl|NA|1989|EU|March 1989}}</nowiki></code>
|{{Vgrtbl|NA|1989|EU|March 1989}}
|-
|<code><nowiki>{{Vgrtbl|NA|Cancelled|JP|TBD|EU|TBA|AUS|TBA}}</nowiki></code>
|{{Vgrtbl|NA|Cancelled|JP|TBD|EU|TBA|AUS|TBA}}
|}
 
{| class="wikitable sortable"
|-
! style="width:75%;"|Code (v=0)
! style="width:25%;"|Output
|-
|<code><nowiki>{{Vgrtbl|v=0|NA|1989-03-12|EU|August 16, 2008}}</nowiki></code>
|{{Vgrtbl|v=0|NA|1989-03-12|EU|August 16, 2008}}
|-
|<code><nowiki>{{Vgrtbl|v=0|NA|1989-03-12|EU|12 March 1989}}</nowiki></code>
|{{Vgrtbl|v=0|NA|1989-03-12|EU|12 March 1989}}
|-
|<code><nowiki>{{Vgrtbl|c=0|v=0|NA|1989-03-12|EU|12 March 1989}}</nowiki></code>
|{{Vgrtbl|c=0|v=0|NA|1989-03-12|EU|12 March 1989}}
|-
|<code><nowiki>{{Vgrtbl|v=0|NA|1989|EU|March 1989}</nowiki></code>
|{{Vgrtbl|v=0|NA|1989|EU|March 1989}}
|}
 
{| class="wikitable sortable"
|-
! style="width:75%;"|Code (v=2)
! style="width:25%;"|Output
|-
|<code><nowiki>{{Vgrtbl|v=2|NA|1989-03-12|EU|August 16, 2008}}</nowiki></code>
|{{Vgrtbl|v=2|NA|1989-03-12|EU|August 16, 2008}}
|-
|<code><nowiki>{{Vgrtbl|v=2|NA|1989-03-12|EU|12 March 1989}}</nowiki></code>
|{{Vgrtbl|v=2|NA|1989-03-12|EU|12 March 1989}}
|-
|<code><nowiki>{{Vgrtbl|c=0|v=2|NA|1989-03-12|EU|12 March 1989}}</nowiki></code>
|{{Vgrtbl|c=0|v=2|NA|1989-03-12|EU|12 March 1989}}
|-
|<code><nowiki>{{Vgrtbl|v=2|NA|1989|EU|March 1989}</nowiki></code>
|{{Vgrtbl|v=2|NA|1989|EU|March 1989}}
|}
 
</noinclude>

Latest revision as of 03:37, 18 February 2017

This page is a template. It contains no Bibliotheca Anonoma-related information, but should be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

See wp:Template:Vgrtbl for more info.

Description[edit]

For dates from January 1, 1970 onward only!

This template takes one or more region code/release date pairs and formats them in a way that makes them sort properly in sortable tables.

Examples[edit]

Code (v=1, default) Output
{{Vgrtbl|NA|1989-03-12|EU|August 16, 2008}} 19890319890312March 12, 1989 (NA)
August 16, 2008 (EU)
{{Vgrtbl|NA|1989-03-12|EU|12 March 1989}} 19890319890312March 12, 1989 (NA/EU)
{{Vgrtbl|c=0|NA|1989-03-12|EU|12 March 1989}} 19890319890312March 12, 1989 (NA)
March 12, 1989 (EU)
{{Vgrtbl|NA|1989|EU|March 1989}} 1989 (NA)
March 1989 (EU)
{{Vgrtbl|NA|Cancelled|JP|TBD|EU|TBA|AUS|TBA}} Cancelled (NA)
TBD (JP)
TBA (EU/AUS)
Code (v=0) Output
{{Vgrtbl|v=0|NA|1989-03-12|EU|August 16, 2008}} 198903198903121989-03-12 (NA)
2008-08-16 (EU)
{{Vgrtbl|v=0|NA|1989-03-12|EU|12 March 1989}} 198903198903121989-03-12 (NA/EU)
{{Vgrtbl|c=0|v=0|NA|1989-03-12|EU|12 March 1989}} 198903198903121989-03-12 (NA)
1989-03-12 (EU)
{{Vgrtbl|v=0|NA|1989|EU|March 1989} 1989 (NA)
1989-03 (EU)
Code (v=2) Output
{{Vgrtbl|v=2|NA|1989-03-12|EU|August 16, 2008}} 1989031989031212 March 1989 (NA)
16 August 2008 (EU)
{{Vgrtbl|v=2|NA|1989-03-12|EU|12 March 1989}} 1989031989031212 March 1989 (NA/EU)
{{Vgrtbl|c=0|v=2|NA|1989-03-12|EU|12 March 1989}} 1989031989031212 March 1989 (NA)
12 March 1989 (EU)
{{Vgrtbl|v=2|NA|1989|EU|March 1989} 1989 (NA)
March 1989 (EU)