Template:Update layout/doc: Difference between revisionsGive feedback
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]]. | ||
<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}}", | ||
"category": {}, | "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": "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", | ||
" | "month", | ||
" | "day", | ||
"year", | |||
"next_update", | "next_update", | ||
"source", | "source", | ||
"source_title", | "source_title", | ||
| Line 54: | Line 72: | ||
"source2_title", | "source2_title", | ||
"category", | "category", | ||
"notes", | "notes" | ||
], | |||
"description": " " | |||
} | } | ||
</templatedata> | </templatedata> | ||
<includeonly>[[Category:Navigation templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | <includeonly>[[Category:Navigation templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||