Difference between revisions of "Template:Updates/core"
Line 1: | Line 1: | ||
− | <includeonly><!-- | + | <includeonly>{{#switch:{{{1|{{{type|}}}}}} |
+ | | patch = {{#switch:{{SUBPAGENAME}}<!-- | ||
− | + | // | |
+ | // PATCHES | ||
+ | // | ||
− | + | // dd mm yyyy -- "Date Month Year" (without comma) DATE FORMATTING --> | |
− | + | | cs | |
+ | | de | ||
+ | | fr | ||
+ | | pl | ||
+ | | ro | ||
+ | | ru = [[{{lang date|force=en|1={{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}} Patch{{if lang}}|<!-- | ||
+ | -->{{{patch-day}}} {{lang date|1={{{patch-month}}}}} {{{patch-year}}}]]<!-- | ||
− | --> | + | // mm dd, yyyy -- "Month Date, Year" (with comma) DATE FORMATTING <default> --> |
+ | | blank | ||
+ | | none | ||
+ | | en | ||
+ | | #default = [[{{lang date|force=en|1={{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}} Patch{{if lang}}|<!-- | ||
+ | -->{{lang date|1={{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}}]] | ||
+ | }} | ||
− | + | | blog = [http://www.teamfortress.com/post.php?id={{{blog-id}}} {{#switch:{{SUBPAGENAME}}<!-- | |
− | + | // | |
+ | // BLOG | ||
+ | // | ||
− | + | // dd mm yyyy -- "Date Month Year" (without comma) DATE FORMATTING --> | |
− | | | + | | cs |
− | + | | de | |
− | | de | + | | fr |
− | | fr | + | | pl |
− | | | + | | ro |
− | | | + | | ru = {{{blog-day}}} {{lang date|force=de|1={{{blog-month}}}}} {{{blog-year}}}<!-- |
− | | ru= | ||
− | | | ||
− | + | // mm dd, yyyy -- "Month Date, Year" (with comma) DATE FORMATTING <default> --> | |
− | + | | blank | |
− | + | | none | |
− | + | | en | |
− | + | | #default = {{lang date|{{{blog-month}}}}} {{{blog-day}}}, {{{blog-year}}} | |
− | + | }}]<!-- | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | // | |
+ | // DAYS AGO | ||
+ | // | ||
− | --> | + | --> |
+ | | patch-daysago = {{Days ago|1={{{patch-month}}}|2={{{patch-day}}}}} | ||
+ | | blog-daysago = {{Days ago|1={{{blog-month}}}|2={{{blog-day}}}}}<!-- | ||
− | + | // | |
+ | // LOCALIZED TEXT | ||
+ | // | ||
− | -->[[ | + | --> |
+ | | patch-text = {{lang | ||
+ | | cs = Nejnovější [[Patches/cs|patch]] byl vydán | ||
+ | | de = Das letzte [[Patches/de|Update]] war am | ||
+ | | en = The latest [[Patches|patch]] was on | ||
+ | | fr = Le dernier [[Patches/fr|patch]] date du | ||
+ | | hu = A legutóbbi [[Patches|patch]] megjelenési napja | ||
+ | | pl = Najnowszy [[Patches/pl|patch]] został wydany | ||
+ | | ro = Ultimul [[Patches/ro|patch]] a fost pe | ||
+ | | ru = Последнее [[Patches/ru|обновление]] игры было | ||
+ | }} | ||
− | | | + | | blog-text = {{lang |
− | + | | cs = [[TF2 Official Blog/cs|Oficiální TF2 blog]] byl naposled aktualizován | |
− | | cs=[[TF2 Official Blog/cs|Oficiální TF2 blog]] byl naposled aktualizován | + | | de = Das letzte Update des [[TF2 Official Blog/de|TF2 Blog]]s war am |
− | | de=Das letzte Update des [[TF2 Official Blog/de|TF2 Blog]]s war am | + | | en = The [[TF2 Official Blog|blog]] was last updated on |
− | | fr=Le [[TF2 Official Blog/fr|blog]] a été mis à jour le | + | | fr = Le [[TF2 Official Blog/fr|blog]] a été mis à jour le |
− | | hu=A [[TF2 Official Blog/hu|blog]] legutóbbi bejegyzésének megjelenési napja | + | | hu = A [[TF2 Official Blog/hu|blog]] legutóbbi bejegyzésének megjelenési napja |
− | | pl=[[TF2 Official Blog/pl|Oficjalny blog TF2]] ostatnio zaktualizowano | + | | pl = [[TF2 Official Blog/pl|Oficjalny blog TF2]] ostatnio zaktualizowano |
− | | | + | | ro = [[TF2 Official Blog/ro|Blogul]] a fost ultima oară actualizat pe |
− | | | + | | ru = Последнее обновление [[TF2 Official Blog/ru|блога]] было |
+ | }} | ||
− | + | | #default = <span class="error small">ERROR {{[[Template:latest updates|latest updates]]}} failure: no type specified.</span> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | }}</includeonly><noinclude> | |
+ | {{Translation switching|cs, de, fr, hu, pl, ru}} | ||
+ | * Generates patch & blog update links and text plainly based on the parameter {{code|type}} (or the first unnamed parameter). | ||
+ | * To update dates of blog updates & patches, '''see [[Template:Updates]]'''. | ||
− | -- | + | == Usage == |
− | * | + | * Date input parameters: |
− | ** | + | <pre><nowiki> |
− | * | + | | patch-month = |
+ | | patch-day = | ||
+ | | patch-year = | ||
+ | | blog-month = | ||
+ | | blog-day = | ||
+ | | blog-year = | ||
+ | | blog-id = | ||
+ | </nowiki></pre> | ||
+ | * Formatting type parameters: {{code|1=type=}} | ||
+ | ** {{code|patch}} for a language link to the patch article for that date. | ||
+ | ** {{code|blog}} for a link to the blog post (specified by {{code|blog-id}}). | ||
+ | ** {{code|patch-daysago}} and {{code|blog-daysago}} for processing of date input parameters into {{tl|Days ago}}. | ||
+ | * Localized text parameters: | ||
+ | ** {{code|patch-text}} for a localized version of "The latest [[Patches|patch]] was on" (language link) | ||
+ | ** {{code|blog-text}} for a localized version of "The [[TF2 Official Blog|blog]] was last updated on" (language link) | ||
− | + | [[Category:Templates|Latest updates]] | |
− | [[Category:Main Page]]</noinclude> | + | [[Category:Main Page]] |
+ | </noinclude> |
Revision as of 00:20, 4 September 2010
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, de, fr, hu, pl, ru (add) |
- Generates patch & blog update links and text plainly based on the parameter
type
(or the first unnamed parameter). - To update dates of blog updates & patches, see Template:Updates.
Usage
- Date input parameters:
| patch-month = | patch-day = | patch-year = | blog-month = | blog-day = | blog-year = | blog-id =
- Formatting type parameters:
type=
patch
for a language link to the patch article for that date.blog
for a link to the blog post (specified byblog-id
).patch-daysago
andblog-daysago
for processing of date input parameters into{{Days ago}}
.
- Localized text parameters: