Template:Updates/core: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#switch:{{{1|{{{type|}}}}}} | patch = [[{{lang date|force=en|1={{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}} Patch{{if lang}}|{{lang | cs = {{{patch-day}...") |
No edit summary |
||
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 | | patch = [[{{lang date|force=en|1={{{portal2-patch-month}}}}} {{{portal2-patch-day}}}, {{{portal2-patch-year}}} Patch (Portal 2){{if lang}}|{{lang | ||
| cs = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | | cs = {{{portal2-patch-day}}} {{lang date|{{{portal2-patch-month}}}}} {{{portal2-patch-year}}} | ||
| de = {{{patch-day}}}. {{lang date|{{{patch-month}}}}} {{{patch-year}}} | | de = {{{portal2-patch-day}}}. {{lang date|{{{portal2-patch-month}}}}} {{{portal2-patch-year}}} | ||
| en = {{lang date|{{{patch-month}}}}} {{{patch-day}}}, {{{patch-year}}} | | en = {{lang date|{{{portal2-patch-month}}}}} {{{portal2-patch-day}}}, {{{portal2-patch-year}}} | ||
| it = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | | it = {{{portal2-patch-day}}} {{lang date|{{{portal2-patch-month}}}}} {{{portal2-patch-year}}} | ||
| es = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | | es = {{{portal2-patch-day}}} {{lang date|{{{portal2-patch-month}}}}} {{{portal2-patch-year}}} | ||
| fr = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | | fr = {{{portal2-patch-day}}} {{lang date|{{{portal2-patch-month}}}}} {{{portal2-patch-year}}} | ||
| pl = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | | pl = {{{portal2-patch-day}}} {{lang date|{{{portal2-patch-month}}}}} {{{portal2-patch-year}}} | ||
| pt = {{{patch-day}}} de {{lang date|{{{patch-month}}}}} de {{{patch-year}}} | | pt = {{{portal2-patch-day}}} de {{lang date|{{{portal2-patch-month}}}}} de {{{portal2-patch-year}}} | ||
| pt-br = {{{patch-day}}} de {{lang date|{{{patch-month}}}}} de {{{patch-year}}} | | pt-br = {{{portal2-patch-day}}} de {{lang date|{{{portal2-patch-month}}}}} de {{{portal2-patch-year}}} | ||
| ro = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | | ro = {{{portal2-patch-day}}} {{lang date|{{{portal2-patch-month}}}}} {{{portal2-patch-year}}} | ||
| ru = {{{patch-day}}} {{lang date|{{{patch-month}}}}} {{{patch-year}}} | | ru = {{{portal2-patch-day}}} {{lang date|{{{portal2-patch-month}}}}} {{{portal2-patch-year}}} | ||
}}]] | }}]] | ||
| patch | | portal-patch = [[{{lang date|force=en|1={{{portal-patch-month}}}}} {{{portal-patch-day}}}, {{{portal-patch-year}}} Patch (Portal){{if lang}}|{{lang | ||
| cs = {{{patch | | cs = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}} | ||
| de = {{{patch | | de = {{{portal-patch-day}}}. {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}} | ||
| en = {{lang date|1={{{patch | | en = {{lang date|1={{{portal-patch-month}}}}} {{{portal-patch-day}}}, {{{portal-patch-year}}} | ||
| it = {{{patch | | it = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}} | ||
| es = {{{patch | | es = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}} | ||
| fr = {{{patch | | fr = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}} | ||
| pl = {{{patch | | pl = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}} | ||
| pt = {{{patch | | pt = {{{portal-patch-day}}} de {{lang date|{{{portal-patch-month}}}}} de {{{portal-patch-year}}} | ||
| pt-br = {{{patch | | pt-br = {{{portal-patch-day}}} de {{lang date|{{{portal-patch-month}}}}} de {{{portal-patch-year}}} | ||
| ro = {{{patch | | ro = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}} | ||
| ru = {{{patch | | ru = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}} | ||
}}]] | }}]] | ||
Line 43: | Line 43: | ||
}}] | }}] | ||
| patch-daysago = {{Days ago|1={{{patch-year}}}|2={{{patch-month}}}|3={{{patch-day}}}}} | | portal2-patch-daysago = {{Days ago|1={{{portal2-patch-year}}}|2={{{portal2-patch-month}}}|3={{{portal2-patch-day}}}}} | ||
| patch | | portal-patch-daysago = {{Days ago|1={{{portal-patch-year}}}|2={{{portal-patch-month}}}|3={{{portal-patch-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|}}} | | portal2-patch-month = {{{portal2-patch-month|}}} | ||
| patch-day = {{{patch-day|}}} | | portal2-patch-day = {{{portal2-patch-day|}}} | ||
| patch-year = {{{patch-year|}}} | | portal2-patch-year = {{{portal2-patch-year|}}} | ||
| patch | | portal-patch-month = {{{portal-patch-month|}}} | ||
| patch | | portal-patch-day = {{{portal-patch-day|}}} | ||
| patch | | portal-patch-year = {{{portal-patch-year|}}} | ||
| blog-month = {{{blog-month|}}} | | blog-month = {{{blog-month|}}} | ||
Line 60: | Line 60: | ||
| blog-id = {{{blog-id|}}} | | blog-id = {{{blog-id|}}} | ||
| wiki-cap-recipient = {{{wiki-cap-recipient|}}} | <!--| wiki-cap-recipient = {{{wiki-cap-recipient|}}}--> | ||
| #default = <span class="error small">ERROR {{tl|Updates/core}}: type doesn't match.</span> | | #default = <span class="error small">ERROR {{tl|Updates/core}}: type doesn't match.</span> | ||
Line 75: | Line 75: | ||
:: Provides a lang-formatted proper link to the latest patch article. | :: Provides a lang-formatted proper link to the latest patch article. | ||
:; ''patch | :; ''portal-patch'' | ||
:: Provides a lang-formatted proper link to [[Patches (Beta)]]. | :: Provides a lang-formatted proper link to [[Patches (Beta)]]. | ||
Line 83: | Line 83: | ||
'''Days ago''' | '''Days ago''' | ||
:; ''patch-daysago'', ''patch | :; ''portal2-patch-daysago'', ''portal-patch-daysago'', ''blog-daysago'' | ||
:: Uses {{tl|Days ago}} to render the days since the last patch / blog update (bracketed). | :: Uses {{tl|Days ago}} to render the days since the last patch / blog update (bracketed). | ||
Line 91: | Line 91: | ||
<pre> | <pre> | ||
| patch-month = | | portal2-patch-month = | ||
| patch-day = | | portal2-patch-day = | ||
| patch-year = | | portal2-patch-year = | ||
| patch | | portal-patch-month = | ||
| patch | | portal-patch-day = | ||
| patch | | portal-patch-year = | ||
| blog-month = | | blog-month = | ||
Line 104: | Line 104: | ||
| blog-id = | | blog-id = | ||
| wiki-cap-recipient = | <!--| wiki-cap-recipient = --> | ||
</pre> | </pre> | ||
Revision as of 21:37, 22 April 2011
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Updates/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: cs, es, it, de, fr, pl, pt, pt-br, ro, ru (add) |
The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.
This is normal.
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.
- portal-patch
- 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
- portal2-patch-daysago, portal-patch-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
| portal2-patch-month = | portal2-patch-day = | portal2-patch-year = | portal-patch-month = | portal-patch-day = | portal-patch-year = | blog-month = | blog-day = | blog-year = | blog-id = <!--| wiki-cap-recipient = -->