Difference between revisions of "Template:Infobox Map/doc"
From MINR.ORG WIKI
Rickyboy320 (talk | contribs) (Added example.) |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
| caption = <!-- Information about the image. --> | | caption = <!-- Information about the image. --> | ||
| points = <!-- Amount of points this map is worth. --> | | points = <!-- Amount of points this map is worth. --> | ||
+ | | difficulty = <!-- Difficulty of the map. --> | ||
| location = <!-- FFA / FFA+ / Valley / Board --> | | location = <!-- FFA / FFA+ / Valley / Board --> | ||
| mapcode = <!-- Tag of this map as used on the checkpoint signs. --> | | mapcode = <!-- Tag of this map as used on the checkpoint signs. --> | ||
Line 14: | Line 15: | ||
| foodtype = <!-- Type of food the first checkpoint gives. --> | | foodtype = <!-- Type of food the first checkpoint gives. --> | ||
| foodamount = <!-- Amount of food given. --> | | foodamount = <!-- Amount of food given. --> | ||
+ | | publication = <!-- Date or time period when the map was published --> | ||
| description = <!-- Description social sharing should output. --> | | description = <!-- Description social sharing should output. --> | ||
}}</pre> | }}</pre> | ||
Line 22: | Line 24: | ||
*''caption'' – information about the image. Not required. | *''caption'' – information about the image. Not required. | ||
*''points'' – amount of points this map rewards. Required. | *''points'' – amount of points this map rewards. Required. | ||
+ | *''difficulty'' – difficulty of the map. Not required, automatically inferred from ''points'' if not specified. | ||
*''location'' – location of the map. Required. | *''location'' – location of the map. Required. | ||
*''mapcode'' – tag of the map. Required. | *''mapcode'' – tag of the map. Required. | ||
Line 27: | Line 30: | ||
*''foodtype'' – type of food the map gives. Not required. Default is '''None'''. | *''foodtype'' – type of food the map gives. Not required. Default is '''None'''. | ||
*''foodamount'' – amount of food the map gives. Not required. Default is '''64'''. | *''foodamount'' – amount of food the map gives. Not required. Default is '''64'''. | ||
+ | *''puclication'' – either a date (in [Month] [Day], [Year] form) or a time period ([Early/Mid/Late]-[Year]) is given. Not required. Default is '''Unknown'''. | ||
*''description'' – description of the map. Used in SEO and social media cards. | *''description'' – description of the map. Used in SEO and social media cards. | ||
==Examples== | ==Examples== | ||
− | *{{tlx|Infobox_Map |name{{=}}Example |points{{=}}1|location {{=}} FFA |mapcode {{=}} | + | An infobox with all arguments present. |
+ | *{{tlx|Infobox_Map |name{{=}}Example | ||
+ | |points{{=}}1 | ||
+ | |location {{=}} FFA | ||
+ | |mapcode {{=}} xxx | ||
+ | |creators {{=}} One, Two | ||
+ | |foodtype {{=}} Cooked Salmon |foodamount {{=}} 64 | ||
+ | |publication {{=}} Unknown |description {{=}} This is a description. }} | ||
{{Infobox_Map | {{Infobox_Map | ||
|name = Example | |name = Example | ||
| points = 1 | | points = 1 | ||
| location = FFA | | location = FFA | ||
− | | mapcode = | + | | mapcode = xxx |
| creators = One, Two | | creators = One, Two | ||
| foodtype = Cooked Salmon | | foodtype = Cooked Salmon | ||
| foodamount = 64 | | foodamount = 64 | ||
+ | | publication = October 22, 2010 | ||
| description = This is a description. | | description = This is a description. | ||
}} | }} | ||
− | *{{tlx|Infobox_Map |name{{=}}Example |points{{=}}1|location {{=}} FFA |mapcode {{=}} | + | An infobox without the food parameters. |
+ | *{{tlx|Infobox_Map |name{{=}}Example | ||
+ | |points{{=}}1 | ||
+ | |location {{=}} FFA | ||
+ | |mapcode {{=}} xxx | ||
+ | |creators {{=}} One, Two |publication {{=}} October 22, 2010 | ||
+ | |description {{=}} This is a description. }} | ||
{{Infobox_Map | {{Infobox_Map | ||
| name = Example | | name = Example | ||
| points = 1 | | points = 1 | ||
| location = FFA | | location = FFA | ||
− | | mapcode = | + | | mapcode = xxx |
| creators = One, Two | | creators = One, Two | ||
+ | | publication = October 22, 2010 | ||
+ | | description = This is a description. | ||
+ | }} | ||
+ | |||
+ | An infobox with one creator. | ||
+ | *{{tlx|Infobox_Map |name{{=}}Example | ||
+ | |points{{=}}1 | ||
+ | |location {{=}} FFA | ||
+ | |mapcode {{=}} xxx | ||
+ | |creators {{=}} One | ||
+ | |publication {{=}} October 22, 2010 |description {{=}} This is a description. }} | ||
+ | {{Infobox_Map | ||
+ | | name = Example | ||
+ | | points = 1 | ||
+ | | location = FFA | ||
+ | | mapcode = xxx | ||
+ | | creators = One | ||
+ | | publication = October 22, 2010 | ||
+ | | description = This is a description. | ||
+ | }} | ||
+ | |||
+ | An infobox with a specified difficulty field. | ||
+ | *{{tlx|Infobox_Map |name{{=}}Example |points{{=}}1|location {{=}} FFA |mapcode {{=}} xxx |difficulty {{=}} Hard|creators {{=}} One |publication {{=}} October 22, 2010 |description {{=}} This is a description. }} | ||
+ | {{Infobox_Map | ||
+ | | name = Example | ||
+ | | points = 1 | ||
+ | | difficulty = Hard | ||
+ | | location = FFA | ||
+ | | mapcode = xxx | ||
+ | | creators = One | ||
+ | | publication = October 22, 2010 | ||
| description = This is a description. | | description = This is a description. | ||
}} | }} |
Latest revision as of 18:52, 14 May 2019
Contents
Usage[edit]
This template adds an infobox to a map page. It should only be added to map pages and should contain the core information of the map.
{{Infobox_Map | image = <!-- Full name of image file. --> | caption = <!-- Information about the image. --> | points = <!-- Amount of points this map is worth. --> | difficulty = <!-- Difficulty of the map. --> | location = <!-- FFA / FFA+ / Valley / Board --> | mapcode = <!-- Tag of this map as used on the checkpoint signs. --> | creators = <!-- In game names of the creators of this map. --> | foodtype = <!-- Type of food the first checkpoint gives. --> | foodamount = <!-- Amount of food given. --> | publication = <!-- Date or time period when the map was published --> | description = <!-- Description social sharing should output. --> }}
Parameters[edit]
- name – specifies the title. Not required. Default is the pagename.
- image – link to the image. Not required. Default is none.
- caption – information about the image. Not required.
- points – amount of points this map rewards. Required.
- difficulty – difficulty of the map. Not required, automatically inferred from points if not specified.
- location – location of the map. Required.
- mapcode – tag of the map. Required.
- creators – names of the players who made the map. Required. Seperated by a comma.
- foodtype – type of food the map gives. Not required. Default is None.
- foodamount – amount of food the map gives. Not required. Default is 64.
- puclication – either a date (in [Month] [Day], [Year] form) or a time period ([Early/Mid/Late]-[Year]) is given. Not required. Default is Unknown.
- description – description of the map. Used in SEO and social media cards.
Examples[edit]
An infobox with all arguments present.
{{Infobox_Map |nameTemplate:=Example|pointsTemplate:=1|location Template:= FFA|mapcode Template:= xxx|creators Template:= One, Two|foodtype Template:= Cooked Salmon|foodamount Template:= 64|publication Template:= Unknown|description Template:= This is a description.}}
Example | |
---|---|
Map information | |
Reward | 1 FFA Point |
Difficulty | Hard |
Location | FFA |
Mapcode | xxx |
Creator | One |
Food | None |
Publication | October 22, 2010 |