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) |
Copied template from CouchSurfing wiki |
||
| Line 1: | Line 1: | ||
{|width=" | <includeonly>{|width="240px" align="right" style="border-spacing:8px; margin:0px -8px;" | ||
|class="wikitable" style="width:55%; border:1px solid #8B4513; background:#E0EAEB; vertical-align:top; color:#000;"| | |||
{|width="100%" cellpadding="2" cellspacing="5" style="vertical-align:middle; background:#E0EAEB;border:1px solid #a3bfb1;" | |||
!colspan="3" style="margin:0; background:#94CBD1; font-size:150%; font-weight:bold; border:1px solid #3D878F; text-align:center; color:#000; padding:0.2em 0.4em;"|{{{name}}} | |||
|- | |- | ||
| | |style="text-align:left;font-size:120%" colspan="3"| Country: '''[[:category:{{{country}}}|{{{country}}}]]''' | ||
|- | |- | ||
|style=" | |style="text-align:center;border:1px solid #a3bfb1" colspan="3"|{{ #if: {{{image|}}}|[[image:{{{image}}}{{!}}220px{{!}}{{{imagetext}}}]]|}} | ||
|style="border | |- | ||
|style="background:#94CBD1;text-align:center;font-size:110%;border:1px solid #3D878F" colspan="3"| '''Links:''' | |||
|style=" | |- | ||
{{{ | |style="text-align:center"|'''[[:csgroup:{{{group}}}|CS Group]]''' | ||
|style=" | |style="text-align:center"|'''[[:wikipedia:{{{wikipedia}}}|Wikipedia]]''' | ||
|- | |||
|style="text-align:center"|'''[[:wikitravel:{{{wikitravel}}}|Wikitravel]]''' | |||
|style="text-align:center"|'''[[:hitch:{{{hitch}}}|HitchWiki]] | |||
|- | |||
|} | |||
|} | |||
[[Category:{{{country}}}]] | |||
<!--[[csgroup:{{{group}}}]] | |||
[[wikitravel:{{{wikitravel}}}]] | |||
[[wikipedia:{{{wikipedia}}}]] | |||
[[hitch:{{{hitch}}}]]!--></includeonly> | |||
<noinclude> | <noinclude> | ||
__NOEDITSECTION__ | |||
{|width="240px" align="right" style="border-spacing:8px; margin:0px -8px;" | |||
|class="wikitable" style="width:55%; border:1px solid #8B4513; background:#A0EAEB; vertical-align:top; color:#000;"| | |||
{|width="100%" cellpadding="2" cellspacing="5" style="vertical-align:middle; background:#E0EAEB;border:1px solid #a3bfb1;" | |||
!colspan="3" style="margin:0; background:#94CBD1; font-size:150%; font-weight:bold; border:1px solid #3D878F; text-align:center; color:#000; padding:0.2em 0.4em;"|Alabama | |||
|- | |||
|style="text-align:left;font-size:120%" colspan="3"| Country: '''[[:category:United States|United States]]''' | |||
|- | |||
|style="text-align:center;border:1px solid #q3bfb1" colspan="3"|[[image:Alabama-flag.jpg|220px|Flag of Alabama]] | |||
|- | |||
|style="background:#94CBD1;text-align:center;font-size:110%;border:1px solid #3D878F" colspan="3"| '''Links:''' | |||
|- | |||
|style="text-align:center"|'''[[:csgroup:296|CS Group]]''' | |||
|style="text-align:center"|'''[[:wikipedia:Alabama|Wikipedia]]''' | |||
|- | |||
|style="text-align:center"|'''[[:wikitravel:Alabama|Wikitravel]]''' | |||
|style="text-align:center"|'''[[:hitch:Alabama|HitchWiki]] | |||
|- | |||
|} | |||
|} | |||
This template will add links in the side bar and eventually a dynamic table with a maps, a calendar, etc. Add this to all '''state/province/region''' pages that does not already have one. For city pages see the {{[[template:City|City]]}}. For country pages see the {{[[template:Country|Country]]}} | |||
==Use== | |||
To use insert the following at the top of the page: | |||
<nowiki>{{</nowiki>State | |||
|name = | |||
|country = | |||
|group = | |||
|wikipedia = | |||
|wikitravel = | |||
|hitch = | |||
|image = | |||
|imagetext = | |||
<nowiki>}}</nowiki> | |||
==Example== | |||
<nowiki>{{</nowiki>State | |||
|name =Alabama | |||
|country =United States | |||
|group =296 | |||
|wikipedia =Alabama | |||
|wikitravel =Alabama | |||
|hitch =Alabama | |||
|image =alabama-flag.jpg | |||
|imagetext =Flag of Alabama | |||
<nowiki>}}</nowiki> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 15:49, 13 September 2010
| ||||||||||||||||
This template will add links in the side bar and eventually a dynamic table with a maps, a calendar, etc. Add this to all state/province/region pages that does not already have one. For city pages see the {{City}}. For country pages see the {{Country}}
Use
To use insert the following at the top of the page:
{{State
|name =
|country =
|group =
|wikipedia =
|wikitravel =
|hitch =
|image =
|imagetext =
}}
Example
{{State
|name =Alabama
|country =United States
|group =296
|wikipedia =Alabama
|wikitravel =Alabama
|hitch =Alabama
|image =alabama-flag.jpg
|imagetext =Flag of Alabama
}}
