Difference between pages "Template:Infobox Map" and "Template:Infobox Map/sandbox"

From MINR.ORG WIKI
(Difference between pages)
Page 1
Page 2
(Adds the ability to have the difficulty display correctly despite not giving points.)
 
(Funny test case for auto-updating publication date)
 
Line 1: Line 1:
<includeonly>{{ infobox
+
{{Infobox_Map
| headerstyle = background:black;
+
| name = Shri Tra Savern
| above = {{{name|{{PAGENAME}}}}}
+
| image = Shri_Tra_Savern.png
| image = {{#if:{{{image|}}}
+
| caption = A view of the vegetation outside the exits of Shri.
                | [[File:{{{image}}}|200px]]}}
+
| points = 18
| caption = {{{caption|}}}
+
| location = FFA
| header1 = Map information
+
| mapcode = sts
| label2 = Reward
+
| creators = [[Creators#srentiln|srentiln]]
| data2= {{{points}}} FFA {{#ifeq:{{{points}}} | 1 | Point | Points}}
+
| foodtype = Cooked Salmon
| label3 = Difficulty
+
| foodamount = 64
| data3 = {{#if:{{{difficulty|}}} | {{#switch: {{{difficulty}}}
+
| publication = {{CURRENTMONTHNAME}} {{CURRENTDAY}} {{CURRENTYEAR}}
| Very Easy = <span style="color: white">Very Easy</span>
+
| description = Shri Tra Savern is a mixed maze map on zero.minr.org, worth 18 points. Use /join Shri Tra Savern to join the map.
| Easy = <span style="color: #0070FF">Easy</span>
+
| saver = Yes
| Novice = <span style="color: lime">Novice</span>
+
}}
| Moderate = <span style="color: yellow">Moderate</span>
 
| Hard = <span style="color: orange">Hard</span>
 
| Very Hard = <span style="color: red">Very Hard</span>
 
| Expert = <span style="color: #494949">Expert</span>
 
| Summit = <span style="color: #ff7d9c">Summit</span>
 
| <span style="color: gray">Unassessed</span>}}
 
| {{#switch: {{{points}}}
 
| 1 = <span style="color: white">Very Easy</span>
 
| 2 = <span style="color: #0070FF">Easy</span>
 
| 4 = <span style="color: lime">Novice</span>
 
| 7 = <span style="color: yellow">Moderate</span>
 
| 12 = <span style="color: orange">Hard</span>
 
| 18 = <span style="color: red">Very Hard</span>
 
| 25 = <span style="color: #494949">Expert</span>
 
| <span style="color: #B324FF">Varied</span>}}}}
 
| 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}}}|}}
 
| label8 = Publication
 
| data8 = {{#if:{{{publication|}}}
 
                  | {{{publication}}}
 
                  | Unknown}}
 
| label9 = Progress Saver
 
| data9 = {{{saver|}}}
 
}}</includeonly>
 
 
 
<noinclude>{{documentation}}</noinclude>