User:Nefastu/Projects/SVH template rework/Version history
From Guild Wars 2 Wiki
Jump to navigationJump to search
__NOEDITSECTION__<includeonly>{{#vardefine:historical|{{#switch: {{{historical|{{#show: {{BASEPAGENAME}} | ?Is historical | default = false}} }}} | true | y | yes = y | n | no | false = n}} }}<!-- -->{{#vardefine:type|{{lc:{{#if: {{{type|}}} | {{{type}}} | {{#show: {{BASEPAGENAME}} | ?Has context | default = Skill }}}}}}}}<div style="margin: 10px auto; padding-left:10px; width: 60%; background: silver;" title="Version history"> <div style="background: #F7F7F7; border: 1px solid silver; margin-bottom:15px; border-left: none; padding: 0.5em 1em;"> {| cellpadding="0" cellspacing="0" style="background-color: transparent;" | style="vertical-align:middle;" | [[File:Historic content quaggan icon.png|80px]] | style="vertical-align:middle; padding-left: 1em;" | {{#if:{{{unchanged|}}}|''This page contains information about a Guild Wars 2 {{#var:type}} that has remained the same since its introduction.'' (This article duplicates the information in the main article.)|''This page contains information about a Guild Wars 2 {{#var:type}} that has been updated since its introduction.''<br>'''Some of the information on this page no longer applies to the game as it currently exists.''' {{#if:{{{split|}}}|This {{#var:type}} {{#ifeq:{{{split}}}|historical|was|is}} split between game modes. View the game mode version of the game update by selecting the game mode below the changes.<br />|}} For the current version of this {{#var:type}}, see [[{{ROOTPAGENAME}}]].|}} |}</div></div></includeonly><!-- --><includeonly>{{#if:{{{unchanged|}}}| {{#switch: {{#var:type}} | trait = [[Category:Unchanged trait version histories]] | effect = [[Category:Unchanged effect version histories]] | [[Category:Unchanged version histories]] }} | {{#switch: {{#var:type}} | trait = {{#switch: {{#var:historical}} | y = [[Category:Historical trait version histories]] | n = [[Category:Trait version histories]] }} | effect = {{#switch: {{#var:historical}} | y = [[Category:Historical effect version histories]] | n = [[Category:Effect version histories]] }} | {{#switch: {{#var:historical}} | y = [[Category:Historical version histories]] | n | default = [[Category:Version histories]] }} }} }}</includeonly><noinclude> ==Description== This is a template created for the [[Guild Wars 2 Wiki:Projects/Skill Version History|Skill Version History]] [[GW2W:PROJECTS|project]]. It is used to create a notice on the "/History" page of a skill/trait/effect. This categorizes "/history" articles in [[:Category:Version histories]]. ===Parameters=== ;split :Optional. Set to 'y' or 'historical' to include information about the game mode buttons above the infoboxes. ;type :Optional. Valid parameter input is 'trait' or 'effect' (default is skill). This will be automatically set if the base page has ?Has context = Skill / Trait / Effect. ;unchanged :Optional. Creates a unchanged version history notice and adds the page to [[:Category:Unchanged version histories]] instead. ;historical :Optional. Categorizes the page to Historical trait/effect version histories. This will be automatically set if the base page has ?Is historical = true. ==Example usage== <pre>{{Version history}}
{{Version history|type=trait|unchanged=y}}
{{Version history|split=y}}
{{Version history|split=historical)}}