Template:Infobox city: Difference between revisions

No edit summary
No edit summary
 
(17 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:22em; font-size:90%; text-align:left; border-color:#000000; background-color: #FFFFFF;" cellspacing="2"
{{Infobox
{{pipe}}- style="margin:0;"
|bodystyle    =  
!colspan="2" style="text-align: center;"{{pipe}}<small>CITY</small><br /><span class="fn" style="font-size:18px;">{{{name|{{PAGENAME}}}}}</span>
|title        =
{{#if:{{{image|}}}|{{pipe}}-
|titlestyle  =  
{{pipe}} colspan="2" align="center"{{pipe}}{{{image}}}{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}|}}
|above        = <small>CITY</small><br /> <span class="fn" style="font-size:18px;">{{#if:{{{name|}}}|{{{name}}}|<includeonly>{{PAGENAME}}</includeonly>}}</span>  
{{pipe}}- valign="top"
|abovestyle  = text-align:center;
!
|imagestyle  =
{{#if: {{{games|}}}|
|captionstyle =
{{pipe}}-
|motto        =
!style="text-align:right;"{{pipe}}Appearance(s):
|image        = {{#if:{{{image|}}}|{{{image}}}{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}|}}
{{pipe}}{{{games|}}}|
|caption      =
{{pipe}}-
|image2      =
|caption2    =
|headerstyle  =
|labelstyle  = text-align:right;
|datastyle    =
|header1  =
|label1    = Official name:
|data1    = {{#if: {{{official name|}}}|{{{official name|}}}|}}
|header2  =  
|label2    = Appearance(s):
|data2    = {{#if: {{{games|}}}|{{{games|}}}|}}
|header3  =
|label3    = Country:
|data3    = {{#if: {{{country|}}}|{{{country|}}}|}}
|header4  =
|label4    = State:
|data4    = {{#if: {{{state|}}}|{{{state|}}}|}}
|header5  =
|label5    = Established:
|data5    = {{#if: {{{established|}}}|{{{established|}}}|}}
|header6  =
|label6    = Size:
|data6    = {{#if: {{{size|}}}|{{{size|}}}|}}
|header7  =
|label7    = Mayor:
|data7    = {{#if: {{{mayor|}}}|{{{mayor|}}}|}}
|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)|}}}|}}
}}
}}
{{#if: {{{name|}}}|
<noinclude>
{{pipe}}-
!style="text-align:right;"{{pipe}}Name:
{{pipe}}{{{name|}}}|
{{pipe}}-
}}
{{#if: {{{mayor|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Mayor:
{{pipe}}{{{mayor|}}}|
{{pipe}}-
}}
{{#if: {{{pop|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Population:
{{pipe}}{{{pop|}}}|
{{pipe}}-
}}
{{#if: {{{size|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Size:
{{pipe}}{{{size|}}}|
{{pipe}}-
}}
{{#if: {{{established|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Established:
{{pipe}}{{{established|}}}|
{{pipe}}-
}}
{{#if: {{{state|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}State:
{{pipe}}{{{state|}}}|
{{pipe}}-
}}
{{#if: {{{motto|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Motto:
{{pipe}}{{{motto|}}}|
{{pipe}}-
}}
|}<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) =
}}