Template:Update layout: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) removed color |
Added Dictionary usage |
||
| 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]]}} | ! colspan="3" style="width:100%;" | {{#if:{{{is_herolab|}}}|[[Hero Lab Updates]]|[[Updates|{{#invoke:Dictionary|translate|Updates}}]]}} | ||
|- | |- | ||
! style="width:33%;" | ← {{#if:{{{prev_update|}}}|[[Update:{{{prev_update}}}|{{{prev_update}}}]]|N/A}} | ! style="width:33%;" | ← {{#if:{{{prev_update|}}}|[[Update:{{{prev_update}}}|{{{prev_update}}}]]|N/A}} | ||
| Line 7: | Line 7: | ||
! style="width:33%;" | {{#if:{{{next_update|}}}|[[Update:{{{next_update}}}|{{{next_update}}}]]|N/A}} → | ! style="width:33%;" | {{#if:{{{next_update|}}}|[[Update:{{{next_update}}}|{{{next_update}}}]]|N/A}} → | ||
|} | |} | ||
{{#if:{{{source|{{{source2|}}}}}}|<span style="font-size: 95%; font-style: italic;">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>}} | ||
== Patch notes == | == {{#invoke:Dictionary|translate|Patch notes}} == | ||
{{{notes|}}} | {{{notes|}}} | ||
</div>{{#ifeq:{{{category|}}}|no||[[Category:Updates]]}}</includeonly><noinclude>{{Documentation}}</noinclude> | </div>{{#ifeq:{{{category|}}}|no||[[Category:Updates{{If_lang}}]]}}</includeonly><noinclude>{{Documentation}}</noinclude> | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
Revision as of 11:49, 6 April 2025
This template uses CSS found at Update layout/styles.css.
Usage
This template is used to display patch notes, including navigation links to the previous and next updates. Automatically categorizes the page onto Category:Updates.
Patch notes page
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| prev_update | prev_update | Previous update.
| Template | required |
| month | month | Month | String | required |
| day | day | Day | Number | required |
| year | year | Year | Number | required |
| next_update | next_update | Next update.
| Template | required |
| source | source | Source link. | URL | optional |
| source_title | source_title | Source title. | String | optional |
| source2 | source2 | 2nd source link. | URL | optional |
| source2_title | source2_title | 2nd source title. | String | optional |
| image | image | Update image. | File | optional |
| nocat | nocat | Exclude the page from Category:Updates.
| Boolean | optional |
| notes | notes | Patch notes content. | String | required |
| hide_general | hide_general | Hide "General" header at the top of the patch notes. Any value equals "true"
| String | optional |