Template:City header: Difference between revisions
[[Trustroots Wiki]] is an independent wiki with information for people who are actively exchanging hospitality.
Jump to navigationJump to search
m fixed border-radius and removed some nastiness |
No edit summary |
||
| Line 17: | Line 17: | ||
{{ #if: {{{wikipedia|}}}|*[[:wikipedia:{{{wikipedia}}}|Wikipedia]]}} | {{ #if: {{{wikipedia|}}}|*[[:wikipedia:{{{wikipedia}}}|Wikipedia]]}} | ||
{{ #if: {{{wikitravel|}}}|*[[:wikitravel:{{{wikitravel}}}|Wikitravel]]}} | {{ #if: {{{wikitravel|}}}|*[[:wikitravel:{{{wikitravel}}}|Wikitravel]]}} | ||
{{ #if: {{{wikivoyage|}}}|*[[:wikivoyage:{{{wikivoyage}}}|Wikivoyage]]}} | |||
{{ #if: {{{hitchwiki|}}}|*[[:hitch:{{{hitchwiki}}}|Hitchwiki]]|}} | {{ #if: {{{hitchwiki|}}}|*[[:hitch:{{{hitchwiki}}}|Hitchwiki]]|}} | ||
|}<includeonly>[[Category:{{{city}}}]] {{IsIn|{{{country}}}}}</includeonly> | |}<includeonly>[[Category:{{{city}}}]] {{IsIn|{{{country}}}}}</includeonly> | ||
| Line 34: | Line 35: | ||
|wikipedia = | |wikipedia = | ||
|hitchwiki = | |hitchwiki = | ||
| | |wikivoyage = | ||
|image = | |image = | ||
|imagetext = | |imagetext = | ||
Revision as of 13:27, 8 February 2013
| {{{city}}} | Main pages | Smaller areas | Other links |
|
{{ #if: |[[file:{{{image}}}|100x80px|{{{imagetext}}}]]}} |
{{ #if: |{{{toplinks}}}}} |
{{ #if: |{{{areas}}}}} |
{{ #if: |*[[:bw:groups/{{{bwgroup}}}|BW group]]}} {{ #if: |*[[:csgroup:{{{csgroup}}}|CS group]]}} {{ #if: |*[[:wikipedia:{{{wikipedia}}}|Wikipedia]]}} {{ #if: |*[[:wikitravel:{{{wikitravel}}}|Wikitravel]]}} {{ #if: |*[[:wikivoyage:{{{wikivoyage}}}|Wikivoyage]]}} {{ #if: |*[[:hitch:{{{hitchwiki}}}|Hitchwiki]]|}} |
This is a meta-template used by city header templates like template:Hamburg for standard formatting. You can use it to easily make a new header template for a city that does not already have one.
Usage
use the following form in your header templates:
{{City header
|city =
|country =
|areas =
|toplinks =
|bwgroup =
|csgroup =
|wikipedia =
|hitchwiki =
|wikivoyage =
|image =
|imagetext =
}}