Template:Infobox Growing Region: Difference between revisions
Template page
More actions
Eloise Zomia (talk | contribs) No edit summary |
Eloise Zomia (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<templatestyles src="Template:Infobox Growing Region/styles.css" /> | <templatestyles src="Template:Infobox Growing Region/styles.css" /> | ||
{| class="infobox lw-infobox lw-infobox--growing-region" | {| class="infobox lw-infobox lw-infobox--growing-region" | ||
|- | |- | ||
| Line 31: | Line 24: | ||
! class="lw-infobox__label" | Location | ! class="lw-infobox__label" | Location | ||
| class="lw-infobox__value" | | | class="lw-infobox__value" | | ||
{{#if:{{{location|}}}| | |||
{{{location}}} | |||
| {{# | | | ||
{{#arraymap:{{{country|}}}|,|x|[[{{#trim:x}}]]|, }} | |||
}} | |||
|- | |- | ||
{{#if:{{{coordinates|}}}| | {{#if:{{{coordinates|}}}| | ||
| Line 53: | Line 47: | ||
{{#if:{{{country|}}}| | {{#if:{{{country|}}}| | ||
! class="lw-infobox__label" {{!}} Country | ! class="lw-infobox__label" {{!}} Country | ||
{{!}} class="lw-infobox__value" {{!}} {{# | {{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{country|}}}|,|x|[[{{#trim:x}}]]|, }} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{provinces|}}}| | {{#if:{{{provinces|}}}| | ||
! class="lw-infobox__label" {{!}} Provinces/States | ! class="lw-infobox__label" {{!}} Provinces/States | ||
{{!}} class="lw-infobox__value" {{!}} {{# | {{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{provinces|}}}|,|x|[[{{#trim:x}}]]|, }} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| Line 78: | Line 72: | ||
{{#if:{{{primary_river|}}}| | {{#if:{{{primary_river|}}}| | ||
! class="lw-infobox__label" {{!}} Primary Rivers | ! class="lw-infobox__label" {{!}} Primary Rivers | ||
{{!}} class="lw-infobox__value" {{!}} {{# | {{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{primary_river|}}}|,|x|[[{{#trim:x}}]]|, }} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
{{#if:{{{primary_mountains|}}}| | {{#if:{{{primary_mountains|}}}| | ||
! class="lw-infobox__label" {{!}} Primary Mountains | ! class="lw-infobox__label" {{!}} Primary Mountains | ||
{{!}} class="lw-infobox__value" {{!}} {{# | {{!}} class="lw-infobox__value" {{!}} {{#arraymap:{{{primary_mountains|}}}|,|x|[[{{#trim:x}}]]|, }} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| Line 111: | Line 105: | ||
<!-- Semantic properties (multi-value) --> | <!-- Semantic properties (multi-value) --> | ||
{{#arraymap:{{{country|}}}|,|x|{{#set:|Has country=x}}|}} | {{#arraymap:{{{country|}}}|,|x|{{#set:|Has country={{#trim:x}}}}|}} | ||
{{#arraymap:{{{provinces|}}}|,|x|{{#set:|Has province=x}}|}} | {{#arraymap:{{{provinces|}}}|,|x|{{#set:|Has province={{#trim:x}}}}|}} | ||
{{#arraymap:{{{primary_river|}}}|,|x|{{#set:|Has primary river=x}}|}} | {{#arraymap:{{{primary_river|}}}|,|x|{{#set:|Has primary river={{#trim:x}}}}|}} | ||
{{#arraymap:{{{primary_mountains|}}}|,|x|{{#set:|Has primary mountains=x}}|}} | {{#arraymap:{{{primary_mountains|}}}|,|x|{{#set:|Has primary mountains={{#trim:x}}}}|}} | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Documentation goes here. | Documentation goes here. | ||
</noinclude> | </noinclude> | ||
Revision as of 23:26, 19 January 2026
Documentation goes here.