Template:WildStar/cvar: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 19: Line 19:
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--


-->{{#vardefine:sub|{{{ns|{{#var:sub}}}}}|{{NAMESPACE}}}}<!--
-->{{#vardefine:sub|{{#if:{{{ns|}}}|{{{ns}}}|{{#var:sub|{{NAMESPACE}}}}}}}}<!--


--><div style="float:right; margin-left:1em; margin-bottom:1em;">{{{{#var:sub}}/devnav}}<!--
--><div style="float:right; margin-left:1em; margin-bottom:1em;">{{ {{#var:sub}}/devnav}}<!--


-->{{#vardefine:tTYPE|{{#sub:{{PAGENAME}}|0|4}}}}<!--
-->{{#vardefine:tTYPE|{{#sub:{{PAGENAME}}|0|4}}}}<!--
Line 27: Line 27:
-->{{#vardefine:tNAME|{{#ifeq:{{#var:tTYPE}}|CVAR|{{#replace:{{#var:tNAME}}|<nowiki> </nowiki>|.}}}}}}<!--
-->{{#vardefine:tNAME|{{#ifeq:{{#var:tTYPE}}|CVAR|{{#replace:{{#var:tNAME}}|<nowiki> </nowiki>|.}}}}}}<!--


--><div style="margin-left:1em; margin-right:.5em;"><small>&rarr; [[:Category:WildStar CVars|CVars]]</small></div></div>{{#ifeq:{{{1|}}}|notoc|__NOTOC__|{{#ifeq:{{#var:tTYPE}}|CVAR|__NOTOC__|{{#ifeq:{{{tocright|}}}|0||{{tocright}}}}}}}}{{#ifeq:{{FULLPAGENAME}}|{{#var:sub}}/CVars||&larr; [[{{#var:sub}}/CVars|CVars]]{{#ifeq:{{#var:tTYPE}}|CVAR|&nbsp;&lt;&nbsp;{{#switch:{{{1|api}}}|api|notoc=[[{{#var:sub}}/CVars#{{#var:tNAME}}|{{#var:tNAME}}]]|removed=[[:Category:WildStar CVars/Removed_CVars#{{#var:tNAME}}|{{#var:tNAME}}]]}}}}}}<!--
--><div style="margin-left:1em; margin-right:.5em;"><small>&rarr; [[:Category:WildStar CVars|CVars]]</small></div></div>{{#ifeq:{{{1|}}}|notoc|__NOTOC__|{{#ifeq:{{#var:tTYPE}}|CVAR|__NOTOC__|{{#ifeq:{{{tocright|}}}|0||{{tocright}}}}}}}}{{#ifeq:{{FULLPAGENAME}}|{{#var:sub}}/CVars||&larr; [[{{#var:sub}}:CVars|CVars]]{{#ifeq:{{#var:tTYPE}}|CVAR|&nbsp;&lt;&nbsp;{{#switch:{{{1|api}}}|api|notoc=[[{{#var:sub}}:CVars#{{#var:tNAME}}|{{#var:tNAME}}]]|removed=[[:Category:WildStar CVars/Removed_CVars#{{#var:tNAME}}|{{#var:tNAME}}]]}}}}}}<!--


-->{{#ifeq:{{NAMESPACE}}|Template||<!--
-->{{#ifeq:{{NAMESPACE}}|Template||<!--
-->{{#ifeq:{{FULLPAGENAME}}|Category:WildStar CVars||{{#switch:{{{1|api}}}|api|notoc=[[Category:WildStar CVars]]|removed=[[Category:WildStar CVars/Removed CVars]]{{Removedcvar|{{{2|}}}}}}}}}{{#ifeq:{{FULLPAGENAME}}|{{#var:sub}}/CVars|[[Category:WildStar development]]|}}{{#if:{{{nosort|}}}||{{#ifeq:{{#var:tTYPE}}|CVAR|{{DEFAULTSORT:}}|}}}<!--
-->{{#ifeq:{{FULLPAGENAME}}|Category:WildStar CVars||{{#switch:{{{1|api}}}|api|notoc=[[Category:WildStar CVars]]|removed=[[Category:WildStar CVars/Removed CVars]]{{Removedcvar|{{{2|}}}}}}}}}{{#ifeq:{{FULLPAGENAME}}|{{#var:sub}}:CVars|[[Category:WildStar development]]|}}{{#if:{{{nosort|}}}||{{#ifeq:{{#var:tTYPE}}|CVAR|{{DEFAULTSORT:}}|}}}}<!--
-->}}<!--
-->}}<!--


--></includeonly></onlyinclude>
--></includeonly></onlyinclude>

Latest revision as of 06:05, 10 August 2023

CVars

Use this at the top of all WildStar client CVar wiki pages, including regular information pages, category pages, and specific CVar pages. Any pages with this template will be added to Category:WildStar CVars.

Usage
1= [notoc,removed,deprecated]
notoc - disable page TOC, item pages wont show TOC regardless
removed - for cvar item pages, marks as removed from the game
deprecated - for cvar item pages, marks as 'no longer should be used'
2= for cvar item pages, game version if removed or deprecated, like 2.2.0
Examples
{{cvar}} - use on any CVar information page, even category pages, that are related to CVars
{{cvar|notoc}} - for pages that have a TOC, that are having issues with the TOC
{{cvar|removed|2.2.2}} - for individual CVar item pages, to change the active state of the CVar item

Template