Difference between revisions of "Template:NewInfobox GameMode"

From comp.tf
Jump to navigation Jump to search
(Attempting to fix template inclusion in categories)
(Fixing more issues with templates in categories, reworked an earlier fix to be more compact, and fixed a bunch of names I goofed on.)
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]][[Category:Official Modes]]
+
   |1=[[File:CorrectIcon.png|19px|link=Category:Official Modes]]{{#if: {{{Category}}} | |[[Category:Official Modes]]}}
   |#default=[[File:IncorrectIcon.png|19px|link=Category:Unofficial Modes]][[Category:Unofficial Modes]]
+
   |#default=[[File:IncorrectIcon.png|19px|link=Category:Unofficial Modes]]{{#if: {{{Category}}} | |[[Category:Unofficial Modes]]}}
 
}}</div>
 
}}</div>
 
</div><!--
 
</div><!--
  
-->{{#if:{{{maptype|}}}{{{filename|}}}{{{version|}}}{{{author1|}}}{{{released|}}}{{{updated|}}}{{{official|}}}|
+
-->{{#if:{{{gamemode1|}}}{{{gamemode2|}}}{{{gamemode3|}}}{{{popularity|}}}|
 
<div>
 
<div>
 
<div class="infobox-header infobox-header-2">Competitive Information</div>
 
<div class="infobox-header infobox-header-2">Competitive Information</div>
Line 75: Line 75:
 
   |6v6 = [[6v6]]  
 
   |6v6 = [[6v6]]  
 
   |hl
 
   |hl
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
   |highlander = [[Highlander]]
 
}}{{#if:{{{gamemode2|}}}|,&#32;{{#switch:{{lc:{{{gamemode2|}}}}}
 
}}{{#if:{{{gamemode2|}}}|,&#32;{{#switch:{{lc:{{{gamemode2|}}}}}
 
   |bball = [[BBall]]  
 
   |bball = [[BBall]]  
Line 100: Line 100:
 
<div class="infobox-cell-2 infobox-description">League Popularity:</div>
 
<div class="infobox-cell-2 infobox-description">League Popularity:</div>
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{popularity|}}}}}
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{popularity|}}}}}
   |staple={{abbr|Staple|This map is consistently played in all leagues of its primary game mode(s)}}
+
   |staple={{abbr|Staple|This mode is consistently played in its primary league(s)}}
   |moderate={{abbr|Moderate|This map is played in some but not all leagues of its primary game mode(s)}}
+
   |moderate={{abbr|Moderate|This mode is played in some but not all leagues}}
   |trial={{abbr|Trial|This map is being tested in leagues of its primary game mode(s)}}
+
   |trial={{abbr|Trial|This mode is being tested in some leagues}}
   |obsolete={{abbr|Obsolete|This map is no longer played in any leagues}}
+
   |obsolete={{abbr|Obsolete|This mode is no longer played in any leagues}}
   |never played={{abbr|Never Played|This map has never been included in any leagues}}
+
   |never played={{abbr|Never Played|This mode has never been included in any leagues}}
 
}}</div>
 
}}</div>
 
</div>
 
</div>
Line 135: Line 135:
 
Category
 
Category
  
-->
+
-->{{#if: {{{Category}}} | |[[Category:Game Modes]]
<div>
+
}}<!--
{{#switch:{{lc:{{{Category|}}}}}
 
  |1=
 
  |#default=[[Category:Game Modes]]
 
}}</div>
 
<!--
 
  
 
--></includeonly><noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude>
 
--></includeonly><noinclude>{{Documentation}}[[Category:Infoboxes]]</noinclude>

Revision as of 23:04, 19 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 }}