Template:History/doc: Difference between revisions
Appearance
imported>Pathoschild update example |
imported>Pathoschild →Usage: + version label field |
||
| Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
===Common case=== | |||
The convention is to add a ''History'' section at the bottom of the page, just above the navboxes: | The convention is to add a ''History'' section at the bottom of the page, just above the navboxes: | ||
| Line 16: | Line 17: | ||
{{history|1.1|Adjusted Rancher bonus to 20%, up from 10%, Artisan now increases the value of [[Artisan Goods]] by 40%, down from 50%}} | {{history|1.1|Adjusted Rancher bonus to 20%, up from 10%, Artisan now increases the value of [[Artisan Goods]] by 40%, down from 50%}} | ||
{{history|1.2.26|Farming level now affects crop yield prior to level 10.}} | {{history|1.2.26|Farming level now affects crop yield prior to level 10.}} | ||
===Version label=== | |||
In niche cases, you can override the link text shown for the version number. For example: | |||
<pre> | |||
{{history|1.3.27|version label=1.3|Farming level now affects crop yield prior to level 10.}} | |||
</pre> | |||
{{history|1.3.27|version label=1.3|Farming level now affects crop yield prior to level 10.}} | |||
<includeonly> | <includeonly> | ||
[[Category:General wiki templates]] | [[Category:General wiki templates]] | ||
Revision as of 02:18, 22 August 2021
Description
This template creates a list entry for version changes in an article or page, with a link to that version in the Version History.
Usage
Common case
The convention is to add a History section at the bottom of the page, just above the navboxes:
==History==
{{history|1.0|Introduced.}}
{{history|1.1|Adjusted Rancher bonus to 20%, up from 10%, Artisan now increases the value of [[Artisan Goods]] by 40%, down from 50%}}
{{history|1.2.26|Farming level now affects crop yield prior to level 10.}}
Minus the header, this results in:
- 1.0: Introduced.
- 1.1: Adjusted Rancher bonus to 20%, up from 10%, Artisan now increases the value of Artisan Goods by 40%, down from 50%
- 1.2.26: Farming level now affects crop yield prior to level 10.
Version label
In niche cases, you can override the link text shown for the version number. For example:
{{history|1.3.27|version label=1.3|Farming level now affects crop yield prior to level 10.}}
- 1.3: Farming level now affects crop yield prior to level 10.