Template:State header: Difference between revisions
(fixed css and removed nastiness) |
m (typo) |
||
Line 7: | Line 7: | ||
|- | |- | ||
|style="border-right:1px solid #ba9c63;text-align:center;"| | |style="border-right:1px solid #ba9c63;text-align:center;"| | ||
{{ #if: {{{image|}}}|[[file:{{{image}}}|100x80px|border|{{{imagetext}}}]] | {{ #if: {{{image|}}}|[[file:{{{image}}}|100x80px|border|{{{imagetext}}}]]}} | ||
|style="border-right:1px solid #ba9c63;padding:1px 4px;"| | |style="border-right:1px solid #ba9c63;padding:1px 4px;"| | ||
{{ #if: {{{toplinks|}}}|{{{toplinks}}}}} | {{ #if: {{{toplinks|}}}|{{{toplinks}}}}} |
Revision as of 19:03, 24 December 2012
{{{state}}} | Main pages | Cities | Other links |
{{ #if: |[[file:{{{image}}}|100x80px|border|{{{imagetext}}}]]}} |
{{ #if: |{{{toplinks}}}}} |
{{ #if: |{{{cities}}}}} |
{{ #if: |*[[:bw:groups/{{{bwgroup}}}|BW group]]}} {{ #if: |*[[:csgroup:{{{csgroup}}}|CS group]]}} {{ #if: |*[[:wikipedia:{{{wikipedia}}}|Wikipedia]]}} {{ #if: |*[[:wikitravel:{{{wikitravel}}}|Wikitravel]]}} {{ #if: |*[[:hitch:{{{hitchwiki}}}|Hitchwiki]]|}} |
This is a meta-template used by state (provinces, regions, other intermediate entities between Country and City) header templates like template:Veneto for standard formatting. You can use it to easily make a new header template for a state/province/region that does not already have one.
Usage
use the following form in your header templates:
{{State header |state = |country = |cities = |toplinks = |bwgroup = |csgroup = |wikipedia = |hitchwiki = |wikitravel = |image = |imagetext = }}