Template:Infobox: Difference between revisions

Jump to navigation Jump to search
(Add alternate way of entering star path item info that could be used to force standardized formatting. Requires providing params: from, tier, premium, eventTokens. Has no impact on all existing items.)
(automatically add Limited Time and applicable Star Path category if using new from/eventToken param syntax)
Line 196: Line 196:
   {{!}} id="infobox-label" {{!}} Event Cost:
   {{!}} id="infobox-label" {{!}} Event Cost:
   {{!}} {{#switch:{{{from|}}}
   {{!}} {{#switch:{{{from|}}}
     |Pixar Fest Star Path={{price|{{{eventTokens|}}}|pixartoken}}
     |Pixar Fest Star Path={{price|{{{eventTokens|}}}|pixartoken}} [[Category:Pixar Fest Star Path]]
     |Villains' Star Path={{price|{{{eventTokens|}}}|villaintoken}}
     |Villains' Star Path={{price|{{{eventTokens|}}}|villaintoken}} [[Category:Villains' Star Path]]
     |Festive Star Path={{price|{{{eventTokens|}}}|festivetoken}}
     |Festive Star Path={{price|{{{eventTokens|}}}|festivetoken}} [[Category:Festive Star Path]]
     |Centennial Star Path={{price|{{{eventTokens|}}}|centennialtoken}}
     |Centennial Star Path={{price|{{{eventTokens|}}}|centennialtoken}} [[Category:Centennial Star Path]]
     |Disney Parks Star Path={{price|{{{eventTokens|}}}|parkstoken}}
     |Disney Parks Star Path={{price|{{{eventTokens|}}}|parkstoken}} [[Category:Disney Parks Star Path]]
     |#default={{{eventTokens|}}} Tokens}}
     |#default={{{eventTokens|}}} Tokens}}
}}{{#if:{{{buyprice|}}}|<nowiki/>
}}{{#if:{{{buyprice|}}}|<nowiki/>
Line 259: Line 259:
           |Festive Star Path
           |Festive Star Path
           |Centennial Star Path
           |Centennial Star Path
           |Disney Parks Star Path={{name|{{{from|}}}}} (T{{{tier|}}}{{#ifeq:{{{premium|}}}|yes|&nbsp;Premium||}})
           |Disney Parks Star Path={{name|{{{from|}}}}} (T{{{tier|}}}{{#ifeq:{{{premium|}}}|yes|&nbsp;Premium||}}) [[Category:Limited Time]]
           |#default={{{from|}}}}}</span>
           |#default={{{from|}}}}}</span>
}}{{#if:{{{respawnLocation|}}}|<nowiki/>
}}{{#if:{{{respawnLocation|}}}|<nowiki/>