Template:Patch name: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
m (Undo revision 184026 by KEMONO PANTSU (talk))
m (update documentation)
 
Line 9: Line 9:


=== Usage ===
=== Usage ===
* {{tlx|patch name|04|15|2011}} (where {{code|04}} is the month of April, {{code|15}} is the day and {{code|2011}} the year) produces: {{patch name|04|15|2011}}
* {{tlx|patch name|05|12|2011}} (where {{code|05}} is the month of May, {{code|12}} is the day and {{code|2011}} the year) produces: {{patch name|05|12|2011}}
* {{tlx|patch name|04|15|2011}} on [[Page/pt-br]] would produce: {{patch name|04|15|2011|lang=pt-br}}
* {{tlx|patch name|05|12|2011}} on [[Page/pt-br]] would produce: {{patch name|05|12|2011|lang=pt-br}}
* {{tlx|patch name|04|15|2011|5=no-link=yes}} produces: {{patch name|04|15|2011|no-link=yes}}
* {{tlx|patch name|05|12|2011|5=no-link=yes}} produces: {{patch name|05|12|2011|no-link=yes}}
* {{tlx|patch name|04|15|2011|5=link=Test}} produces: {{patch name|04|15|2011|link=Test}}
* {{tlx|patch name|05|12|2011|5=link=Test}} produces: {{patch name|05|12|2011|link=Test}}
* {{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|05|12|2011|5=date=true}} produces: {{patch name|05|12|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|05|12|2011|5=date-only=yes}} produces: {{patch name|05|12|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 can be usefull in sortable tables
* {{tlx|patch name|05|12|2011|5=sort=yes}} will add an invisible string ''2011-05-12'' 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|May|12|2011}} produces: {{patch name|May|12|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|5|12|2011}} produces: {{patch name|5|12|2011}} ('''Single-digit''' month numbers work)
You can also indicate if patch is for tools:
* {{tlx|patch name|05|12|2011|in-the}} produces: {{patch name|5|12|2011|in-the}} (No difference in English, but useful in languages for which the wording is different in sentences of the type "In the '''April 15th Patch''', something happened".)
* {{tlx|patch name|11|18|2011|tools}} produces: {{patch name|11|18|2011|tools}}
You can also indicate if patch is for Tools or Portal:
* {{tlx|patch name|11|18|2011|5=tools|6=no-link=yes}} produces: {{patch name|11|18|2011|tools|no-link=yes}}
* {{tlx|patch name|05|26|2011|tools}} produces: {{patch name|05|26|2011|tools}}
* {{tlx|patch name|05|26|2011|5=tools|6=no-link=yes}} produces: {{patch name|05|26|2011|tools|no-link=yes}}
* {{tlx|patch name|10|30|2007|portal}} produces: {{patch name|10|30|2007|portal}}
* {{tlx|patch name|10|30|2007|5=portal|6=no-link=yes}} produces: {{patch name|10|30|2007|portal|no-link=yes}}


[[Category:Templates|Patch name]]
[[Category:Templates|Patch name]]
</noinclude>
</noinclude>

Latest revision as of 02:04, 3 April 2024

The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.

Documentation for Patch name

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 for Tools or Portal: