Difference between revisions of "Template:Infobox Map"

From MINR.ORG WIKI
(Creators when multiple, Creator when one.)
(Added difficulty as optional field.)
Line 20: Line 20:
 
| label2 = Points
 
| label2 = Points
 
| data2= {{{points}}}
 
| data2= {{{points}}}
| label3 = Location
+
| label3 = Difficulty
| data3 = {{{location}}}
+
| data3 = {{#if:{{{difficulty|}}} | {{{difficulty}}} |
| label4 = Mapcode
+
{{#switch: {{{points}}}
| data4 = {{{mapcode}}}
+
| 1 = Very Easy
| label5 = {{#ifeq: {{#invoke:String|find|{{{creators}}}|,|0}} | 0 | Creator | Creators}}
+
| 2 = Easy
| data5 = {{{creators}}}
+
| 3 = Normal
| label6 = Food
+
| 4 = Hard
| data6 = {{#if:{{{foodtype|}}}
+
| 5 = Very Hard
 +
| 0 = Undefined
 +
| Varied}}}}
 +
| label4 = Location
 +
| data4 = {{{location}}}
 +
| label5 = Mapcode
 +
| data5 = {{{mapcode}}}
 +
| label6 = {{#ifeq: {{#invoke:String|find|{{{creators}}}|,|0}} | 0 | Creator | Creators}}
 +
| data6 = {{{creators}}}
 +
| label7 = Food
 +
| data7 = {{#if:{{{foodtype|}}}
 
                   | {{{foodtype}}} x{{{foodamount|64}}}
 
                   | {{{foodtype}}} x{{{foodamount|64}}}
 
                   | None}}
 
                   | None}}

Revision as of 12:17, 14 August 2017

Example
Map information
Points 1
Difficulty Hard
Location FFA
Mapcode xxx
Creator One
Food None


See also