Template:Update layout: Difference between revisionsGive feedback
Jump to navigation
Jump to search
Gammaton32 (talk | contribs) reverted to use "general" header |
Gammaton32 (talk | contribs) fixed broken general header |
||
| (6 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
-->{{#switch:{{NAMESPACE}}|Template=|User=|#default={{DISPLAYTITLE:{{#invoke:Dictionary|translate|update-title-fmt|{{Translate|{{{month}}}}}|{{{day}}}|{{{year}}}}}}}}}<!-- | -->{{#switch:{{NAMESPACE}}|Template=|User=|#default={{DISPLAYTITLE:{{#invoke:Dictionary|translate|update-title-fmt|{{Translate|{{{month}}}}}|{{{day}}}|{{{year}}}}}}}}}<!-- | ||
--><div | --><templatestyles src="Update layout/styles.css" /><!-- | ||
{| | --><div class="update-layout-container"> | ||
! colspan="3 | {| class="update-layout-nav" | ||
! colspan="3" | [[Updates{{if lang}}|{{Translate|Updates}}]] | |||
|- | |- | ||
! | ! | ← {{#if:{{{prev_update}}}|{{{prev_update}}}|{{Translate|N/A}}}} | ||
! | ! | {{Update link|{{{month}}}|{{{day}}}|{{{year}}}}} | ||
! | ! | {{#if:{{{next_update}}}|{{{next_update}}}|{{Translate|N/A}}}} → | ||
|} | |} | ||
{{#if:{{{source|{{{source2|}}}}}}|<span | {{#if:{{{source|{{{source2|}}}}}}|<span class="update-layout-source">{{Translate|Source:}} {{#if:{{{source|}}}|[{{{source}}} {{{source_title|{{{source}}}}}}]}}{{#if:{{{source2|}}}|{{#if:{{{source|}}}|, }}[{{{source2}}} {{{source2_title|{{{source2}}}}}}]}}</span>}}<!-- | ||
-->{{#if:{{{image|}}}|[[File:{{{image}}}|right|400px]]}} | |||
{{#if:{{{image|}}}|[[File:{{{image}}}|right|400px]]}} | {{#ifeq:{{{hide_general|}}}||== {{Translate|General}} ==}} | ||
<div class="update-notes"> | |||
{{{notes|}}} | {{{notes|}}} | ||
</div>{{#ifeq:{{lc:{{{nocat|false}}}}}|false|[[Category:Updates{{if lang}}]]}}</includeonly><noinclude>{{Documentation}}</noinclude> | </div> | ||
</div>{{#ifeq:{{lc:{{{nocat|false}}}}}|false|[[Category:Updates{{if lang}}]]}}__NOEDITSECTION__</includeonly><noinclude>{{Documentation}}</noinclude> | |||
Latest revision as of 15:16, 29 August 2026
This template uses CSS found at Update layout/styles.css.
Usage
[edit source]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 |