Difference between revisions of "Template:History"

From Stardew Valley Wiki
Jump to navigation Jump to search
m
(+ version label override)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly>* {{version|{{{1}}}|{{{version label|{{{1}}}}}}}}: {{{2|}}}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
|-
 
|
 
*
 
|{{#switch:{{{1|}}}
 
|1.0=[[Version_History#Version_1.0|1.0]]
 
|1.01=[[Version_History#Version_1.0|1.01]]
 
|1.02=[[Version_History#Version_1.0|1.02]]
 
|1.03=[[Version_History#Version_1.0|1.03]]
 
|1.04=[[Version_History#Version_1.0|1.04]]
 
|1.05=[[Version_History#Version_1.0|1.05]]
 
|1.051=[[Version_History#Version_1.0|1.051]]
 
|1.051b=[[Version_History#Version_1.051b|1.051b]]
 
|1.06=[[Version_History#Version_1.06|1.06]]
 
|1.07=[[Version_History#Version_1.07|1.07]]
 
|1.1=[[Version_History#Version_1.1.0|1.1.0]]
 
|1.1.0=[[Version_History#Version_1.1.0|1.1.0]]
 
|#default =[[Version_History#{{{1|}}}|{{{1|}}}]]
 
}}:
 
|{{{2|}}}<br>
 
</includeonly><noinclude>{{History/doc}}</noinclude>
 

Latest revision as of 02:14, 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.

Use

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.