Template:Updates/core: Difference between revisions

From the Portal Wiki
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-beta = [[{{lang date|force=en|1={{{patch-beta-month}}}}} {{{patch-beta-day}}}, {{{patch-beta-year}}} Patch (Beta){{if lang}}|{{lang
| portal-patch = [[{{lang date|force=en|1={{{portal-patch-month}}}}} {{{portal-patch-day}}}, {{{portal-patch-year}}} Patch (Portal){{if lang}}|{{lang
  | cs = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}}
  | cs = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}}
  | de = {{{patch-beta-day}}}. {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}}
  | de = {{{portal-patch-day}}}. {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}}
  | en = {{lang date|1={{{patch-beta-month}}}}} {{{patch-beta-day}}}, {{{patch-beta-year}}}
  | en = {{lang date|1={{{portal-patch-month}}}}} {{{portal-patch-day}}}, {{{portal-patch-year}}}
  | it = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}}
  | it = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}}
  | es = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}}
  | es = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}}
  | fr = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}}
  | fr = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}}
  | pl = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}}
  | pl = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}}
  | pt = {{{patch-beta-day}}} de {{lang date|{{{patch-beta-month}}}}} de {{{patch-beta-year}}}
  | pt = {{{portal-patch-day}}} de {{lang date|{{{portal-patch-month}}}}} de {{{portal-patch-year}}}
  | pt-br = {{{patch-beta-day}}} de {{lang date|{{{patch-beta-month}}}}} de {{{patch-beta-year}}}
  | pt-br = {{{portal-patch-day}}} de {{lang date|{{{portal-patch-month}}}}} de {{{portal-patch-year}}}
  | ro = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}}
  | ro = {{{portal-patch-day}}} {{lang date|{{{portal-patch-month}}}}} {{{portal-patch-year}}}
  | ru = {{{patch-beta-day}}} {{lang date|{{{patch-beta-month}}}}} {{{patch-beta-year}}}
  | 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-beta-daysago = {{Days ago|1={{{patch-beta-year}}}|2={{{patch-beta-month}}}|3={{{patch-beta-day}}}}}
| 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-beta-month = {{{patch-beta-month|}}}
| portal-patch-month = {{{portal-patch-month|}}}
| patch-beta-day = {{{patch-beta-day|}}}
| portal-patch-day = {{{portal-patch-day|}}}
| patch-beta-year = {{{patch-beta-year|}}}
| 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-beta''
:; ''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-beta-daysago'', ''blog-daysago''
:; ''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-beta-month =  
| portal-patch-month =  
| patch-beta-day =  
| portal-patch-day =  
| patch-beta-year =  
| 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

The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
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.
| 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 = -->

See also