Template:Update layout: Difference between revisions

added if_lang template for translation support
m added displaytitle and update links.
Line 1: Line 1:
<includeonly><div style="padding: 0.75em 1em; border: 1px solid #aaa;">
<includeonly><!--
{| style="width:100%; border: 1px solid #aaa; margin: 0; margin-bottom: 1em;"
-->{{DISPLAYTITLE:{{#invoke:Dictionary|translate_embed|update-title-fmt|{{#invoke:Dictionary|translate|{{{month}}}}}|{{{day}}}|{{{year}}}}}}}<!--
! colspan="3" style="width:100%;" | {{#if:{{{is_herolab|}}}|[[Hero Lab Updates]]|[[Updates{{If_lang}}|{{#invoke:Dictionary|translate|Updates}}]]}}
--><div style="padding: 0.75em 1em; border: 1px solid #aaa;">
{| style="width: 100%; border: 1px solid #aaa; margin: 0; margin-bottom: 1em;"
! colspan="3" style="width:100%;" | [[Updates{{if lang}}|{{#invoke:Dictionary|translate|Updates}}]]
|-
|-
! style="width:33%;" | ← {{#if:{{{prev_update|}}}|[[Update:{{{prev_update}}}{{If_lang}}|{{#if:{{{prev_update_alt_text|}}}|{{{prev_update_alt_text}}}|{{{prev_update}}}}}]]|N/A}}
! style="width:33%;" | ← {{#if:{{{prev_update}}}|{{{prev_update}}}|{{#invoke:Dictionary|translate|N/A}}}}
! style="width:34%;" | {{{current_update|N/A}}}
! style="width:34%;" | {{Update link|{{{month}}}|{{{day}}}|{{{year}}}}}
! style="width:33%;" | {{#if:{{{next_update|}}}|[[Update:{{{next_update}}}{{If_lang}}|{{#if:{{{next_update_alt_text|}}}|{{{next_update_alt_text}}}|{{{next_update}}}}}]]|N/A}} →
! style="width:33%;" | {{#if:{{{next_update}}}|{{{next_update}}}|{{#invoke:Dictionary|translate|N/A}}}} →
|}
|}
{{#if:{{{source|{{{source2|}}}}}}|<span style="font-size: 95%; font-style: italic;">{{#invoke:Dictionary|translate|Source:}}&nbsp;{{#if:{{{source|}}}|[{{{source}}} {{{source_title|{{{source}}}}}}]}}{{#if:{{{source2|}}}|{{#if:{{{source|}}}|,&nbsp;}}[{{{source2}}} {{{source2_title|{{{source2}}}}}}]}}</span>}}
{{#if:{{{source|{{{source2|}}}}}}|<span style="font-size: 95%; font-style: italic;">{{#invoke:Dictionary|translate|Source:}}&nbsp;{{#if:{{{source|}}}|[{{{source}}} {{{source_title|{{{source}}}}}}]}}{{#if:{{{source2|}}}|{{#if:{{{source|}}}|,&nbsp;}}[{{{source2}}} {{{source2_title|{{{source2}}}}}}]}}</span>}}
== {{#invoke:Dictionary|translate|Patch notes}} ==
== {{#invoke:Dictionary|translate|Patch notes}} ==
{{{notes|}}}
{{{notes|}}}
</div>{{#ifeq:{{{category|}}}|no||[[Category:Updates{{If_lang}}]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
</div>{{#ifeq:{{{category|}}}|false||[[Category:Updates{{if lang}}]]}}
</includeonly><noinclude>{{Documentation}}</noinclude>
__NOEDITSECTION__
__NOEDITSECTION__