Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:CityBob: Difference between revisions

Template page
No edit summary
add nation option to city breakoutbox
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="bob">
{{Bob|
<div class="bob-header">
{{Bob/Header}}
{{PAGENAME}}
{{#if: {{{flag|}}}|{{Bob/Image|image={{{flag}}}|caption={{PAGENAME}}'s Flag}}|}}
</div>
{{#if: {{{image|}}}|{{Bob/Image|image={{{image}}}|caption={{{caption}}}}}|}}
<div>
{{Bob/Subheader|Culture}}
{{ #if: {{{flag|}}} | [[{{{flag|}}}|290px|{{PAGENAME}}'s flag]] | }}
{{#if: {{{abbr|}}}|{{Bob/InfoTextWithTitle|{{{abbr}}}|Abbreviation}}|}}
</div>
{{#if: {{{demonym|}}}|{{Bob/InfoTextWithTitle|{{{demonym}}}|Demonym}}|}}
<div>
{{#if: {{{tier|}}}|{{Bob/InfoTextWithTitle|[[:Category:Cities in Tier {{{tier}}}|Tier {{{tier}}}]]<br>[[Category:Cities in Tier {{{tier}}}]]|Tier}}|}}
{{ #if: {{{image|}}} | [[{{{image|}}}|290px|{{{#if: {{{caption|}}} | {{{caption|}}}| }}}]] | }}
{{#if: {{{nation|}}}|{{Bob/InfoTextWithTitle|{{{nation}}}|Nation}}|}}
</div>
{{Bob/Subheader|Founding Info}}
{{ #if: {{{mapurl|}}} |
{{#if: {{{founded|}}}|{{Bob/InfoTextWithTitle|{{{founded}}}|Founded on}}|}}
<div class="bob-info">
{{#if: {{{founder|}}}|{{Bob/InfoTextWithTitle|{{{founder}}}|Founded by}}|}}
</div>
{{Bob/Subheader|City Staff}}
{{#if: {{{owner|}}}|{{Bob/InfoTextWithTitle|{{{owner}}}|Owned by}}|}}
{{#if: {{{mayor|}}}|{{Bob/InfoTextWithTitle|{{{mayor}}}|Managed by}}|}}
}}
}}
{{
</includeonly>
#if: {{{abbr|}}} |
<div class="bob-info">
<div class="bob-info-header">
Abbreviation
</div>
<div class="bob-info-footer">
{{{abbr}}}
</div>
</div>
}}{{
#if: {{{demonym|}}} |
<div class="bob-info">
<div class="bob-info-header">
Demonym
</div>
<div class="bob-info-footer">
{{{demonym}}}
</div>
</div>
}}
{{
#if: {{{founded|}}} |
<div class="bob-info">
<div class="bob-info-header">
Founded
</div>
<div class="bob-info-footer">
{{{founded}}}
</div>
</div>
}}{{
#if: {{{founder|}}} |
<div class="bob-info">
<div class="bob-info-header">
Founder(s)
</div>
<div class="bob-info-footer">
{{{founder}}}
</div>
</div>
}}{{
#if: {{{owner|}}} |
<div class="bob-info">
<div class="bob-info-header">
Owner(s)
</div>
<div class="bob-info-footer">
{{{owner}}}
</div>
</div>
}}{{
#if: {{{mayor|}}} |
<div class="bob-info">
<div class="bob-info-header">
Mayor(s)
</div>
<div class="bob-info-footer">
{{{mayor}}}
</div>
</div>
}}
{{
#if: {{{tier|}}} |
<div class="bob-info">
<div class="bob-info-header">
Tier
</div>
<div class="bob-info-footer">
[[:Category:Cities in Tier {{{tier}}}|{{{tier}}}]]<br>[[Category:Cities in Tier {{{tier}}}]]
</div>
</div>
}}
</div></includeonly>
 
<noinclude>
<noinclude>
{{CityBob
{{CityBob
Line 94: Line 22:
<templatedata>
<templatedata>
{
{
    "description": "Break out Box for City Pages",
"description": "Break out Box for City Pages",
    "params": {
"params": {
          "flag": {
"flag": {
              "label": "City Flag",
"label": "City Flag",
              "suggested": true
"suggested": true,
          }
"description": "The flag for the city",
    }
"type": "wiki-file-name",
"example": "File:Cardiff-flag.png"
},
"image": {
"label": "Screenshot of the City",
"suggested": true,
"description": "A screenshot of the city",
"type": "wiki-file-name",
"example": "File:Montego_Bay-capture.png"
},
"abbr": {
"label": "Abbreviation",
"suggested": true,
"description": "Abbreviation for the City",
"type": "line",
"example": "MB"
},
"demonym": {
"label": "Demonym",
"suggested": true,
"description": "What's the name for the inhabitants of the city?",
"type": "line",
"example": "Montegian"
},
"nation": {
"label": "Nation",
"suggested": true,
"description": "Nation that the city is a part of",
"type": "line",
"example": "Republic of Bayview"
},
"founded": {
"label": "Founding Date",
"suggested": true,
"description": "When was the City Founded?",
"type": "date",
"example": "21 March 2024"
},
"founder": {
"label": "Founder",
"suggested": true,
"description": "Who founded the city?",
"type": "line",
"example": "Felipe98_"
},
"owner": {
"label": "Owner",
"suggested": true,
"required": true,
"description": "Who owns the city?",
"type": "line",
"example": "Felipe98_"
},
"mayor": {
"label": "Mayor",
"suggested": true,
"description": "Who manages the city?",
"type": "line",
"example": "Felipe98_"
},
"tier": {
"label": "City Tier Number",
"suggested": true,
"required": true,
"description": "What tier is the city?",
"type": "number",
"suggestedvalues": [
"1",
"2",
"3",
"4",
"5",
"6",
"0"
]
},
"caption": {
"label": "Caption for Screenshot",
"description": "Describe the screenshot.",
"type": "line"
}
}
}
}
</templatedata>
</templatedata>


</noinclude>
</noinclude>
[[Category:Break out Boxes]]

Latest revision as of 18:06, 2 April 2026


CityBob


Culture



Founding Info


City Staff



Break out Box for City Pages

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
City Flagflag

The flag for the city

Example
File:Cardiff-flag.png
Filesuggested
Screenshot of the Cityimage

A screenshot of the city

Example
File:Montego_Bay-capture.png
Filesuggested
Abbreviationabbr

Abbreviation for the City

Example
MB
Linesuggested
Demonymdemonym

What's the name for the inhabitants of the city?

Example
Montegian
Linesuggested
Nationnation

Nation that the city is a part of

Example
Republic of Bayview
Linesuggested
Founding Datefounded

When was the City Founded?

Example
21 March 2024
Datesuggested
Founderfounder

Who founded the city?

Example
Felipe98_
Linesuggested
Ownerowner

Who owns the city?

Example
Felipe98_
Linerequired
Mayormayor

Who manages the city?

Example
Felipe98_
Linesuggested
City Tier Numbertier

What tier is the city?

Suggested values
1 2 3 4 5 6 0
Numberrequired
Caption for Screenshotcaption

Describe the screenshot.

Lineoptional