Documentation The documentation below is transcluded from Template:History/doc. (edit | history)
[purge]
This template is used to list the history related to the entity described on a page. Due to its standardized format and supplemental functionalities, it is meant to be used for all historical events in the History sections of all pages.
It automatically categorizes the page in the respective Entities introduced/patched in <patch>
category. See Category:History.
Usage
{{ history | <patch name> | <change notes> | introduced = 1 (optional) | nocat = 1 (optional) }}
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
Patch name | 1 | Name of the patch in which the change happened (Important: Always use the full name that includes the platform, e.g. "Desktop 1.2" instead of "1.2"!)
| 单行文本 | 必需 |
Notes | 2 | List of changes that were made | 字符串 | 必需 |
Suppress categorization | nocat | Prevents the page from being categorized in the respective history category of this patch
| 布尔 | 可选 |
Force "introduced" category | introduced | Adds the page to the "Entities introduced in X" category, regardless of whether that corresponds to the patch notes or not
| 布尔 | 可选 |
Force "Patched" category | patched | Adds the page to the "Entities patched in X" category, only valid when "introduced" parameter is set (i.e. require |introduced=y|patched=y ).
| 布尔 | 可选 |
Patch name display | t | Custom vanity text for the patch name | 单行文本 | 可选 |
Version header | version | Prints a header above the patch notes for the entered version
| 单行文本 | 弃用 Remove this parameter where it is used. Version header handling is fully automated (if there are any issues, please report them on Template talk:History). |
Example
Note that all {{history}} calls regarding the same platform should generally be grouped together. The following is only an illustrative example of the functionality, not of how it is meant to be used.
{{history|Desktop 1.4.0.1|t=Journey's End|Changed damage from 20 to 24.}} {{history|Console 1.17|Updated mechanics.}} {{history|Console-Release|Introduced.}} {{history|Desktop 1.2|Introduced.}} {{history|Mobile 1.3.0.7|Removed.}} {{history|Mobile 1.2.11964 Easter Update|Introduced.}}
returns:
- Journey's End: Changed damage from 20 to 24.
- 主机版 1.17: Updated mechanics.
- 主机正式版: Introduced.
- 电脑版 1.2: Introduced.
- 移动版 1.3.0.7: Removed.
- 移动版 1.2.11964 复活节更新: Introduced.
zh:Template:History