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 WS client CVar information pages.'' Any pages with this template will be added to Category:CVars. Usage: :{{t|cvar}} :{{t|cvar|notoc}} :...")
 
(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...")
Line 1: Line 1:
Use this at the top of all WS client [[CVar]] wiki pages, including regular information pages, category pages, and specific CVar pages. Any pages with this template will be added to [[:Category: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:
;Usage:
{{t|cvar|state|version}}
:1= [notoc,removed,deprecated]
:1= [notoc,removed,deprecated]
::notoc - disable page TOC, item pages wont show TOC regardless
::notoc - disable page TOC, item pages wont show TOC regardless
Line 9: Line 8:
:2= for cvar item pages, game version if removed or deprecated, like 2.2.0
:2= for cvar item pages, game version if removed or deprecated, like 2.2.0


Examples:
;Examples:
:<nowiki>{{cvar}}</nowiki> - use on any CVar information page, even category pages, that are related to CVars
:<nowiki>{{cvar}}</nowiki> - use on any CVar information page, even category pages, that are related to CVars
:<nowiki>{{cvar|notoc}}</nowiki> - for pages that have a TOC, that are having issues with the TOC
:<nowiki>{{cvar|notoc}}</nowiki> - for pages that have a TOC, that are having issues with the TOC
:<nowiki>{{cvar|removed|2.2.2}}</nowiki> - for individual CVar item pages, to change the active state of the CVar item
:<nowiki>{{cvar|removed|2.2.2}}</nowiki> - for individual CVar item pages, to change the active state of the CVar item


Boilerplate for CVar item page:
[[Category:WildStar development templates|{{PAGENAME}}]]
<pre>
----
{{cvar}}
;Template
 
<onlyinclude><!--
:
 
name.name = 9
 
== UI ==
 
:
 
== Summary ==
 
== Notes ==
</pre>
or{{clr}}
<pre>
{{cvar}}
<!-- one or two line explanation -->
 
: <!-- 9 (default) - description of option -->
 
name.name = 9


== UI ==
-->{{#vardefine:sub|{{{ns|{{BASEPAGENAME}}}}}}}<!--
<!-- one or two line UI-location and explanation of option in UI -->
: <!-- 9 - "Label of option verbatim from game UI" -->


== Summary ==
--><div style="float:right; margin-left:1em; margin-bottom:1em;">{{{{#var:sub}}/devnav}}<!--
<!-- rest of explanation -->
 
== Notes ==
<!--* bullet-ed wiki list of notes or patch changes, if any -->
</pre>
 
[[Category:WS development templates|{{PAGENAME}}]]
----
;Template
<onlyinclude><div style="float:right; margin-left:1em; margin-bottom:1em;">{{devnav}}<!--


-->{{#vardefine:tTYPE|{{#sub:{{PAGENAME}}|0|4}}}}<!--
-->{{#vardefine:tTYPE|{{#sub:{{PAGENAME}}|0|4}}}}<!--
Line 59: 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:CVars|CVars]]</small></div></div><includeonly>{{#ifeq:{{FULLPAGENAME}}|Category:CVars||{{#switch:{{{1|api}}}|api|notoc=[[Category:CVars]]|removed=[[Category:CVars/Removed CVars]]{{Removedcvar|{{{2|}}}}}}}}}{{#ifeq:{{FULLPAGENAME}}|CVars|[[Category:WS development]]|}}{{#if:{{{nosort|}}}||{{#ifeq:{{#var:tTYPE}}|CVAR|{{DEFAULTSORT:}}|}}}}</includeonly>{{#ifeq:{{{1|}}}|notoc|__NOTOC__|{{#ifeq:{{#var:tTYPE}}|CVAR|__NOTOC__|{{#ifeq:{{{tocright|}}}|0||{{tocright}}}}}}}}{{#ifeq:{{FULLPAGENAME}}|CVars||&larr; [[CVars]]{{#ifeq:{{#var:tTYPE}}|CVAR|&nbsp;&lt;&nbsp;{{#switch:{{{1|api}}}|api|notoc=[[CVars#{{#var:tNAME}}|{{#var:tNAME}}]]|removed=[[:Category: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><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>

Revision as of 01:29, 9 July 2020

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

CVars