Template:State header: Difference between revisions
m (typo) |
m (removed this disgusting company owned wiki) |
||
Line 16: | Line 16: | ||
{{ #if: {{{csgroup|}}}|*[[:csgroup:{{{csgroup}}}|CS group]]}} | {{ #if: {{{csgroup|}}}|*[[:csgroup:{{{csgroup}}}|CS group]]}} | ||
{{ #if: {{{wikipedia|}}}|*[[:wikipedia:{{{wikipedia}}}|Wikipedia]]}} | {{ #if: {{{wikipedia|}}}|*[[:wikipedia:{{{wikipedia}}}|Wikipedia]]}} | ||
{{ #if: {{{wikitravel|}}}|*[[:wikitravel:{{{ | {{ #if: {{{wikitravel|}}}|*[[:wikivoyage:{{{wikitravel}}}|Wikivoyage]]}} | ||
{{ #if: {{{wikivoyage|}}}|*[[:wikivoyage:{{{wikivoyage}}}|Wikivoyage]]}} | |||
{{ #if: {{{hitchwiki|}}}|*[[:hitch:{{{hitchwiki}}}|Hitchwiki]]|}} | {{ #if: {{{hitchwiki|}}}|*[[:hitch:{{{hitchwiki}}}|Hitchwiki]]|}} | ||
|}<includeonly>[[Category:{{{state}}}]] {{IsIn|{{{country}}}}}</includeonly> | |}<includeonly>[[Category:{{{state}}}]] {{IsIn|{{{country}}}}}</includeonly> | ||
Line 34: | Line 35: | ||
|wikipedia = | |wikipedia = | ||
|hitchwiki = | |hitchwiki = | ||
| | |wikivoyage = | ||
|image = | |image = | ||
|imagetext = | |imagetext = |
Revision as of 12:38, 7 July 2013
{{{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: |*[[:wikivoyage:{{{wikitravel}}}|Wikivoyage]]}} {{ #if: |*[[:wikivoyage:{{{wikivoyage}}}|Wikivoyage]]}} {{ #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 = |wikivoyage = |image = |imagetext = }}