Wikia

GTA Wiki

Changes: Template:Infobox city

Edit

Back to page

m (removed bright colors)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
+
{|class="infobox bordered vcard" style="background: #555555; border: solid white 2px; width: 23em; text-align: left; font-size: 89%;"
|bodystyle = width:22em; font-size:90%; text-align:left;
+
|-
|title =
+
!colspan="2" style="background: #3c3c3c; color: white; text-align: center;"{{pipe}}<small>CITY</small><br /><span class="fn" style="font-size:18px;">{{{name}}}
|titlestyle =
+
|-
|above = <small>CITY</small><br /><span class="fn" style="font-size:18px;">{{{name|{{PAGENAME}}}}}</span>
+
{{#if:{{{image|<noinclude>-</noinclude>}}} |
|abovestyle = text-align: center;
+
! style="background: #000000; color:lightgray; font-size: 90%; text-align: center;" colspan="2" {{!}} [[file:{{{image}}}|{{{imagesize}}}]]
+
{{{caption|}}}
|imagestyle =
+
{{!}}- valign=top
|captionstyle =
+
}}
+
{{#if:{{{games|<noinclude>-</noinclude>}}} |
|image = {{#if:{{{image|}}}|{{{image}}}{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}|}}
+
!style="background: #000000; text-align:center; color:lightgray;"{{pipe}} Appearance(s):
|caption =
+
{{!}} style="background: #656565; text-align:left; color: white;"{{pipe}}{{{games}}}
|image2 =
+
{{!}}- valign=top
|caption2 =
+
}}
+
{{#if:{{{mayor|<noinclude>-</noinclude>}}} |
|headerstyle =
+
!style="background: #000000; text-align:center; color:lightgray;"{{pipe}} Mayor:
|labelstyle = text-align:right;
+
{{!}} style="background: #656565; text-align:left; color: white;"{{pipe}}{{{mayor}}}
|datastyle =
+
{{!}}- valign=top
+
}}
|header1 =
+
{{#if:{{{pop|<noinclude>-</noinclude>}}} |
|label1 = Appearance(s):
+
!style="background: #000000; text-align:center; color:lightgray;"{{pipe}} Population:
|data1 = {{#if: {{{games|}}}|{{{games|}}}|}}
+
{{!}} style="background: #656565; text-align:left; color: white;"{{pipe}}{{{pop}}}
|header2 =
+
{{!}}- valign=top
|label2 = Mayor:
+
}}
|data2 = {{#if: {{{mayor|}}}|{{{mayor|}}}|}}
+
{{#if:{{{size|<noinclude>-</noinclude>}}} |
|header3 =
+
!style="background: #000000; text-align:center; color:lightgray;"{{pipe}} Boroughs:
|label3 = Population:
+
{{!}} style="background: #656565; text-align:left; color: white;"{{pipe}}{{{size}}}
|data3 = {{#if: {{{pop|}}}|{{{pop|}}}|}}
+
{{!}}- valign=top
|header4 =
+
}}
|label4 = Boroughs:
+
{{#if:{{{established|<noinclude>-</noinclude>}}} |
|data4 = {{#if: {{{size|}}}|{{{size|}}}|}}
+
!style="background: #000000; text-align:center; color:lightgray;"{{pipe}} Established:
|header5 =
+
{{!}} style="background: #656565; text-align:left; color: white;"{{pipe}}{{{established}}}
|label5 = Established:
+
{{!}}- valign=top
|data5 = {{#if: {{{established|}}}|{{{established|}}}|}}
+
}}
|header6 =
+
{{#if:{{{country|<noinclude>-</noinclude>}}} |
|label6 = Country:
+
!style="background: #000000; text-align:center; color:lightgray;"{{pipe}} Country:
|data6 = {{#if: {{{country|}}}|{{{country|}}}|}}
+
{{!}} style="background: #656565; text-align:left; color: white;"{{pipe}}{{{country}}}
|header7 =
+
{{!}}- valign=top
|label7 = State:
+
}}
|data7 = {{#if: {{{state|}}}|{{{state|}}}|}}
+
{{#if:{{{state|<noinclude>-</noinclude>}}} |
|header8 =
+
!style="background: #000000; text-align:center; color:lightgray;"{{pipe}} State:
|label8 = Motto:
+
{{!}} style="background: #656565; text-align:left; color: white;"{{pipe}}{{{state}}}
|data8 = {{#if: {{{motto|}}}|{{{motto|}}}|}}
+
{{!}}- valign=top
  +
}}
  +
{{#if:{{{motto|<noinclude>-</noinclude>}}} |
  +
!style="background: #000000; text-align:center; color:lightgray;"{{pipe}} Motto:
  +
{{!}} style="background: #656565; text-align:left; color: white;"{{pipe}}{{{motto}}}
  +
{{!}}- valign=top
  +
}}
  +
{{#if:{{{Unlocked after|<noinclude>-</noinclude>}}} |
  +
!style="background: #000000; text-align:center; color:lightgray;"{{pipe}} Unlocked After:
  +
{{!}} style="background: #656565; text-align:left; color: white;"{{pipe}}{{{Unlocked after|}}}
  +
{{!}}- valign=top
 
}}
 
}}
  +
|}
   
 
<noinclude>
 
<noinclude>
Line 49: Line 50:
 
{{infobox city|
 
{{infobox city|
 
|image =
 
|image =
  +
|imagesize =
 
|games =
 
|games =
 
|name =
 
|name =
Line 58: Line 60:
 
|state =
 
|state =
 
|motto =
 
|motto =
  +
|Unlocked after =
 
}}
 
}}
 
</pre>
 
</pre>

Latest revision as of 10:45, December 7, 2014

CITY
{{{name}}}
[[file:{{{image}}}|{{{imagesize}}}]]
Appearance(s): {{{games}}}
Mayor: {{{mayor}}}
Population: {{{pop}}}
Boroughs: {{{size}}}
Established: {{{established}}}
Country: {{{country}}}
State: {{{state}}}
Motto: {{{motto}}}
Unlocked After:


The following code produces the fake infobox shown on the right:

{{infobox city|
|image =
|imagesize = 
|games = 
|name = 
|mayor =
|pop =
|boroughs =
|established =
|country =
|state =
|motto =
|Unlocked after =
}}

Around Wikia's network

Random Wiki