Template:Update layout: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
m fixed image above header.
fixed broken general header
 
(20 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{DISPLAYTITLE:{{#invoke:Dictionary|translate_embed|update-title-fmt|{{#invoke:Dictionary|translate|{{{month}}}}}|{{{day}}}|{{{year}}}}}}}<!--
-->{{#switch:{{NAMESPACE}}|Template=|User=|#default={{DISPLAYTITLE:{{#invoke:Dictionary|translate|update-title-fmt|{{Translate|{{{month}}}}}|{{{day}}}|{{{year}}}}}}}}}<!--
--><div style="padding: 0.75em 1em; border: 1px solid #aaa;">
--><templatestyles src="Update layout/styles.css" /><!--
{| style="width: 100%; border: 1px solid #aaa; margin: 0; margin-bottom: 1em;"
--><div class="update-layout-container">
! colspan="3" style="width:100%;" | [[Updates{{if lang}}|{{#invoke:Dictionary|translate|Updates}}]]
{| class="update-layout-nav"
! colspan="3" | [[Updates{{if lang}}|{{Translate|Updates}}]]
|-
|-
! style="width:33%;" | ← {{#if:{{{prev_update}}}|{{{prev_update}}}|{{#invoke:Dictionary|translate|N/A}}}}
! | ← {{#if:{{{prev_update}}}|{{{prev_update}}}|{{Translate|N/A}}}}
! style="width:34%;" | {{Update link|{{{month}}}|{{{day}}}|{{{year}}}}}
! | {{Update link|{{{month}}}|{{{day}}}|{{{year}}}}}
! style="width:33%;" | {{#if:{{{next_update}}}|{{{next_update}}}|{{#invoke:Dictionary|translate|N/A}}}} →
! | {{#if:{{{next_update}}}|{{{next_update}}}|{{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 class="update-layout-source">{{Translate|Source:}}&nbsp;{{#if:{{{source|}}}|[{{{source}}} {{{source_title|{{{source}}}}}}]}}{{#if:{{{source2|}}}|{{#if:{{{source|}}}|,&nbsp;}}[{{{source2}}} {{{source2_title|{{{source2}}}}}}]}}</span>}}<!--
== {{#invoke:Dictionary|translate|Patch notes}} ==
-->{{#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:{{{category|}}}|false||[[Category:Updates{{if lang}}]]}}</includeonly><noinclude>{{Documentation}}
</div>
{{DISPLAYTITLE:Template:Update layout}}</noinclude>
</div>{{#ifeq:{{lc:{{{nocat|false}}}}}|false|[[Category:Updates{{if lang}}]]}}__NOEDITSECTION__</includeonly><noinclude>{{Documentation}}</noinclude>
__NOEDITSECTION__

Latest revision as of 15:16, 29 August 2026

Template documentation [view] [edit] [history] [purge]
CSS3 logo.svg
This template uses CSS found at Update layout/styles.css.

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

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
prev_updateprev_update

Previous update.

Example
{{Update link|Month|Day|Year}}
Templaterequired
monthmonth

Month

Stringrequired
dayday

Day

Numberrequired
yearyear

Year

Numberrequired
next_updatenext_update

Next update.

Example
{{Update link|Month|Day|Year}}
Templaterequired
sourcesource

Source link.

URLoptional
source_titlesource_title

Source title.

Stringoptional
source2source2

2nd source link.

URLoptional
source2_titlesource2_title

2nd source title.

Stringoptional
imageimage

Update image.

Fileoptional
nocatnocat

Exclude the page from Category:Updates.

Suggested values
true
Booleanoptional
notesnotes

Patch notes content.

Stringrequired
hide_generalhide_general

Hide "General" header at the top of the patch notes. Any value equals "true"

Suggested values
true
Stringoptional