Template:Update layout/doc: Difference between revisions

updated doc
m update data, remove example (error stuff).
Line 2: Line 2:
This template is used to display patch notes, including navigation links to the previous and next updates. Automatically categorizes the page onto [[: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
| category = no
| 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,
"source2": {},
"description": "Previous update."
"source_title": {},
},
"source2_title": {},
"next_update": {
"notes": {},
"example": "{{Update link|Month|Day|Year}}",
"category": {},
"type": "wiki-template-name",
"is_herolab": {},
"required": true,
"prev_update_alt_text": {},
"description": "Next update."
"next_update_alt_text": {}
},
"source": {
"description": "Source link.",
"type": "url"
},
"source2": {
"description": "2nd Source link.",
"type": "url"
},
"source_title": {
"description": "Source title.",
"type": "string"
},
"source2_title": {
"description": "Source 2 title.",
"type": "string"
},
"notes": {
"description": "Patch notes content.",
"type": "string"
},
"category": {
"type": "boolean",
"description": "Exclude the page from Category:Updates.",
"suggestedvalues": [
"false"
]
},
"month": {
"description": "Month",
"type": "string",
"required": true
},
"day": {
"description": "Day",
"type": "number",
"required": true
},
"year": {
"description": "Year",
"type": "number",
"required": true
}
},
},
"format": "block",
"format": "block",
"paramOrder": [
"paramOrder": [
"prev_update",
"prev_update",
"prev_update_alt_text",
"month",
"current_update",
"day",
"year",
"next_update",
"next_update",
"next_update_alt_text",
"source",
"source",
"source_title",
"source_title",
Line 54: Line 72:
"source2_title",
"source2_title",
"category",
"category",
"notes",
"notes"
"is_herolab"
],
]
"description": " "
}
}
</templatedata>
</templatedata>
<includeonly>[[Category:Navigation templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>[[Category:Navigation templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>