Template:PolicyInterventionTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(94 intermediate revisions by 5 users not shown)
Line 5: Line 5:
{{PolicyInterventionTemplate
{{PolicyInterventionTemplate
|Description=
|Description=
|Figure=
|Reference=
|Reference=
|Component=
|Component=
|BelongsToTheme=
|ThemeItem=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>
<div style="float:right; clear:right; ">
<table class="PageWidthTableTemplate">
<table style="border:solid 1px;width:350px;color:black;background-color:#EBEBD9" cellpadding="2" cellspacing="2">
{{#ifeq:{{{Description|}}}|||<tr>
<tr><td style="vertical-align:top; padding-right: 6px; padding-top: 3px; padding-bottom: 1px;" align="left">'''Reference:'''</td>
<td class="PageWidthTableFirstCell">'''Description:'''</td>
<td>{{#ifeq:{{{Reference|}}}||--|{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]}}}}</td></tr>
<td class="PageWidthTableRemainderCell">
<tr><td>'''Is policy intervention of:'''</td>
{{{Description|}}}</td></tr>}}
<td>{{#ifeq:{{{Component|}}}||--|[[HasComponent::{{{Component|}}}]]}}</td></tr>
{{#ifeq:{{{Reference|}}}|||<tr>
<td class="PageWidthTableFirstCell">'''Reference:'''</td>
<td class="PageWidthTableRemainderCell">
[[{{{Reference|}}}]]</td></tr>}}
{{#ifeq:{{{Component|}}}|||<tr>
<td class="PageWidthTableFirstCell">'''Is implemented in:'''</td>
<td class="PageWidthTableRemainderCell">
{{#arraymap:{{{Component|}}}|;|x|[[x/Policy issues| x]]|, }}</td></tr>}}
{{#ifeq:{{{HumanDevelopmentThemeItem|}}}{{{WaterThemeItem|}}}{{{EnergyThemeItem|}}}{{{LanduseThemeItem|}}}{{{NatureThemeItem|}}}{{{FoodThemeItem|}}}{{{AirThemeItem|}}}{{{ClimateThemeItem|}}}|||<tr>
<td class="PageWidthTableFirstCell">'''Associated theme items:'''</td>
<td class="PageWidthTableRemainderCell">{{#arraymap:{{{HumanDevelopmentThemeItem|}}};{{{WaterThemeItem|}}};{{{EnergyThemeItem|}}};{{{LanduseThemeItem|}}};{{{NatureThemeItem|}}};{{{FoodThemeItem|}}};{{{AirThemeItem|}}};{{{ClimateThemeItem|}}}|;|x|[[HasThemeItem::x]]|,&nbsp; }}</td></tr>}}
</table>
</table>
<br/>
<br/>
</div>
{{#ifexpr:{{PropertyTestTemplate|prop=consistsOfPI|page={{PAGENAME}}|reverse=1}}>0
{{#ifeq:{{{Figure|}}}|||[[Image:{{{Figure|}}}|thumbnail|right|340px|alt={{{AltText|}}}|{{{Caption|}}}]]
|<h3>Associated policy response component</h3>
[[File::File:{{{Figure|}}}|]]}}
{{#arraymap:
{{#ifeq:{{{Description|}}}|||
  {{#ask:[[{{PAGENAME}}]]
[[HasDescription::{{{Description|}}}]]
  |mainlabel=-
  |?-consistsOfPI=
  |format=Plainlist|valuesep=;
  |link=none
  }}
|;|xx
|Component: [[{{#titleparts:xx|1}}]]<br/>Page: [[xx]]<br/>
|}}
|}}
{{#ifexpr:{{PropertyTestTemplate|prop=HasEffect|page={{PAGENAME}}|reverse=1}}>0
|<h3>Effects of this policy intervention on components</h3>
|}}
{{#set:HasDescription={{{Description|}}}
  |HasReference={{{Reference|}}}|+sep=;
  |HasComponent={{{Component|}}}|+sep=;
}}
}}
 
[[Category:PolicyIntervention]] </includeonly>
[[Category:PolicyIntervention]]
 
[[HasAltTitle::{{{AltText|}}}|]]
[[HasCaption::{{{Caption|}}}|]]
</includeonly>

Latest revision as of 14:38, 12 March 2020

This is the "PolicyInterventionTemplate" template. It should be called in the following format:

{{PolicyInterventionTemplate
|Description=
|Reference=
|Component=
|BelongsToTheme=
|ThemeItem=
}}

Edit the page to see the template text.