Difference between revisions of "Template:Patch name/sandbox"

From Team Fortress Wiki
Jump to: navigation, search
(Test changing sort order for Template:List of maps)
(Update to current template)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{sort|}}} | yes |<span style="display:none">{{#time:YYYY-mm-dd|{{{3|}}}-{{{1|}}}-{{{2|}}}}}</span>}}{{#ifeq: {{{date-only|}}} | yes | {{dictionary/common strings/date-fmt|2={{{1|}}}|3={{{2|}}}|4={{{3|}}}}}
+
<includeonly>{{#ifeq: {{{sort|}}} | yes |<span style="display:none">{{#time:Y-m-d|{{{3|}}}-{{{1|}}}-{{{2|}}}}}</span>}}{{#ifeq: {{{date-only|}}} | yes | {{dictionary/common strings/date-fmt|2={{{1|}}}|3={{{2|}}}|4={{{3|}}}}}
 
|{{#ifeq: {{{no-link|}}} | yes
 
|{{#ifeq: {{{no-link|}}} | yes
 
| {{dictionary/common strings/patch-{{{4|default}}}-fmt|1={{{1|07}}}|2={{{2|13}}}|3={{{3|2012}}}|{{#if:{{{lang|}}}|lang|null}}={{{lang|{{{force|}}}}}}}}
 
| {{dictionary/common strings/patch-{{{4|default}}}-fmt|1={{{1|07}}}|2={{{2|13}}}|3={{{3|2012}}}|{{#if:{{{lang|}}}|lang|null}}={{{lang|{{{force|}}}}}}}}
Line 16: Line 16:
 
* {{tlx|patch name|04|15|2011|5=date=true}} produces: {{patch name|04|15|2011|date=true}} (link label contains the date only)
 
* {{tlx|patch name|04|15|2011|5=date=true}} produces: {{patch name|04|15|2011|date=true}} (link label contains the date only)
 
* {{tlx|patch name|04|15|2011|5=date-only=yes}} produces: {{patch name|04|15|2011|date-only=yes}} (no links to patches and label only contains the date. Useful for events not associated with patches)
 
* {{tlx|patch name|04|15|2011|5=date-only=yes}} produces: {{patch name|04|15|2011|date-only=yes}} (no links to patches and label only contains the date. Useful for events not associated with patches)
* {{tlx|patch name|04|15|2011|5=sort=yes}} will add an invisible string ''2011-04-15'' at the start of the result. This allows dates to be sorted in <code>sortable</code> tables>
+
* {{tlx|patch name|04|15|2011|5=sort=yes}} will add an invisible string ''2011-04-15'' at the start of the result. This can be useful in sortable tables
 
* {{tlx|patch name|April|15|2011}} produces: {{patch name|April|15|2011}} ('''English''' month names work)
 
* {{tlx|patch name|April|15|2011}} produces: {{patch name|April|15|2011}} ('''English''' month names work)
 
* {{tlx|patch name|4|15|2011}} produces: {{patch name|4|15|2011}} ('''Single-digit''' month numbers work)
 
* {{tlx|patch name|4|15|2011}} produces: {{patch name|4|15|2011}} ('''Single-digit''' month numbers work)
Line 30: Line 30:
 
* {{tlx|patch name|03|23|2004|5=classic|6=no-link=yes}} produces: {{patch name|03|23|2004|classic|no-link=yes}}
 
* {{tlx|patch name|03|23|2004|5=classic|6=no-link=yes}} produces: {{patch name|03|23|2004|classic|no-link=yes}}
  
[[Category:Templates|Patch name]]
+
[[:Category:Templates|Patch name]]
 
</noinclude>
 
</noinclude>

Revision as of 12:17, 29 March 2024

Documentation for Patch name/sandbox

Dates should be inputted in MM-DD-YYYY format with no leading zeros (e.g. {{patch name|month|day|year}}). To edit the date formatting and month names for each language, see {{dictionary/common strings}}.

Usage

You can also indicate if patch is beta:

Or a Xbox patch:

Or a Classic patch:

Patch name