Template:Infobox city: Difference between revisions

(infobox template)
No edit summary
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Infobox
{{Infobox
|bodystyle    = width:22em; font-size:90%; text-align:left; border-color:#000000; background-color: #FFFFFF;
|bodystyle    =  
|title        =  
|title        =
|titlestyle  =  
|titlestyle  =  
|above        = <small>CITY</small><br /><span class="fn" style="font-size:18px;">{{{name|{{PAGENAME}}}}}</span>
|above        = <small>CITY</small><br /> <span class="fn" style="font-size:18px;">{{#if:{{{name|}}}|{{{name}}}|<includeonly>{{PAGENAME}}</includeonly>}}</span>  
|abovestyle  = text-align: center;
|abovestyle  = text-align:center;  
 
|imagestyle  =  
|imagestyle  =  
|captionstyle =  
|captionstyle =  
 
|motto        =
|image        = {{#if:{{{image|}}}|{{{image}}}}}
|image        = {{#if:{{{image|}}}|{{{image}}}{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}|}}
|caption      = {{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}
|caption      =
|image2      =  
|image2      =  
|caption2    =  
|caption2    =  
|headerstyle  =  
|headerstyle  =  
|labelstyle  = text-align:right;
|labelstyle  = text-align:right;
|datastyle    =  
|datastyle    =  
 
|header1   =  
|header1 =  
|label1   = Official name:
|label1   = Appearance(s):
|data1     = {{#if: {{{official name|}}}|{{{official name|}}}|}}
|data1   = {{#if: {{{games|}}}|{{{games|}}}|}}
|header2   =  
|header2 =  
|label2   = Appearance(s):
|label2   = Mayor:
|data2     = {{#if: {{{games|}}}|{{{games|}}}|}}
|data2   = {{#if: {{{mayor|}}}|{{{mayor|}}}|}}
|header3   =  
|header3 =  
|label3   = Country:
|label3   = Population:
|data3     = {{#if: {{{country|}}}|{{{country|}}}|}}
|data3   = {{#if: {{{pop|}}}|{{{pop|}}}|}}
|header4   =  
|header4 =  
|label4   = State:
|label4   = Size:
|data4     = {{#if: {{{state|}}}|{{{state|}}}|}}
|data4   = {{#if: {{{size|}}}|{{{size|}}}|}}
|header5   =  
|header5 =  
|label5   = Established:
|label5   = Established:
|data5     = {{#if: {{{established|}}}|{{{established|}}}|}}
|data5   = {{#if: {{{established|}}}|{{{established|}}}|}}
|header6   =  
|header6 =  
|label6   = Size:
|label6   = State:
|data6     = {{#if: {{{size|}}}|{{{size|}}}|}}
|data6   = {{#if: {{{state|}}}|{{{state|}}}|}}
|header7   =  
|header7 =  
|label7   = Mayor:
|label7  = Motto:
|data7    = {{#if: {{{mayor|}}}|{{{mayor|}}}|}}
|data7    = {{#if: {{{motto|}}}|{{{motto|}}}|}}
|header8   =
|label8    = Population:
|data8    = {{#if: {{{pop|}}}|{{{pop|}}}|}}
|header9  =
|label9    = Motto:
|data9    = {{#if: {{{motto)|}}}|{{{motto|}}}|}}
|header10  =
|label10    = Area code (s)
|data10    = {{#if: {{{area code (s)|}}}|{{{area code (s)|}}}|}}
}}
}}
<noinclude>
<noinclude>
The following code produces the fake infobox shown on the right:
The following code produces the fake infobox shown on the right:
<pre>{{infobox city|
<pre style="overflow:auto;">
{{infobox city|
|image =
|image =
|official name =
|games =  
|games =  
|country =
|state =
|established =
|size =
|name =  
|name =  
|mayor =
|mayor =
|pop =
|pop =
|size =
|established =
|state =
|motto =
|motto =
}}</pre>
|area code (s) =
[[category:infoboxes]]
}}
[[Category:Templates|{{PAGENAME}}]]</noinclude>
</pre>
[[Category:Infobox Templates]]
</noinclude>

Latest revision as of 01:18, 3 November 2011

CITY
ADVERTISEMENT

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

{{infobox city|
|image =
|official name =
|games = 
|country =
|state =
|established =
|size =
|name = 
|mayor =
|pop =
|motto =
|area code (s) =
}}