Template:Update layout: Difference between revisionsGive feedback
added alt_text for previous and next update |
added if_lang template for translation support |
||
| Line 1: | Line 1: | ||
<includeonly><div style="padding: 0.75em 1em; border: 1px solid #aaa;"> | <includeonly><div style="padding: 0.75em 1em; border: 1px solid #aaa;"> | ||
{| style="width:100%; border: 1px solid #aaa; margin: 0; margin-bottom: 1em;" | {| style="width:100%; border: 1px solid #aaa; margin: 0; margin-bottom: 1em;" | ||
! colspan="3" style="width:100%;" | {{#if:{{{is_herolab|}}}|[[Hero Lab Updates]]|[[Updates|{{#invoke:Dictionary|translate|Updates}}]]}} | ! colspan="3" style="width:100%;" | {{#if:{{{is_herolab|}}}|[[Hero Lab Updates]]|[[Updates|{{#invoke:Dictionary|translate|Updates}}{{If_lang}}]]}} | ||
|- | |- | ||
! style="width:33%;" | ← {{#if:{{{prev_update|}}}|[[Update:{{{prev_update}}}|{{#if:{{{prev_update_alt_text|}}}|{{{prev_update_alt_text}}}|{{{prev_update}}}}}]]|N/A}} | ! style="width:33%;" | ← {{#if:{{{prev_update|}}}|[[Update:{{{prev_update}}}|{{#if:{{{prev_update_alt_text|}}}|{{{prev_update_alt_text}}}|{{{prev_update}}}}}{{If_lang}}]]|N/A}} | ||
! style="width:34%;" | {{{current_update|N/A}}} | ! style="width:34%;" | {{{current_update|N/A}}} | ||
! style="width:33%;" | {{#if:{{{next_update|}}}|[[Update:{{{next_update}}}|{{#if:{{{next_update_alt_text|}}}|{{{next_update_alt_text}}}|{{{next_update}}}}}]]|N/A}} → | ! style="width:33%;" | {{#if:{{{next_update|}}}|[[Update:{{{next_update}}}|{{#if:{{{next_update_alt_text|}}}|{{{next_update_alt_text}}}|{{{next_update}}}}}{{If_lang}}]]|N/A}} → | ||
|} | |} | ||
{{#if:{{{source|{{{source2|}}}}}}|<span style="font-size: 95%; font-style: italic;">{{#invoke:Dictionary|translate|Source:}} {{#if:{{{source|}}}|[{{{source}}} {{{source_title|{{{source}}}}}}]}}{{#if:{{{source2|}}}|{{#if:{{{source|}}}|, }}[{{{source2}}} {{{source2_title|{{{source2}}}}}}]}}</span>}} | {{#if:{{{source|{{{source2|}}}}}}|<span style="font-size: 95%; font-style: italic;">{{#invoke:Dictionary|translate|Source:}} {{#if:{{{source|}}}|[{{{source}}} {{{source_title|{{{source}}}}}}]}}{{#if:{{{source2|}}}|{{#if:{{{source|}}}|, }}[{{{source2}}} {{{source2_title|{{{source2}}}}}}]}}</span>}} | ||