Template:WildStar/cvar: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with "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...")
No edit summary
Line 16: Line 16:
----
----
;Template
;Template
<onlyinclude><!--
<onlyinclude><includeonly><!--


-->{{#vardefine:sub|{{{ns|{{BASEPAGENAME}}}}}}}<!--
-->{{#vardefine:sub|{{{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}}<!--
Line 26: Line 26:
-->{{#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><includeonly>{{#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>{{#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}}]]}}}}}}</onlyinclude>
--><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:{{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>

Revision as of 04:50, 9 August 2023

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