Template:Patch name: Difference between revisions
From Valheim Wiki
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
| [[{{{link|{{lang date|force=en|1={{{2}}}}} {{{3}}}, {{{1}}} Patch}}}|{{dictionary/common strings/patch-{{#ifeq: {{{date|}}}|true|date-}}{{{4|default}}}-fmt|1={{{1|2021}}}|2={{{2|12}}}|3={{{3|31}}}|{{#if:{{{lang|}}}|lang|null}}={{{lang|{{{force|}}}}}}}}]] | | [[{{{link|{{lang date|force=en|1={{{2}}}}} {{{3}}}, {{{1}}} Patch}}}|{{dictionary/common strings/patch-{{#ifeq: {{{date|}}}|true|date-}}{{{4|default}}}-fmt|1={{{1|2021}}}|2={{{2|12}}}|3={{{3|31}}}|{{#if:{{{lang|}}}|lang|null}}={{{lang|{{{force|}}}}}}}}]] | ||
}}}}</includeonly><noinclude> | }}}}</includeonly><noinclude> | ||
Dates should be inputted in YYYY-MM-DD format with leading zeros (e.g. {{tlx|patch name|year|month|day}}, {{tlx| | Dates should be inputted in YYYY-MM-DD format with leading zeros (e.g. {{tlx|patch name|year|month|day}}, {{tlx|patch name|2021|12|09}}). | ||
=== Usage === | === Usage === | ||
Revision as of 16:56, 2 January 2022
Dates should be inputted in YYYY-MM-DD format with leading zeros (e.g. {{patch name|year|month|day}}, {{patch name|2021|12|09}}).
Usage
{{patch name|2011|04|15}}(where04is the month of April,15is the day and2011the year) produces: April 15, 2011 Patch{{patch name|2011|04|15}}on Page/pt-br would produce: Atualização de 15 de April de 2011{{patch name|2011|04|15|no-link=yes}}produces: April 15, 2011 Patch{{patch name|2011|04|15|link=Test}}produces: April 15, 2011 Patch{{patch name|2011|04|15|date=true}}produces: April 15, 2011 (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