Template:City header: Difference between revisions
No edit summary |
(-[[Category:{{{city}}}]]) |
||
(13 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{|width="100%" cellspacing="0px" style="border:1px solid #ba9c63; | {|width="100%" cellspacing="0px" style="border:1px solid #ba9c63;border-radius: 5px;" | ||
|- | |- | ||
|width="15%" style="padding:2px;font-size:140%;background:#f2e5d6;text-align:center;border-right:1px solid #ba9c63;border-bottom:1px solid #ba9c63; | |width="15%" style="padding:2px;font-size:140%;background:#f2e5d6;text-align:center;border-right:1px solid #ba9c63;border-bottom:1px solid #ba9c63;border-top-left-radius: 5px;"|'''{{{city}}}''' | ||
|width="35%" style="padding:2px;background:#f2e5d6;border-bottom:1px solid #ba9c63;border-right:1px solid #ba9c63"|'''Main pages''' | |width="35%" style="padding:2px;background:#f2e5d6;border-bottom:1px solid #ba9c63;border-right:1px solid #ba9c63"|'''Main pages''' | ||
|width="35%" style="padding:2px;background:#f2e5d6;border-bottom:1px solid #ba9c63;border-right:1px solid #ba9c63"|'''Smaller areas''' | |width="35%" style="padding:2px;background:#f2e5d6;border-bottom:1px solid #ba9c63;border-right:1px solid #ba9c63"|'''Smaller areas''' | ||
|width="15%" style="padding:2px;background:#f2e5d6;border-bottom:1px solid #ba9c63; | |width="15%" style="padding:2px;background:#f2e5d6;border-bottom:1px solid #ba9c63;border-top-right-radius: 5px;"|'''Other links''' | ||
|- | |- | ||
|style="border-right:1px solid #ba9c63;text-align:center;"|[[file:{{{image}}}|100x80px|{{{imagetext}}}]] | |style="border-right:1px solid #ba9c63;text-align:center;"| | ||
{{ #if: {{{image|}}}|[[file:{{{image}}}|100x80px|{{{imagetext}}}]]}} | |||
|style="border-right:1px solid #ba9c63;padding:1px 4px;"| | |style="border-right:1px solid #ba9c63;padding:1px 4px;"| | ||
{{{toplinks}}} | {{ #if: {{{toplinks|}}}|{{{toplinks}}}}} | ||
|style="border-right:1px solid #ba9c63;padding:1px 4px;"| | |style="border-right:1px solid #ba9c63;padding:1px 4px;"| | ||
{{{areas}}} | {{ #if: {{{areas|}}}|{{{areas}}}}} | ||
|style="padding:1px 4px"| | |style="padding:1px 4px"| | ||
{{ #if: {{{bwgroup|}}}|*[[ | {{ #if: {{{bwgroup|}}}|*[[:bw:groups/{{{bwgroup}}}|BeWelcome group]]}} | ||
{{ #if: {{{csgroup|}}}|*[[:csgroup:{{{csgroup}}}| | {{ #if: {{{csgroup|}}}|*[[:csgroup:{{{csgroup}}}|CouchSurfing group]]}} | ||
{{ #if: {{{wikipedia|}}}|*[[:wikipedia:{{{wikipedia}}}|Wikipedia]]}} | {{ #if: {{{wikipedia|}}}|*[[:wikipedia:{{{wikipedia}}}|Wikipedia]]}} | ||
{{ #if: {{{ | {{ #if: {{{wikivoyage|}}}|*[[:wikivoyage:{{{wikivoyage}}}|Wikivoyage]]}} | ||
{{ #if: {{{hitchwiki|}}}|*[[:hitch:{{{hitchwiki}}}|Hitchwiki]] | {{ #if: {{{hitchwiki|}}}|*[[:hitch:{{{hitchwiki}}}|Hitchwiki]]}} | ||
|}<includeonly> | |}<includeonly> {{IsIn|{{{country}}}}}</includeonly> | ||
<noinclude> | <noinclude> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
Line 33: | Line 34: | ||
|wikipedia = | |wikipedia = | ||
|hitchwiki = | |hitchwiki = | ||
| | |wikivoyage = | ||
|image = | |image = | ||
|imagetext = | |imagetext = |
Latest revision as of 19:26, 9 December 2018
{{{city}}} | Main pages | Smaller areas | Other links |
{{ #if: |[[file:{{{image}}}|100x80px|{{{imagetext}}}]]}} |
{{ #if: |{{{toplinks}}}}} |
{{ #if: |{{{areas}}}}} |
{{ #if: |*[[:bw:groups/{{{bwgroup}}}|BeWelcome group]]}} {{ #if: |*[[:csgroup:{{{csgroup}}}|CouchSurfing group]]}} {{ #if: |*[[:wikipedia:{{{wikipedia}}}|Wikipedia]]}} {{ #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 = }}