Template:WildStar/cvar: Difference between revisions
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}} :...") |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Use this at the top of all | {{ {{PAGENAME}}|ns={{BASEPAGENAME}}}} | ||
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: | ||
: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 9: | ||
: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 | ||
[[Category:WildStar development templates|{{PAGENAME}}]] | |||
---- | |||
;Template | |||
<onlyinclude><includeonly><!-- | |||
{{ | |||
< | |||
-->{{#vardefine:sub|{{#if:{{{ns|}}}|{{{ns}}}|{{#var:sub|{{NAMESPACE}}}}}}}}<!-- | |||
--><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 59: | 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>→ [[:Category:CVars|CVars]]</small></div></div | --><div style="margin-left:1em; margin-right:.5em;"><small>→ [[: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||← [[{{#var:sub}}:CVars|CVars]]{{#ifeq:{{#var:tTYPE}}|CVAR| < {{#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:{{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> |
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