Difference between revisions of "Template:Updates/core"
m |
(Rewrite template and documentation to allow different displays of dates for other language pages.) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{1|{{{type|}}}}}} | <includeonly>{{#switch:{{{1|{{{type|}}}}}} | ||
− | |||
− | + | | patch = [[{{lang date|force=en|1={{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}} Patch{{if lang}}|{{lang | |
− | + | | cs = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | |
− | + | | de = {{{patch-day}}}. {{lang date|{{{patch-month}}}}} {{{patch-year}}} | |
+ | | en = {{lang date|{{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}} | ||
+ | | es = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | ||
+ | | fr = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | ||
+ | | pl = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | ||
+ | | pt = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | ||
+ | | pt-br = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | ||
+ | | ro = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | ||
+ | | ru = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | ||
+ | }}]] | ||
− | + | | patch-beta = [[Patches (Beta){{if lang}}|{{lang | |
− | + | | cs = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}} | |
− | + | | de = {{{patch-beta-day}}}. {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}} | |
− | + | | en = {{lang date|1={{{patch-beta-month}}}}} {{{patch-beta-day}}}, {{{patch-beta-year}}} | |
− | + | | es = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}} | |
− | + | | fr = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}} | |
− | + | | pl = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}} | |
− | + | | pt = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}} | |
− | + | | pt-br = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}} | |
− | + | | ro = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}} | |
− | + | | ru = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}} | |
+ | }}]] | ||
− | + | | blog = [http://www.teamfortress.com/post.php?id={{{blog-id}}} {{lang | |
− | + | | cs = {{{blog-day}}} {{lang date|1={{{blog-month}}}}} {{{blog-year}}} | |
− | + | | de = {{{blog-day}}}. {{lang date|1={{{blog-month}}}}} {{{blog-year}}} | |
− | + | | en = {{lang date|{{{blog-month}}}}} {{{blog-day}}}, {{{blog-year}}} | |
− | + | | es = {{{blog-day}}} {{lang date|1={{{blog-month}}}}} {{{blog-year}}} | |
− | + | | fr = {{{blog-day}}} {{lang date|1={{{blog-month}}}}} {{{blog-year}}} | |
− | + | | pl = {{{blog-day}}} {{lang date|1={{{blog-month}}}}} {{{blog-year}}} | |
+ | | pt = {{{blog-day}}} {{lang date|1={{{blog-month}}}}} {{{blog-year}}} | ||
+ | | pt-br = {{{blog-day}}} {{lang date|1={{{blog-month}}}}} {{{blog-year}}} | ||
+ | | ro = {{{blog-day}}} {{lang date|1={{{blog-month}}}}} {{{blog-year}}} | ||
+ | | ru = {{{blog-day}}} {{lang date|1={{{blog-month}}}}} {{{blog-year}}} | ||
+ | }}] | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| patch-daysago = {{Days ago|1={{{patch-year}}}|2={{{patch-month}}}|3={{{patch-day}}}}} | | patch-daysago = {{Days ago|1={{{patch-year}}}|2={{{patch-month}}}|3={{{patch-day}}}}} | ||
| patch-beta-daysago = {{Days ago|1={{{patch-beta-year}}}|2={{{patch-beta-month}}}|3={{{patch-beta-day}}}}} | | patch-beta-daysago = {{Days ago|1={{{patch-beta-year}}}|2={{{patch-beta-month}}}|3={{{patch-beta-day}}}}} | ||
− | | blog-daysago = {{Days ago|1={{{blog-year}}}|2={{{blog-month}}}|3={{{blog-day}}}}} | + | | blog-daysago = {{Days ago|1={{{blog-year}}}|2={{{blog-month}}}|3={{{blog-day}}}}} |
− | |||
− | |||
− | |||
| patch-month = {{{patch-month|}}} | | patch-month = {{{patch-month|}}} | ||
| patch-day = {{{patch-day|}}} | | patch-day = {{{patch-day|}}} | ||
Line 99: | Line 55: | ||
| blog-day = {{{blog-day|}}} | | blog-day = {{{blog-day|}}} | ||
| blog-year = {{{blog-year|}}} | | blog-year = {{{blog-year|}}} | ||
− | | blog-id = {{{blog-id|}}} | + | | blog-id = {{{blog-id|}}} |
− | + | | wiki-cap-recipient = {{{wiki-cap-recipient|}}} | |
− | |||
− | |||
− | + | | #default = <span class="error small">ERROR {{tl|Latest updates}}: type doesn't match.</span> | |
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | + | }}</includeonly><noinclude> |
− | + | {{translation switching|cs, es, de, fr, ko, hu, pl, pt, pt-br, ro, ru, sv}} | |
− | + | {{doc begin}} | |
− | + | This template takes values from '''{{tl|Updates}}''' and displays them in different ways. | |
− | + | ||
− | + | === Parameters === | |
− | + | '''Links''' | |
− | + | ||
− | + | :; ''patch'' | |
− | + | :: Provides a lang-formatted proper link to the latest patch article. | |
− | + | ||
− | + | :; ''patch-beta'' | |
− | + | :: Provides a lang-formatted proper link to [[Patches (Beta)]]. | |
− | + | ||
− | + | :; ''blog'' | |
+ | :: Provides a lang-formatted proper external link to the latest blog post based on the given ID. | ||
+ | |||
+ | '''Days ago''' | ||
− | + | :; ''patch-daysago'', ''patch-beta-daysago'', ''blog-daysago'' | |
+ | :: Uses {{tl|Days ago}} to render the days since the last patch / blog update (bracketed). | ||
− | + | '''Raw values''' | |
− | + | :: The following raw values are available as they are given in {{tl|Updates}} so they can be used anywhere. | |
− | {{ | ||
− | |||
− | |||
− | + | <pre> | |
− | |||
− | <pre | ||
| patch-month = | | patch-month = | ||
− | | patch-day | + | | patch-day = |
− | | patch-year | + | | patch-year = |
| patch-beta-month = | | patch-beta-month = | ||
− | | patch-beta-day | + | | patch-beta-day = |
− | | patch-beta-year | + | | patch-beta-year = |
+ | |||
+ | | blog-month = | ||
+ | | blog-day = | ||
+ | | blog-year = | ||
+ | | blog-id = | ||
+ | |||
+ | | wiki-cap-recipient = | ||
+ | </pre> | ||
− | + | === See also === | |
− | + | * {{tl|Updates}} | |
− | + | * {{tl|Days ago}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | * | ||
− | |||
− | |||
− | |||
[[Category:Templates|Latest updates]] | [[Category:Templates|Latest updates]] | ||
[[Category:Main Page]] | [[Category:Main Page]] | ||
</noinclude> | </noinclude> |
Revision as of 20:53, 11 January 2011
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Updates/core/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: cs, es, de, fr, ko, hu, pl, pt, pt-br, ro, ru, sv (add) |
Documentation for Updates/core
This template takes values from {{Updates}}
and displays them in different ways.
Parameters
Links
- patch
- Provides a lang-formatted proper link to the latest patch article.
- patch-beta
- Provides a lang-formatted proper link to Patches (Beta).
- blog
- Provides a lang-formatted proper external link to the latest blog post based on the given ID.
Days ago
- patch-daysago, patch-beta-daysago, blog-daysago
- Uses
{{Days ago}}
to render the days since the last patch / blog update (bracketed).
Raw values
- The following raw values are available as they are given in
{{Updates}}
so they can be used anywhere.
- The following raw values are available as they are given in
| patch-month = | patch-day = | patch-year = | patch-beta-month = | patch-beta-day = | patch-beta-year = | blog-month = | blog-day = | blog-year = | blog-id = | wiki-cap-recipient =