Template:Patch name: Difference between revisions
From Valheim Wiki
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
=== Usage === | === Usage === | ||
* {{tlx|patch name|2011|04|15}} (where {{code|04}} is the month of April, {{code|15}} is the day and {{code|2011}} the year) produces: {{patch name|04|15 | * {{tlx|patch name|2011|04|15}} (where {{code|04}} is the month of April, {{code|15}} is the day and {{code|2011}} the year) produces: {{patch name|2011|04|15}} | ||
* {{tlx|patch name|2011|04|15}} on [[Page/pt-br]] would produce: {{patch name|04|15 | * {{tlx|patch name|2011|04|15}} on [[Page/pt-br]] would produce: {{patch name|2011|04|15|lang=pt-br}} | ||
* {{tlx|patch name|2011|04|15|5=no-link=yes}} produces: {{patch name|04|15 | * {{tlx|patch name|2011|04|15|5=no-link=yes}} produces: {{patch name|2011|04|15|no-link=yes}} | ||
* {{tlx|patch name|2011|04|15|5=link=Test}} produces: {{patch name|04|15 | * {{tlx|patch name|2011|04|15|5=link=Test}} produces: {{patch name|2011|04|15|link=Test}} | ||
* {{tlx|patch name|2011|04|15|5=date=true}} produces: {{patch name|04|15 | * {{tlx|patch name|2011|04|15|5=date=true}} produces: {{patch name|2011|04|15|date=true}} (link label contains the date only) | ||
* {{tlx|patch name|2011|04|15|5=date-only=yes}} produces: {{patch name|04|15 | * {{tlx|patch name|2011|04|15|5=date-only=yes}} produces: {{patch name|2011|04|15|date-only=yes}} (no links to patches and label only contains the date. Useful for events not associated with patches) | ||
* {{tlx|patch name|2011|04|15|5=sort=yes}} will add an invisible string ''2011-04-15'' at the start of the result. This can be | * {{tlx|patch name|2011|04|15|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|2011|April|15}} produces: {{patch name|April|15 | * {{tlx|patch name|2011|April|15}} produces: {{patch name|2011|April|15}} ('''English''' month names work) | ||
* {{tlx|patch name|2011|4|15}} produces: {{patch name|4|15 | * {{tlx|patch name|2011|4|15}} produces: {{patch name|2011|4|15}} ('''Single-digit''' month numbers work) | ||
* {{tlx|patch name|2011|04|15|in-the}} produces: {{patch name|4|15 | * {{tlx|patch name|2011|04|15|in-the}} produces: {{patch name|2011|4|15|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".) | ||
[[Category:Templates|Patch name]] | [[Category:Templates|Patch name]] | ||
</noinclude> | </noinclude> | ||
Revision as of 15:53, 2 January 2022
Dates should be inputted in YYYY-MM-DD format with leading zeros (e.g. {{patch name|year|month|day}}, {{0.205.6|2021|12|09}}).
Usage
{{patch name|2011|04|15}}(where04is the month of April,15is the day and2011the year) produces: [[April 15, 2011 Patch|Template:Dictionary/common strings/month-15 2011, 04 Patch]]{{patch name|2011|04|15}}on Page/pt-br would produce: [[April 15, 2011 Patch|Atualização de 2011 de Template:Dictionary/common strings/month-15 de 04]]{{patch name|2011|04|15|no-link=yes}}produces: Template:Dictionary/common strings/month-15 2011, 04 Patch{{patch name|2011|04|15|link=Test}}produces: [[Test|Template:Dictionary/common strings/month-15 2011, 04 Patch]]{{patch name|2011|04|15|date=true}}produces: [[April 15, 2011 Patch|Template:Dictionary/common strings/month-15 2011, 04]] (link label contains the date only){{patch name|2011|04|15|date-only=yes}}produces: April 15, 2011 (no links to patches and label only contains the date. Useful for events not associated with patches){{patch name|2011|04|15|sort=yes}}will add an invisible string 2011-04-15 at the start of the result. This can be useful in sortable tables{{patch name|2011|April|15}}produces: [[Template:Dictionary/common strings/month-april 15, 2011 Patch|Template:Dictionary/common strings/month-15 2011, April Patch]] (English month names work){{patch name|2011|4|15}}produces: [[Template:Dictionary/common strings/month-4 15, 2011 Patch|Template:Dictionary/common strings/month-15 2011, 4 Patch]] (Single-digit month numbers work){{patch name|2011|04|15|in-the}}produces: [[Template:Dictionary/common strings/month-4 15, 2011 PatchTemplate:Dictionary/common strings/patch-suffix|Template:Dictionary/common strings/patch-in-the-fmt]] (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".)