Template:Update layout/doc: Difference between revisionsGive feedback
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| (8 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 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]]. | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"params": { | "params": { | ||
"prev_update": {}, | "prev_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}}", | ||
" | "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": [ | "paramOrder": [ | ||
"prev_update", | "prev_update", | ||
" | "month", | ||
"day", | |||
"year", | |||
"next_update", | "next_update", | ||
"source", | "source", | ||
| Line 48: | Line 84: | ||
"source2", | "source2", | ||
"source2_title", | "source2_title", | ||
" | "image", | ||
"notes" | "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
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 |