Difference between revisions of "Template:NewInfobox GameMode"

From comp.tf
Jump to navigation Jump to search
(Fixing more issues with templates in categories, reworked an earlier fix to be more compact, and fixed a bunch of names I goofed on.)
(Fixing another glitch)
 
(One intermediate revision by the same user not shown)
Line 53: Line 53:
 
<div class="infobox-cell-2 infobox-description">Official Mode:</div>
 
<div class="infobox-cell-2 infobox-description">Official Mode:</div>
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{official|}}}}}
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{official|}}}}}
   |1=[[File:CorrectIcon.png|19px|link=Category:Official Modes]]{{#if: {{{Category}}} | |[[Category:Official Modes]]}}
+
   |1=[[File:CorrectIcon.png|19px|link=Category:Official Modes]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Official Modes]]}}
   |#default=[[File:IncorrectIcon.png|19px|link=Category:Unofficial Modes]]{{#if: {{{Category}}} | |[[Category:Unofficial Modes]]}}
+
   |#default=[[File:IncorrectIcon.png|19px|link=Category:Unofficial Modes]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Unofficial Modes]]}}
 
}}</div>
 
}}</div>
 
</div><!--
 
</div><!--
Line 135: Line 135:
 
Category
 
Category
  
-->{{#if: {{{Category}}} | |[[Category:Game Modes]]
+
-->{{#ifeq:{{NAMESPACENUMBER}}|0|
}}<!--
+
[[Category:Game Modes]]}}<!--
  
 
--></includeonly><noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude>
 
--></includeonly><noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude>

Latest revision as of 14:57, 21 June 2017

(view - edit) Documentation

[e][h] NewInfobox GameMode
Badlands.jpg
Badlands
Mode Information
Full name:
5 Control Point
First Released:
2007
Official Mode:
CorrectIcon.png
Competitive Information
Game Modes:
League Popularity:
Staple
Links
Steam Workshop Page Official Team Fortress Wiki Page Official Team Fortress Wiki Page (Competitive)
This is just a test

This is a template to be used on game modes.

Example

The code:

{{NewInfobox GameMode

|image= badlands.jpg
|caption= Badlands

|fullname= 5 Control Point
|released= 2007
|official= 1

|gamemode1= 6v6
|gamemode2= 4v4
|gamemode3= Hl
|popularity= staple

|workshop= comp.tf
|officialwiki= badlands
|officialwiki2= 5cp

|footnotes= This is just a test }}