Difference between revisions of "Template:Infobox map"

From comp.tf
Jump to navigation Jump to search
m (Default not default)
(updated map template to include download icon)
Line 18: Line 18:
 
{{!}} '''Developer'''
 
{{!}} '''Developer'''
 
{{!}} {{{developer}}} | }}
 
{{!}} {{{developer}}} | }}
 +
|-
 +
{{#if:{{{default|}}} |
 +
{{!}} '''Default map'''
 +
{{!}} {{{default}}} | }}
 
|-
 
|-
 
{{#if:{{{download|}}} |
 
{{#if:{{{download|}}} |
 
{{!}} '''Download Link'''
 
{{!}} '''Download Link'''
{{!}} {{{download}}} | }}
+
{{!}} [[Image:Downloadicon.png|link={{{download}}}]] | }}
 
|-
 
|-
{{#if:{{{links|}}} |
+
{{#if:{{{extrainfo|}}} |
! colspan=2 {{!}} Links
+
! colspan=2 {{!}} Extra Info
 
{{!}}-
 
{{!}}-
{{!}} colspan=2 {{!}} {{{links}}} |}}
+
{{!}} colspan=2 {{!}} {{{extrainfo}}} |}}
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 39: Line 43:
 
{{Map infobox
 
{{Map infobox
 
| mapname = Badlands
 
| mapname = Badlands
| image = badlands.jpg
+
| image = cp_badlands.png
 
| maptype = Control Point
 
| maptype = Control Point
 
| currentversion = cp_badlands
 
| currentversion = cp_badlands
 
| developer = Valve
 
| developer = Valve
| download = Default map
+
| default = Yes
| links =
+
| download = http://comp.tf/
 +
| extrainfo = test
 
}}
 
}}
 
</pre>
 
</pre>
Line 54: Line 59:
 
| currentversion = cp_badlands
 
| currentversion = cp_badlands
 
| developer = Valve
 
| developer = Valve
| download = Default map
+
| default = Yes
| playstyle = Fast
+
| download = http://comp.tf/
| links =
+
| extrainfo = test
 
}}
 
}}
  
 
[[Category:Infoboxes]][[Category:Template]]
 
[[Category:Infoboxes]][[Category:Template]]

Revision as of 10:20, 19 September 2013

{{{mapname}}}
Basic Information

Usage

  • Just copy this code below to the page and edit the values after the "="
    • Important: If you don't know a value just let it be with a null value (blank) or delete the line.
    • Please input current version in full and type everything carefully as it will be linked automatically.
  • After the code you can write and format text as you normally would to expand the rest of the content.

Example

{{Map infobox
| mapname = Badlands
| image = cp_badlands.png
| maptype = Control Point
| currentversion = cp_badlands
| developer = Valve
| default = Yes
| download = http://comp.tf/
| extrainfo = test
}}

Will Yeld

Template:Map infobox