Difference between revisions of "Template:NewInfobox GameMode"

From comp.tf
Jump to navigation Jump to search
(I should have put this in a sandbox, but oh well. Only partially done, feel free to make needed changes.)
 
(Fixing another glitch)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><!--
 
<includeonly><!--
  
<div class="fo-nttax-infobox-wrapper">
+
--><div class="fo-nttax-infobox-wrapper">
 
<div class="fo-nttax-infobox">
 
<div class="fo-nttax-infobox">
 
<div>
 
<div>
<div class="infobox-header"><span class="infobox-buttons"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section=0}} e]<nowiki>]</nowiki><nowiki>[</nowiki>[[Template:NewInfobox Gamemode|h]]<nowiki>]</nowiki></span>{{#if:{{{shortname|}}}|{{{shortname}}}| {{#if:{{{fullname|}}}|{{{fullname}}}|{{PAGENAME}}}} }}</div>
+
<div class="infobox-header"><span class="infobox-buttons"><nowiki>[</nowiki>[{{SERVER}}{{localurl:{{FULLPAGENAME}}|action=edit&section=0}} e]<nowiki>]</nowiki><nowiki>[</nowiki>[[Template:NewInfobox Gamemode|h]]<nowiki>]</nowiki></span> {{PAGENAME}}</div>
 
</div><!--
 
</div><!--
  
Line 23: Line 23:
 
}}<!--
 
}}<!--
  
-->{{#if:{{{fullname|}}}{{{released|}}}{{{official|}}}
+
-->{{#if:{{{fullname|}}}{{{released|}}}{{{official|}}}|
 
<div>
 
<div>
 
<div class="infobox-header infobox-header-2">Mode Information</div>
 
<div class="infobox-header infobox-header-2">Mode Information</div>
Line 43: Line 43:
 
<div>
 
<div>
 
<div class="infobox-cell-2 infobox-description">First Released:</div>
 
<div class="infobox-cell-2 infobox-description">First Released:</div>
<div class="infobox-cell-2">{{{founder}}}</div>
+
<div class="infobox-cell-2">{{{released}}}</div>
 
</div>
 
</div>
 
}}<!--
 
}}<!--
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]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[Category:Official Modes]]}}
   |#default=[[File:IncorrectIcon.png|19px|link=Category:Unofficial Modes]][[Category:Unofficial Modes]]
+
   |#default=[[File:IncorrectIcon.png|19px|link=Category:Unofficial Modes]]{{#ifeq:{{NAMESPACENUMBER}}|0|[[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 70: Line 70:
 
<div class="infobox-cell-2 infobox-description">Game Modes:</div>
 
<div class="infobox-cell-2 infobox-description">Game Modes:</div>
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{gamemode1|}}}}}
 
<div class="infobox-cell-2">{{#switch:{{lc:{{{gamemode1|}}}}}
   |bball = [[BBall]] [[Category:BBall Maps]]
+
   |bball = [[BBall]]
   |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
+
   |ultiduo = [[Ultiduo]]
   |4v4 = [[4v4]] [[Category:4v4 Maps]]
+
   |4v4 = [[4v4]]
   |6v6 = [[6v6]] [[Category:6v6 Maps]]
+
   |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]] [[Category:BBall Maps]]
+
   |bball = [[BBall]]  
   |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
+
   |ultiduo = [[Ultiduo]]  
   |4v4 = [[4v4]] [[Category:4v4 Maps]]
+
   |4v4 = [[4v4]]  
   |6v6 = [[6v6]] [[Category:6v6 Maps]]
+
   |6v6 = [[6v6]]  
 
   |hl
 
   |hl
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
   |highlander = [[Highlander]]  
 
}}}}{{#if:{{{gamemode3|}}}|,&#32;{{#switch:{{lc:{{{gamemode3|}}}}}
 
}}}}{{#if:{{{gamemode3|}}}|,&#32;{{#switch:{{lc:{{{gamemode3|}}}}}
   |bball = [[BBall]] [[Category:BBall Maps]]
+
   |bball = [[BBall]]
   |ultiduo = [[Ultiduo]] [[Category:Ultiduo Maps]]
+
   |ultiduo = [[Ultiduo]]
   |4v4 = [[4v4]] [[Category:4v4 Maps]]
+
   |4v4 = [[4v4]]
   |6v6 = [[6v6]] [[Category:6v6 Maps]]
+
   |6v6 = [[6v6]]
 
   |hl
 
   |hl
   |highlander = [[Highlander]] [[Category:Highlander Maps]]
+
   |highlander = [[Highlander]]
 
}}}}</div>
 
}}}}</div>
 
</div>
 
</div>
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 130: Line 130:
 
<div class="infobox-center"><small>{{{footnotes}}}</small></div>
 
<div class="infobox-center"><small>{{{footnotes}}}</small></div>
 
</div>
 
</div>
}}
+
}} </div>
</div>
 
 
</div><!--
 
</div><!--
 +
 +
Category
 +
 +
-->{{#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 }}