Difference between revisions of "Template:Map caption/sandbox"
Jump to navigation
Jump to search
imported>Blue-Haired Lawyer m (moved Template:Map caption/Test sandbox to Template:Map caption/sandbox: Are there other kinds??) |
imported>Blue-Haired Lawyer (I'm not sure if these were great instructions - sync with ive) |
||
| Line 1: | Line 1: | ||
| − | <noinclude>{{Template sandbox notice| | + | <noinclude>{{Template sandbox notice|testcases-name=sandcastle}}</noinclude><!-- |
| − | < | + | |
| + | --><div style="text-align:center;font-size:11px;line-height:1.15em;"><span style="font-size:11px;">Location of <!-- | ||
| + | -->{{#if:<!--[0]-->{{{countryprefix|}}} | ||
| + | |<!--then:[0]-->{{{countryprefix}}} <!-- | ||
| + | --end#if:[0]-->}}<span style="font-size:2px;"> </span>{{#ifexist:{{{country}}}|[[{{{country}}}]]|{{{country|[[{{PAGENAME}}]]}}}}}<!-- | ||
| + | -->{{#ifeq:<!--[1]-->{{{location|{{{location_color|any}}}}}}|<!--equals:-->none | ||
| + | |<!--then:[1] either location or location_color passed as explicit demand not to indicate any (default location_color) value | ||
| + | -->|<!--else:[1]--><span style="font-size:8px;">{{spaces|2}}</span>({{{location|<span style="font-size:9px;">{{{location_color|orange}}}</span>}}})<!-- | ||
| + | --end#ifeq:[1]-->}}</span><!-- | ||
| + | -->{{#if:<!--[2]-->{{{region|{{{legend|}}}}}} | ||
| + | |<!--then:[2] | ||
| + | -->{{#if:<!--[3]-->{{{subregion|}}} | ||
| + | |<!--then:[3]--><p style="width:250px;font-size:11px;text-align:left;margin-left:1.2ex;margin-top:0px;margin-bottom:0px;line-height:1.15em;">– <!-- | ||
| + | -->|<!--else:[3]--><p style="width:250px;font-size:11px;text-align:center;margin-top:0px;margin-bottom:0px;line-height:1.15em;"><!-- | ||
| + | --end#if:[3]-->}}<!-- | ||
| + | -->{{#switch:<!--[4]-->{{{region|none}}} | ||
| + | | none = | ||
| + | | Europe | ||
| + | | [[Europe]] | ||
| + | | in Europe | ||
| + | | in [[Europe]] | ||
| + | | on the European continent | ||
| + | | on the [[Europe|European continent]] = on the [[Europe|European continent]] | ||
| + | | Pacific | ||
| + | | [[Pacific]] | ||
| + | | the Pacific | ||
| + | | the [[Pacific]] | ||
| + | | the Pacific Ocean = in the [[Pacific Ocean]] | ||
| + | | Antarctica | ||
| + | | [[Antarctica]] = on {{#ifexist:{{{region}}}|[[{{{region}}}]]|{{{region}}}}} | ||
| + | | Middle East | ||
| + | | [[Middle East]] | ||
| + | | Arctic Circle | ||
| + | | [[Arctic Circle]] | ||
| + | | Pacific Ocean | ||
| + | | [[Pacific Ocean]] = in the {{#ifexist:{{{region}}}|[[{{{region}}}]]|{{{region}}}}} | ||
| + | | #default = in {{#ifexist:{{{region}}}|[[{{{region}}}]]|{{{region}}}}} | ||
| + | <!--end#switch:[4]-->}}<!-- | ||
| + | -->{{#if:<!--[5]-->{{{region|}}} | ||
| + | |<!--then:[5] | ||
| + | -->{{#ifeq:<!--[6]-->{{{region_color|any}}}|<!--equals:-->none | ||
| + | |<!--then:[6] region_color passed as explicit demand not to indicate (default) color | ||
| + | -->|<!--else:[6]--><span style="font-size:8px;">{{spaces|2}}</span>(<span style="font-size:9px;"><!-- | ||
| + | -->{{#if:<!--[7]-->{{{subregion|}}} | ||
| + | |<!--then:[7] | ||
| + | -->{{#ifeq:<!--[8]-->{{{subregion_color|camel}}}|<!--equals:-->{{{region_color|white}}} | ||
| + | |<!--then:[8] mention colour once | ||
| + | -->|<!--else:[8] | ||
| + | -->{{#ifeq:<!--[8a]-->{{{subregion_color|any}}}|<!--equals:-->none | ||
| + | |<!--then:[8a] mention the one colour | ||
| + | -->|<!--else:[8a]-->{{{subregion_color|camel}}} & <!-- | ||
| + | --end#ifeq:[8a]-->}}<!-- | ||
| + | --end#ifeq:[8]-->}}{{{region_color|white}}}<!-- | ||
| + | -->|<!--else:[7]-->{{{region_color|white}}}<!-- | ||
| + | --end#if:[7]-->}}</span>)<!-- | ||
| + | --end#if:[6]-->}}<!-- | ||
| + | -->{{#if:<!--[9]-->{{{subregion|}}} | ||
| + | |<!--then:[9]--><br />– <!-- | ||
| + | -->{{#switch:<!--[10]-->{{{subregion|none}}} | ||
| + | | EU | ||
| + | | [[EU]] | ||
| + | | the EU | ||
| + | | the [[EU]] | ||
| + | | European Union | ||
| + | | [[European Union]] | ||
| + | | the European Union | ||
| + | | the [[European Union]] = in the [[European Union]] | ||
| + | | #default = in {{#ifexist:{{{subregion}}}|[[{{{subregion}}}]]|{{{subregion}}}}} | ||
| + | <!--end#switch[10]-->}}<!-- | ||
| + | -->{{#ifeq:<!--[11]-->{{{subregion_color|any}}}|<!--equals:-->none | ||
| + | |<!--then:[11] subregion_color passed as explicit demand not to indicate (default) color | ||
| + | -->|<!--else:[11]--><span style="font-size:8px;">{{spaces|2}}</span>(<span style="font-size:9px;">{{{subregion_color|camel}}}</span>)<!-- | ||
| + | --end#if:[11]-->}}<!-- | ||
| + | --end#if:[9]-->}}<!--else:[5] no region thus no SUBregion acceptable (hence no colours indicating region or subregion at region) | ||
| + | --end#if:[5]-->}}<!-- | ||
| + | -->{{#if:<!--[12]-->{{{legend|}}} | ||
| + | |<!--then[12]: | ||
| + | -->{{#switch:<!--[13]-->{{{subregion|none}}} | ||
| + | | EU | ||
| + | | [[EU]] | ||
| + | | the EU | ||
| + | | the [[EU]] | ||
| + | | European Union | ||
| + | | [[European Union]] | ||
| + | | the European Union | ||
| + | | the [[European Union]] = <!-- | ||
| + | -->{{#ifeq:<!--[13a]-->{{{subregion_color|camel}}}|<!--equals:-->camel | ||
| + | |<!--then:[13a]-->{{spaces|16}} <!-- | ||
| + | -->|<!--else:[13a]--> — <!-- | ||
| + | --end#ifeq:[13a]-->}} | ||
| + | | none = <!-- | ||
| + | -->{{#ifeq:<!--[14]-->{{{region|none}}}|<!--equals:-->none | ||
| + | |<!--then:[14] no spacer while legend has line all for itself | ||
| + | -->|<!--else:[14]--> — <!-- | ||
| + | --end#ifeq:[14]-->}} | ||
| + | | #default = — | ||
| + | <!--end#switch:[13]-->}} [<span style="font-size:10px;">[[:Image:{{{legend}}}|Legend]]</span>]<!-- | ||
| + | --end#if:[12]-->}}</p><!-- | ||
| + | --end#if:[2]-->}}</div> | ||
Revision as of 23:39, 5 September 2011
| This is the template sandbox page for Template:Map caption (diff). See also the companion subpage for test cases. |
Location of Map caption/sandbox (orange)