User:Relyk/rune/template2
From Guild Wars 2 Wiki
< User:Relyk | rune
Jump to navigationJump to search
Template[edit]
{{User:Relyk/rune/template2 | name = | icon = | description = | version = | variables = | stat_6 = | value = | key = }}
Example[edit]
{{User:Relyk/rune/template2 | name = Superior Sigil of Hobbling | icon = Superior Sigil of Hobbling.png | version = Superior | stat_1 = Increased Inflicted [[Crippled|Cripple]] Duration: 10% | value = 216 }}
{{#vardefine:version|{{#if: {{{version|}}} | {{{version}}} | {{#explode| {{{PAGENAME}}} }} }} }} <!-- Default 0, which is the prefix --> {{#set:Has version={{#var:version}}}} {{Upgrade component infobox | name = {{{name|}}} <!-- Upgrade component infobox handles empty parameter --> | icon = {{{icon|}}} <!-- Upgrade component infobox handles empty parameter --> | description = {{{description|''Double-click to apply to a weapon.''}}} | stat_1 = {{#if: {{{stat_1|}}} | [[Has variable::{{{stat_1}}}]] | "Unknown" }} <!-- Being cute and reusing rune parameter--> | type = Sigil | level = {{#switch: {{lc: {{#var:version}} }} | minor = | major = 39 | superior = 60 | #default = ? }} | rarity = {{#switch: {{lc: {{#var:version}} }} | minor = Masterwork | major = Rare | superior = Exotic | #default = ? }} | value = {{{value|}}}<!-- Varies on the sigil I think --> | key = {{{key|}}} <!-- Upgrade component infobox handles empty parameter --> }}
Test[edit]
- Rune version: