Difference between revisions of "Template:Patch name"
m |
(move date lang formatting to {{dictionary/common strings}}, add link parameter) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#ifeq: {{{no-link|}}} | yes | + | <includeonly>{{#ifeq: {{{no-link|}}} | yes |
− | + | | {{dictionary/common strings/patch-fmt|1={{{1|07}}}|2={{{2|13}}}|3={{{3|2012}}}|{{#if:{{{lang|}}}|lang|null}}={{{lang|{{{force|}}}}}}}} | |
− | + | | [[{{{link|{{lang date|force=en|1={{{1}}}}} {{{2}}}, {{{3}}} Patch{{if lang}}}}}|{{dictionary/common strings/patch-fmt|1={{{1|07}}}|2={{{2|13}}}|3={{{3|2012}}}|{{#if:{{{lang|{{{force|}}}}}}|lang|null}}={{{lang|{{{force|}}}}}}}}]] | |
− | + | }}</includeonly><noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{translation switching|All languages, except (ar, da, hu)}} | {{translation switching|All languages, except (ar, da, hu)}} | ||
{{doc begin}} | {{doc begin}} | ||
− | Dates should be inputted in MM-DD-YYYY format with no leading zeros (e.g. {{tlx|patch name|month|day|year}}). | + | Dates should be inputted in MM-DD-YYYY format with no leading zeros (e.g. {{tlx|patch name|month|day|year}}). To edit the date formatting and month names for each language, see '''{{tl|dictionary/common strings}}'''. |
=== Usage === | === Usage === | ||
* {{tlx|patch name|4|15|2011}} (where {{code|4}} is the month of April, {{code|15}} is the date and {{code|2011}} the year) produces: {{patch name|4|15|2011}} | * {{tlx|patch name|4|15|2011}} (where {{code|4}} is the month of April, {{code|15}} is the date and {{code|2011}} the year) produces: {{patch name|4|15|2011}} | ||
* {{tlx|patch name|4|15|2011}} on [[Page/pt-br]] would produce: {{patch name|4|15|2011|lang=pt-br}} | * {{tlx|patch name|4|15|2011}} on [[Page/pt-br]] would produce: {{patch name|4|15|2011|lang=pt-br}} | ||
− | * {{tlx|patch name|4|15|2011| | + | * {{tlx|patch name|4|15|2011|5=no-link=yes}} produces: {{patch name|4|15|2011|no-link=yes}} |
+ | * {{tlx|patch name|4|15|2011|5=link=Test}} produces: {{patch name|4|15|2011|link=Test}} | ||
[[Category:Templates|Patch name]] | [[Category:Templates|Patch name]] | ||
</noinclude> | </noinclude> |
Revision as of 00:33, 9 January 2012
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Patch name/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: All languages, except (ar, da, hu) (add) |
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
{{patch name|4|15|2011}}
(where4
is the month of April,15
is the date and2011
the year) produces: April 15, 2011 Patch{{patch name|4|15|2011}}
on Page/pt-br would produce: Atualização de 15 de April de 2011{{patch name|4|15|2011|no-link=yes}}
produces: April 15, 2011 Patch{{patch name|4|15|2011|link=Test}}
produces: April 15, 2011 Patch