Difference between revisions of "Template:Infobox city"

Some changes, again.
(Some changes, again.)
Line 1: Line 1:
{{infobox
<includeonly>{{infobox
|bodystyle=width:30em;
  | abovestyle = background-color: {{{headcolor}}};
|above={{{name}}}
  | above = {{{name}}}
  | headerstyle = background-color: {{{subcolor}}};


|abovestyle={{#if:{{{color|}}}|background-color:{{{color}}}|}};
  | label2  = Tether
  | data2    = [[{{{tether|}}}]]


|label2=Tether
  | label4  = Tutor
|data2={{{tether}}}
  | data4    = {{{tutor|}}}


|label4=Divine Patron
  | label6  = Guilds
|data4={{{patron}}}
  | data6    = {{{guilds|}}}
 
|label5=Divine Advisory
|data5=
{{{advisory}}}
 
|label7=Tutor
|data7={{{tutor}}}
 
|label9=Guilds
|data9=
{{{guilds}}}
}}<noinclude>
This is a custom template infobox for [[cities]]. Use it as such:


  | header10 = Divines
  | label11  = Patron
  | data11  = {{{patron|}}}
  | label12  = Advisory
  | data12  = {{{advisory|}}}
}}</includeonly>
<noinclude>
This template is for [[Cities|city]] pages infoboxes. All fields except '''headcolor''', '''subcolor''' and '''name''' are optional. This template will also add the appropriate categories for cities and tethers.
==Example==
{{infobox city
| headcolor = #AED581
| subcolor  = #DCEDC8
| name      = Duiran
| tether    = Spirit
| tutor    = [[Raest]]
| guilds    = [[Sentaari]], [[Sentinels]], [[Shamans]]
| patron    = [[Haern]]
| advisory  = [[Haern]], [[Slyphe]], [[Dhar]], [[Omei]]
}}
<pre>
<pre>
{{infobox city
{{infobox city
|color=
| headcolor = #AED581
|name=
| subcolor  = #DCEDC8
|tether=
| name     = Duiran
|patron=
| tether   = Spirit
|advisory=
| tutor    = [[Raest]]
|guilds=
| guilds    = [[Sentaari]], [[Sentinels]], [[Shamans]]
| patron    = [[Haern]]
| advisory  = [[Haern]], [[Slyphe]], [[Dhar]], [[Omei]]
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>