Difference between revisions of "Template:Map infobox"
(Added new info parameters. (Documentation goin' up!)) |
(Pickup infos moved in specific section, with images halloween/medieval compatible.) |
||
Line 89: | Line 89: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
+ | <!-- --> | ||
+ | <!-- MAP INFO SECTION BEGIN --> | ||
{{#if: {{{map-environment|}}} | | {{#if: {{{map-environment|}}} | | ||
! colspan="2" {{!}} {{lang | ! colspan="2" {{!}} {{lang | ||
Line 114: | Line 116: | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
+ | <!-- --> | ||
+ | <!-- DISABLED FOR NOW BEGIN --> | ||
+ | {{#if: {{{map-weather|}}} | | ||
+ | {{!}} '''{{lang | ||
+ | | en = Weather: | ||
+ | | it = Tempo: | ||
+ | }}''' {{!!}} {{{map-weather}}} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | <!-- DISABLED FOR NOW END --> | ||
+ | <!-- --> | ||
{{#if: {{{map-deep-water|}}} | | {{#if: {{{map-deep-water|}}} | | ||
{{!}} '''{{lang | {{!}} '''{{lang | ||
Line 129: | Line 142: | ||
}} | }} | ||
{{#if: {{{map-health-pickups|}}} | | {{#if: {{{map-health-pickups|}}} | | ||
− | {{!}} '''{{lang | + | {{!}} [[File:Healthico.png|link=Health{{if lang}}|20px]] '''{{lang |
| en = Health pickups: | | en = Health pickups: | ||
| it = Kit medici: | | it = Kit medici: | ||
Line 136: | Line 149: | ||
}} | }} | ||
{{#if: {{{map-ammo-pickups|}}} | | {{#if: {{{map-ammo-pickups|}}} | | ||
− | {{!}} '''{{lang | + | {{!}} [[File:Ammoico.png|link=Ammo{{if lang}}|20px]] '''{{lang |
| en = Ammo pickups: | | en = Ammo pickups: | ||
| it = Casse di munizioni: | | it = Casse di munizioni: | ||
Line 146: | Line 159: | ||
| en = Special pickups: | | en = Special pickups: | ||
| it = Oggetti speciali: | | it = Oggetti speciali: | ||
− | }}''' {{!!}} {{{map-special-pickups}}} | + | }}''' {{!!}} {{{map-special-pickups}}} |
{{!}}- | {{!}}- | ||
}} | }} | ||
+ | }} | ||
+ | <!-- MAP INFO SECTION END --> | ||
+ | <!-- --> | ||
+ | <!-- MAP ITEMS SECTION BEGIN --> | ||
+ | {{#ifeq: {{lc:{{{map-items|}}}}} | none | | ||
+ | ! colspan="2" {{!}} Map Items | ||
+ | {{!}}- | ||
+ | {{!}} colspan="2" style="text-align:center;" {{!}} ''None'' | ||
+ | {{!}}- | ||
+ | | {{#if: {{{map-health-pickups-small|}}} {{{map-health-pickups-medium|}}} {{{map-health-pickups-large|}}} {{{map-ammo-pickups-small|}}} {{{map-ammo-pickups-medium|}}} {{{map-ammo-pickups-large|}}} {{{map-special-pickups-hhgift|}}} {{{map-special-pickups-pumpkin|}}} | | ||
+ | ! colspan="2" {{!}} Map Items | ||
+ | {{!}}- | ||
+ | | }} | ||
+ | {{#if: {{{map-health-pickups-small|}}} {{{map-health-pickups-medium|}}} {{{map-health-pickups-large|}}} | | ||
+ | {{!}} [[File:Healthico.png|link=Health{{if lang}}|20px]] '''{{lang | ||
+ | | en = Health kits: | ||
+ | | it = Kit medici: | ||
+ | }}''' | ||
+ | {{!}} style="text-align:center;" {{!}} {{#if: {{{map-health-pickups-small|}}} | [[File:{{#switch: {{BASEPAGENAME}} | Mann's Manor = Healthbar | Harvest Event = Healthbar | #default = Smallhealth}}.png|link=Health{{if lang}}|20px]] ×{{{map-health-pickups-small}}} | }} {{#if: {{{map-health-pickups-medium|}}} | {{#if: {{{map-health-pickups-small|}}} | {{b}} | }} | }} {{#if: {{{map-health-pickups-medium|}}} | [[File:{{#switch: {{BASEPAGENAME}} | Mann's Manor = Healthpie | Harvest Event = Healthpie | DeGroot Keep = Medieval_Meat | #default = Mediumhealth}}.png|link=Health{{if lang}}|20px]] ×{{{map-health-pickups-medium|}}} | }} {{#if: {{{map-health-pickups-large|}}} | {{#if: {{{map-health-pickups-medium|}}} | {{b}} | {{#if: {{{map-health-pickups-small|}}} | {{b}} | }} }} | }} {{#if: {{{map-health-pickups-large|}}} | [[File:{{#switch: {{BASEPAGENAME}} | Mann's Manor = Health_Cauldron | Harvest Event = Health_Cauldron | #default = Largehealth}}.png|link=Health{{if lang}}|20px]] ×{{{map-health-pickups-large}}} | }} | ||
+ | {{!}}- | ||
+ | | }} | ||
+ | {{#if: {{{map-ammo-pickups-small|}}} {{{map-ammo-pickups-medium|}}} {{{map-ammo-pickups-large|}}} | | ||
+ | {{!}} [[File:Ammoico.png|link=Ammo{{if lang}}|20px]] '''{{lang | ||
+ | | en = Ammo boxes: | ||
+ | | it = Munizioni: | ||
+ | }}''' | ||
+ | {{!}} style="text-align:center;" {{!}} {{#if: {{{map-ammo-pickups-small|}}} | [[File:Smallammo.png|link=Ammo{{if lang}}|20px]] ×{{{map-ammo-pickups-small}}} | }} {{#if: {{{map-ammo-pickups-medium|}}} | {{#if: {{{map-ammo-pickups-small|}}} | {{b}} | }} | }} {{#if: {{{map-ammo-pickups-medium|}}} | [[File:Mediumammo.png|link=Ammo{{if lang}}|20px]] ×{{{map-ammo-pickups-medium}}} | }} {{#if: {{{map-ammo-pickups-large|}}} | {{#if: {{{map-ammo-pickups-medium|}}} | {{b}} | {{#if: {{{map-ammo-pickups-small|}}} | {{b}} | }} }} | }} {{#if: {{{map-ammo-pickups-large|}}} | [[File:Largeammo.png|link=Ammo{{if lang}}|20px]] ×{{{map-ammo-pickups-large}}} | }} | ||
+ | {{!}}- | ||
+ | | }} | ||
+ | {{#if: {{{map-special-pickups-hhgift|}}} {{{map-special-pickups-pumpkin|}}} | | ||
+ | {{!}} [[File:TF2 crosshair.png|20px]] '''{{lang | ||
+ | | en = Special: | ||
+ | | it = Speciali: | ||
+ | }}''' | ||
+ | {{!}} style="text-align:center;" {{!}} {{#if: {{{map-special-pickups-hhgift|}}} | [[File:HauntedHalloweenGift.png|link=Haunted Halloween Gift{{if lang}}|20px]]| }} {{#if: {{{map-special-pickups-pumpkin|}}} | {{#if: {{{map-special-pickups-hhgift|}}} | {{b}} | }} | }} {{#if: {{{map-special-pickups-pumpkin|}}} | [[File:Pumpkin.png|link=Pumpkin{{if lang}}|20px]] | }} | ||
+ | {{!}}- | ||
+ | | }} | ||
}} | }} | ||
+ | <!-- MAP ITEMS SECTION END --> | ||
+ | <!-- --> | ||
{{#if: {{{map-stamp-link|}}} | | {{#if: {{{map-stamp-link|}}} | | ||
! colspan="2" {{!}} {{Item name|map stamp}} | ! colspan="2" {{!}} {{Item name|map stamp}} |
Revision as of 14:57, 20 February 2011
Map infobox | |
---|---|
Basic Information | |
Developer(s): | Valve |
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Map infobox/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: de, fr, fi, es, it, pl, pt-br, ru, sv (add) |
This template adds in information box to articles on maps. It adds pages to Category:Maps.
Usage
The map stamp image, map overview image, and map loading screen image are all automatically added based on their filename. These files should always be .png files!
For the thumbnail image, the file name should be the map-file-name
parameter input (e.g. "arena_byre") (see File:Arena byre.png). If a filename that matches this format exists, it will ignore the map-image
parameter.
For the overview image, the file name should be the map-name
parameter input (e.g. "Upward", "Orange_X") followed by "overview" (see File:Upward overview.png).
For the map stamp image, the file name should be "Item icon Map Stamp - " followed by the map-name
parameter input (see File:Item icon Map Stamp - Cascade.png).
For the map loading screen images, the file name should be "Menu photos" followed by the map-file-name
parameter input (e.g. "koth_viaduct") (see File:Menu photos koth viaduct.png).
{{Map infobox | map-status = | map-stamp-link = | map-workshopid = | map-image = | map-game-type = | map-file-name = | map-version = | map-released = | map-released-major = | map-updated = | map-developer = | map-links = | map-environment = | map-setting = | map-has-n-stages = | map-has-deep-water = | map-has-bots = | map-has-vscript = | map-hazards = | map-hazards-underworld = | map-has-pyrovision = | map-has-magic-spells = | map-items = | map-pickups-health-small = | map-pickups-health-medium = | map-pickups-health-large = | map-pickups-ammo-small = | map-pickups-ammo-medium = | map-pickups-ammo-large = | map-pickups-special-sgg = | map-pickups-special-pumpkin = }}
Parameters
Parameter | Values | Required? | Function |
---|---|---|---|
game
|
tfc tf |
TFC, TF maps | Specifies the game the map is designed for. Accepts values such as tfc (Team Fortress Classic), tf (Quake Team Fortress) and [none/empty] (Team Fortress 2).
|
map-status
|
official community custom etc. |
Always | Indicates the current status of the map. Accepts values such as valve , official (Category:Valve maps), community (Category:Community maps), custom (Category:Custom maps), beta , cut , unused (Category:Beta, cut or unused maps), test , dev (Category:Dev and test maps).
|
map-stamp-link
|
https://steamcommunity.com/stats/TF2/leaderboards/{id_here}
|
Community maps | If a map stamp is available in the Mann Co. Store, provide a link to the supporters leaderboard. Set to unavailable to display the map stamp and a "Supporters leaderboard not yet available" line.
|
map-workshopid
|
number | Custom maps | Specifies the ID of the map in the Steam Workshop. |
map-name
|
text | Custom maps | Specifies the name of the map if it differs from the page name. |
map-image
|
file name | No | Specifies the file name of the map image, automatically resized to 300px wide.
Note: if an image that matches the "default" format is uploaded, this parameter will have no effect. |
map-game-type
|
Arena Capture the Flag etc. |
No | Specifies the game type or mode, such as Arena .
|
map-file-name
|
text | No | Specifies the file name of the map. |
map-version
|
text | Custom maps | Specifies the latest version of the map, such as A2, B5 or RC5. |
map-released
|
{{patch name}}
|
No | Specifies the date/patch the map was released. Please use {{Patch name}} instead of plain text.
|
map-released-major
|
major_update_title | No | Specifies the named patch the map was released in. Check Template:Dictionary/common_strings#major_update_titles for a list of parameters. |
map-updated
|
{{patch name}}
|
Custom maps | Specifies the last time the map was updated. |
map-developer
|
text | Custom maps | Specifies the name and optional Steam ID profile link for the developer/author and contributors of the map in the same order their names appear in the map's start screen. Do not name individual Valve employees. See Policy. For official maps (Valve-made, Steam Workshop), names are stored in the {{Map credits}} template.
|
map-links
|
text | Custom maps | Specifies link(s) to development threads, websites, etc. |
map-environment
|
text | No | Specifies the map environment (Alpine, Desert, etc.). Also enables the Map Info section header. |
map-setting
|
text | No | Specifies the map setting, such as daytime and weather. |
map-has-n-stages
|
number | No | Specifies the number of stages the map is composed of. |
map-has-deep-water
|
yes no custom text |
No | Indicates whether there is deep water present in the map. |
map-has-pyrovision
|
yes no |
No | Indicates whether the map is Pyrovision compatible. |
map-has-magic-spells
|
yes no |
No | Indicates whether the map contains magic spells. |
map-has-bots
|
yes no |
No | Indicates whether the map Bots. The robot horde in Mann vs. Machine does not count. |
map-has-vscript
|
yes no |
No | Indicates whether the map uses VScript, in any form. |
map-hazards
|
text | No | Specifies various environmental hazards present in the map. |
map-hazards-underworld
|
text | No | Specifies various environmental hazards present in the map's underworld. |
map-items
|
text | No | Set to none to show the Map Items section header and a single entry saying None. (Useful for item_test-like maps.) |
map-pickups-health-small
|
number | No | Specifies the number of small health pickups present in the map. |
map-pickups-health-medium
|
number | No | Specifies the number of medium health pickups present in the map. |
map-pickups-health-large
|
number | No | Specifies the number of large health pickups present in the map. |
map-pickups-ammo-small
|
number | No | Specifies the number of small ammo pickups present in the map. |
map-pickups-ammo-medium
|
number | No | Specifies the number of medium ammo pickups present in the map. |
map-pickups-ammo-large
|
number | No | Specifies the number of large ammo pickups present in the map. |
map-pickups-special-sgg
|
yes no |
No | Indicates whether the map can spawn Soul Gargoyles. |
map-pickups-special-pumpkin
|
yes no |
No | Indicates whether the map can spawn Halloween pumpkins. |