Template:Update layout/doc: Difference between revisions

From The Deadlock Wiki
Jump to navigation Jump to search
add templatedata, cat,
No edit summary
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{TS}}
== Usage ==
== Usage ==
This template is used to display patch notes, including navigation links to the previous and next updates. Automatically categorizes the page into [[:Category:Updates]].
This template is used to display patch notes, including navigation links to the previous and next updates. Automatically categorizes the page onto [[:Category:Updates]].


== Example ==
<pre style="width:50%">
{{Update layout
| prev_update = May 3, 2024
| current_update = May 10, 2024
| next_update = May 13, 2024
| source = https://forums.playdeadlock.com/threads/05-10-2024-update.689/
| source_title = 05-10-2024 Update
| notes =
* Sandbox mode now supports entering it with your party
* Sandbox mode now has troopers spawning on the left side
}}
</pre>
{{Update layout
| prev_update = May 3, 2024
| current_update = May 10, 2024
| next_update = May 13, 2024
| source = https://forums.playdeadlock.com/threads/05-10-2024-update.689/
| source_title = 05-10-2024 Update
| notes =
* Sandbox mode now supports entering it with your party
* Sandbox mode now has troopers spawning on the left side
}}
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"prev_update": {},
"prev_update": {
"current_update": {},
"example": "{{Update link|Month|Day|Year}}",
"next_update": {},
"type": "wiki-template-name",
"source": {},
"required": true,
"source_title": {},
"description": "Previous update."
"notes": {}
},
"next_update": {
"example": "{{Update link|Month|Day|Year}}",
"type": "wiki-template-name",
"required": true,
"description": "Next update."
},
"source": {
"description": "Source link.",
"type": "url"
},
"source2": {
"description": "2nd source link.",
"type": "url"
},
"source_title": {
"description": "Source title.",
"type": "string"
},
"source2_title": {
"description": "2nd source title.",
"type": "string"
},
"notes": {
"description": "Patch notes content.",
"type": "string",
"required": true
},
"month": {
"description": "Month",
"type": "string",
"required": true
},
"day": {
"description": "Day",
"type": "number",
"required": true
},
"year": {
"description": "Year",
"type": "number",
"required": true
},
"image": {
"description": "Update image.",
"type": "wiki-file-name"
},
"nocat": {
"description": "Exclude the page from Category:Updates.",
"type": "boolean",
"suggestedvalues": [
"true"
]
},
"hide_general": {
"description": "Hide \"General\" header at the top of the patch notes. Any value equals \"true\"",
"type": "string",
"suggestedvalues": [
"true"
]
}
},
},
"format": "block"
"format": "block",
"paramOrder": [
"prev_update",
"month",
"day",
"year",
"next_update",
"source",
"source_title",
"source2",
"source2_title",
"image",
"nocat",
"notes",
"hide_general"
],
"description": "Patch notes page"
}
}
</templatedata>
</templatedata>
<includeonly>[[Category:Navigation templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[Category:Navigation templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 19:21, 23 August 2026

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

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