Template:CityInfo/doc: Difference between revisions

From For Glory or Gold
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} ==Usage== * <big><code><nowiki>{{CityInfo|CityName|CityPop|CityGov|CityRace|CityClass|CityLang|CityAlign}}</nowiki></code></big> ==Template Data==...")
 
No edit summary
 
Line 3: Line 3:
==Usage==
==Usage==


* <big><code><nowiki>{{CityInfo|CityName|CityPop|CityGov|CityRace|CityClass|CityLang|CityAlign}}</nowiki></code></big>
* <big><code><nowiki>{{CityInfo|CityMap|CityName|CityPop|CityGov|CityRace|CityClass|CityLang|CityAlign}}</nowiki></code></big>


==Template Data==
==Template Data==
Line 18: Line 18:
     },
     },
     "2": {
     "2": {
      "label": "CityMap",
      "description": "A map of the city",
      "type": "string",
      "required": false
    },
    "3": {
       "label": "CityPop",
       "label": "CityPop",
       "description": "The city's population",
       "description": "The city's population",
Line 23: Line 29:
       "required": false
       "required": false
     },
     },
     "3": {
     "4": {
       "label": "CityGov",
       "label": "CityGov",
       "description": "The city's governing body",
       "description": "The city's governing body",
Line 29: Line 35:
       "required": false
       "required": false
     },
     },
     "4": {
     "5": {
       "label": "CityRace",
       "label": "CityRace",
       "description": "The primary ruling race of the city",
       "description": "The primary ruling race of the city",
Line 35: Line 41:
       "required": false
       "required": false
     },
     },
     "5": {
     "6": {
       "label": "CityClass",
       "label": "CityClass",
       "description": "Common classes found within the city",
       "description": "Common classes found within the city",
Line 41: Line 47:
       "required": false
       "required": false
     },
     },
     "6": {
     "7": {
       "label": "CityLang",
       "label": "CityLang",
       "description": "The primary language used within the city",
       "description": "The primary language used within the city",
Line 47: Line 53:
       "required": false
       "required": false
     },
     },
     "7": {
     "8": {
       "label": "CityAlign",
       "label": "CityAlign",
       "description": "The majority alignment within the city",
       "description": "The majority alignment within the city",

Latest revision as of 23:07, 23 November 2019

Template:Mbox

Usage

  • {{CityInfo|CityMap|CityName|CityPop|CityGov|CityRace|CityClass|CityLang|CityAlign}}

Template Data

A template for the floating city info box.

Template parameters

ParameterDescriptionTypeStatus
CityName1

The city's name

Stringrequired
CityMap2

A map of the city

Stringoptional
CityPop3

The city's population

Stringoptional
CityGov4

The city's governing body

Stringoptional
CityRace5

The primary ruling race of the city

Stringoptional
CityClass6

Common classes found within the city

Stringoptional
CityLang7

The primary language used within the city

Stringoptional
CityAlign8

The majority alignment within the city

Stringoptional