Wikia

GTA Wiki

Changes: Template:Infobox city

Edit

Back to page

m (removed bright colors)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Infobox
+
<infobox layout="tabular" theme="gta-with-subtitle">
|bodystyle = width:22em; font-size:90%; text-align:left;
+
<data><label>Type</label><default>CITY</default></data>
|title =
+
<title source="name"><default>{{PAGENAME}}</default></title>
|titlestyle =
+
<image source="image"><caption source="caption"/></image>
|above = <small>CITY</small><br /><span class="fn" style="font-size:18px;">{{{name|{{PAGENAME}}}}}</span>
+
<data source="game"><label>Appearance(s)</label></data>
|abovestyle = text-align: center;
+
<data source="mayor"><label>Mayor</label></data>
+
<data source="pop"><label>Population</label></data>
|imagestyle =
+
<data source="size"><label>Area</label></data>
|captionstyle =
+
<data source="established"><label>Established</label></data>
+
<data source="country"><label>Country</label></data>
|image = {{#if:{{{image|}}}|{{{image}}}{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}|}}
+
<data source="state"><label>State</label></data>
|caption =
+
<data source="motto"><label>Motto</label></data>
|image2 =
+
<data source="Unlocked after"><label>Unlocked After</label></data>
|caption2 =
+
</infobox>
 
|headerstyle =
 
|labelstyle = text-align:right;
 
|datastyle =
 
 
|header1 =
 
|label1 = Appearance(s):
 
|data1 = {{#if: {{{games|}}}|{{{games|}}}|}}
 
|header2 =
 
|label2 = Mayor:
 
|data2 = {{#if: {{{mayor|}}}|{{{mayor|}}}|}}
 
|header3 =
 
|label3 = Population:
 
|data3 = {{#if: {{{pop|}}}|{{{pop|}}}|}}
 
|header4 =
 
|label4 = Boroughs:
 
|data4 = {{#if: {{{size|}}}|{{{size|}}}|}}
 
|header5 =
 
|label5 = Established:
 
|data5 = {{#if: {{{established|}}}|{{{established|}}}|}}
 
|header6 =
 
|label6 = Country:
 
|data6 = {{#if: {{{country|}}}|{{{country|}}}|}}
 
|header7 =
 
|label7 = State:
 
|data7 = {{#if: {{{state|}}}|{{{state|}}}|}}
 
|header8 =
 
|label8 = Motto:
 
|data8 = {{#if: {{{motto|}}}|{{{motto|}}}|}}
 
}}
 
 
 
<noinclude>
 
<noinclude>
 
The following code produces the fake infobox shown on the right:
 
The following code produces the fake infobox shown on the right:
Line 18: Line 18:
 
{{infobox city|
 
{{infobox city|
 
|image =
 
|image =
  +
|imagesize =
 
|games =
 
|games =
 
|name =
 
|name =
 
|mayor =
 
|mayor =
 
|pop =
 
|pop =
|boroughs =
 
 
|established =
 
|established =
 
|country =
 
|country =
 
|state =
 
|state =
 
|motto =
 
|motto =
  +
|Unlocked after =
 
}}
 
}}
 
</pre>
 
</pre>

Latest revision as of 14:07, June 22, 2015

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

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

Around Wikia's network

Random Wiki