Template:State header: Difference between revisions

[[Trustroots Wiki]] is an independent wiki with information for people who are actively exchanging hospitality.
Jump to navigationJump to search
Added border to image (better for flags with white background)
removed commercialized wiki
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|width="100%" cellspacing="0px" style="border:1px solid #ba9c63;-moz-border-radius: 5px;-webkit-border-radius: 5px;"
{|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;-moz-border-radius-topleft: 5px; -webkit-border-top-left-radius: 5px;"|'''{{{state}}}'''
|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;"|'''{{{state}}}'''
|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"|'''Cities'''
|width="35%" style="padding:2px;background:#f2e5d6;border-bottom:1px solid #ba9c63;border-right:1px solid #ba9c63"|'''Cities'''
|width="15%" style="padding:2px;background:#f2e5d6;border-bottom:1px solid #ba9c63;-moz-border-radius-topright: 5px; -webkit-border-top-right-radius: 5px;"|'''Other links'''
|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|border|{{{imagetext}}}]]
|style="border-right:1px solid #ba9c63;text-align:center;"|
{{ #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;"|
{{{toplinks}}}
{{ #if: {{{toplinks|}}}|{{{toplinks}}}}}
|style="border-right:1px solid #ba9c63;padding:1px 4px;"|
|style="border-right:1px solid #ba9c63;padding:1px 4px;"|
{{{cities}}}
{{ #if: {{{cities|}}}|{{{cities}}}}}
|style="padding:1px 4px"|
|style="padding:1px 4px"|
{{ #if: {{{bwgroup|}}}|*[[:bw:groups/{{{bwgroup}}}|BW group]]}}
{{ #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:{{{wikitravel}}}|Wikitravel]]}}
{{ #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 28: Line 30:
|cities    =
|cities    =
|toplinks  =
|toplinks  =
|bwgroup    =
|csgroup    =
|csgroup    =
|wikipedia  =
|wikipedia  =
|hitchwiki  =
|hitchwiki  =
|wikitravel =
|wikivoyage =
|image      =
|image      =
|imagetext  =
|imagetext  =

Latest revision as of 12:43, 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:{{{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

[edit]

use the following form in your header templates:

{{State header
|state      =
|country    =
|cities     =
|toplinks   =
|bwgroup    =
|csgroup    =
|wikipedia  =
|hitchwiki  =
|wikivoyage =
|image      =
|imagetext  =
}}