Toggle 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
No edit summary
Tag: Manual revert
 
(24 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|}}}| }}}]] | }}
{{Bob/Subheader|Founding Info}}
</div>
{{#if: {{{founded|}}}|{{Bob/InfoTextWithTitle|{{{founded}}}|Founded on}}|}}
{{ #if: {{{mapurl|}}} |
{{#if: {{{founder|}}}|{{Bob/InfoTextWithTitle|{{{founder}}}|Founded by}}|}}
<div class="bob-info">
{{Bob/Subheader|City Staff}}
</div>
{{#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
}}
}}
<templatedata>
{
"description": "Break out Box for City Pages",
"params": {
"flag": {
"label": "City Flag",
"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"
},
"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>
</noinclude>
</noinclude>
[[Category:Break out Boxes]]

Latest revision as of 14:25, 15 April 2025


CityBob


Culture


Founding Info


City Staff



Break out Box for City Pages

[Edit template data]

Template parameters

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
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