Template:Country header: Difference between revisions
No edit summary |
({{tr-loc}}) |
||
(23 intermediate revisions by 4 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:#ede7b7;text-align:center;border-right:1px solid #ba9c63;border-bottom:1px solid #ba9c63; | |width="15%" style="padding:2px;font-size:140%;background:#ede7b7;text-align:center;border-right:1px solid #ba9c63;border-bottom:1px solid #ba9c63;border-top-left-radius: 5px;"|'''{{{country}}}''' | ||
|width="35%" style="padding:2px;background:#ede7b7;border-bottom:1px solid #ba9c63;border-right:1px solid #ba9c63"|'''Main pages''' | |width="35%" style="padding:2px;background:#ede7b7;border-bottom:1px solid #ba9c63;border-right:1px solid #ba9c63"|'''Main pages''' | ||
|width="35%" style="padding:2px;background:#ede7b7;border-bottom:1px solid #ba9c63;border-right:1px solid #ba9c63"|'''Places''' | |width="35%" style="padding:2px;background:#ede7b7;border-bottom:1px solid #ba9c63;border-right:1px solid #ba9c63"|'''Places''' | ||
|width="15%" style="padding:2px;background:#ede7b7;border-bottom:1px solid #ba9c63; | |width="15%" style="padding:2px;background:#ede7b7;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;"| | ||
{{tr-loc}} | |||
{{ #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;"| | ||
{{{places}}} | {{ #if: {{{places|}}}|{{{places}}}}} | ||
|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: {{{ | {{ #if: {{{wikivoyage|}}}|*[[:wikivoyage:{{{wikivoyage}}}|Wikivoyage]]}} | ||
{{ #if: {{{hitchwiki|}}}|*[[:hitch:{{{hitchwiki}}}|Hitchwiki]] | {{ #if: {{{hitchwiki|}}}|*[[:hitch:{{{hitchwiki}}}|Hitchwiki]]}} | ||
|}<includeonly>[[Category:{{{country}}}]] | |}<includeonly>[[Category:{{{country}}}]] </includeonly> | ||
<noinclude> | <noinclude> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
Line 26: | Line 29: | ||
|country = | |country = | ||
|region = | |region = | ||
|bwgroup = | |||
|csgroup = | |csgroup = | ||
|places = | |places = | ||
Line 31: | Line 35: | ||
|wikipedia = | |wikipedia = | ||
|hitchwiki = | |hitchwiki = | ||
| | |wikivoyage = | ||
|image = | |image = | ||
|imagetext = | |imagetext = |
Latest revision as of 13:59, 9 December 2018
{{{country}}} | Main pages | Places | Other links |
Trustroots {{ #if: |[[file:{{{image}}}|100x80px|border|{{{imagetext}}}]]}} |
{{ #if: |{{{toplinks}}}}} |
{{ #if: |{{{places}}}}} |
{{ #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 country header templates like template:Italy for standard formatting. You can use it to easily make a new header template for a country that does not already have one.
Usage
use the following form in your header templates:
{{Country header |country = |region = |bwgroup = |csgroup = |places = |toplinks = |wikipedia = |hitchwiki = |wikivoyage = |image = |imagetext = }}