Difference between revisions of "Template:MobileMapRow"

From MINR.ORG WIKI
m
m (Test)
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
|-
+
<includeonly>|-
! scope="row" data-th="Map"| {{#if: {{{1|}}} | [[{{{1|}}}]] |}}
+
! scope="row" data-th="Map"| {{{name}}}
| data-th="Creator(s)"| {{#if: {{{2|}}} | [[Creators#{{{2|}}}|{{#ifeq: {{{2|}}} | Community Projects |Minr|{{{2}}}}}]] |}}{{#if: {{{3|}}} |, [[Creators#{{{3|}}}|{{#ifeq: {{{3|}}} | Community Projects |Minr|{{{3}}}}}]] |}}{{#if: {{{4|}}} |, [[Creators#{{{4|}}}|{{#ifeq: {{{4|}}} | Community Projects |Minr|{{{4}}}}}]] |}} {{#ifeq: {{{2|}}} | Minr | <span style="color: violet">''&Dagger;''</span> | }}
+
| data-th="Creator(s)"| {{{creators}}}
| data-th="Map Types"| {{{5|}}}
+
| data-th="Primary Type"| {{{primary}}}
| data-th="Difficulty"| {{#ifeq: {{{6|}}} | 1 Point | <span style="color: white">{{{6|}}}</span> | {{#ifeq: {{{6|}}} | 2 Points | <span style="color: #0070FF">{{{6|}}}</span> | {{#ifeq: {{{6|}}} | 4 Points | <span style="color: lime">{{{6|}}}</span> | {{#ifeq: {{{6|}}} | 7 Points | <span style="color: yellow">{{{6|}}}</span> | {{#ifeq: {{{6|}}} | 12 Points | <span style="color: orange">{{{6|}}}</span> | {{#ifeq: {{{6|}}} | 18 Points | <span style="color: red">{{{6|}}}</span> | {{#ifeq: {{{6|}}} | 25 Points | <span style="color: #262626">{{{6|}}}</span> | {{#ifeq: {{{6|}}} | 4(+4) Points | <span style="color: lime">{{{6|}}}</span> | {{#ifeq: {{{6|}}} | 12(+4) Points | <span style="color: orange">{{{6|}}}</span> | {{#ifeq: {{{6|}}} | 4(+12) Points | <span style="color: lime">{{{6|}}}</span> | <span style="color: #B324FF">{{{6|}}}</span> }} }} }} }} }} }} }} }} }} }}
+
| data-th="Secondary Type(s)"| {{{secondary|None}}}
| data-th="Location"| {{#if: {{{7|}}} | [[{{{7|}}}]] |}}
+
| data-th="Location"| {{{location}}}
| data-th="Map Code"| {{{8|}}}
+
| data-th="Difficulty"| {{{difficulty}}}
| data-th="Publication"| {{{9|}}}
+
| data-th="Map Code"| {{{mapcode}}}
<noinclude>
+
| data-th="Publication"| {{{date}}}</includeonly>
1 refers to the map name (e.g. 'Napped).
+
<noinclude>{{documentation}}</noinclude>
 
 
2 refers to the first creator (e.g. rickyboy320). If this equals Minr, it will give a dagger symbol for it as well.
 
 
 
3 and 4 refer to the 2nd and 3rd creators of a map, if they exist (e.g. skyerzz).
 
 
 
5 refers to the Map Types (e.g. Parkour) [You'll have to do these yourself as I'm not double-bracket checking for 4 types].
 
 
 
6 refers to the Difficulty, possibly will be colored, too? (E.g. 12 Points).
 
 
 
7 refers to the Location (e.g. FFA).
 
 
 
8 refers to the Map Code (e.g. npd).
 
 
 
9 refers to the Publication (e.g. January 14, 2014).
 
 
 
10 refers to maps with multiple point values. It just leaves an indicator for the specifications at the bottom of the list.
 
</noinclude>
 

Latest revision as of 05:41, 14 December 2025

Template documentation[view] [edit] [history] [purge]

Usage[edit]

This template is used for the Minr Maps page to generate rows. The individual rows come from the Minr Maps sheet.

|-
! scope="row" data-th="Map"| {{{name}}}
| data-th="Creator(s)"| {{{creators}}}
| data-th="Primary Type"| {{{primary}}}
| data-th="Secondary Type(s)"| {{{secondary|None}}}
| data-th="Location"| {{{location}}}
| data-th="Difficulty"| {{{difficulty}}}
| data-th="Map Code"| {{{mapcode}}}
| data-th="Publication"| {{{date}}}

Variables usually come with double bracket page links now.

name refers to the map name (e.g. [['Napped]]).

creators refers to all creators (e.g. [[Rickyboy320]] and [[skyerzz]]).

primary refers to the primary map type (e.g. [[Parkour]]).

secondary refers to the secondary map type(s) (e.g. [[Search]])

location refers to map location (e.g. [[FFA]])

difficulty refers to map difficulty (e.g. [[:Category:Moderate|Moderate]])

mapcode refers to the map code (e.g. npd).

date refers to the publication date (e.g. January 14, 2014).