Template:PolicyInterventionTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(45 intermediate revisions by 2 users not shown)
Line 14: Line 14:
</noinclude><includeonly>
</noinclude><includeonly>
<table class="PageWidthTableTemplate">
<table class="PageWidthTableTemplate">
{{#ifeq:{{{Description|}}}|||<tr><td class="PageWidthTableFirstCell">'''Description:'''</td><td class="PageWidthTableRemainderCell">
{{#ifeq:{{{Description|}}}|||<tr>
[[HasDescription::{{{Description|}}}]]</td></tr>}}
<td class="PageWidthTableFirstCell">'''Description:'''</td>
{{#ifeq:{{{Reference|}}}|||<tr><td class="PageWidthTableFirstCell">'''Reference:'''</td><td class="PageWidthTableRemainderCell">
{{#arraymap:{{{Reference|}}}|;|x|[[HasReference::x]]}}</td></tr>}}
{{#ifeq:{{{Component|}}}|||<tr><td class="PageWidthTableFirstCell">'''Is implemented in:'''</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
{{#arraymap:{{{Component|}}}|;|x|[[HasComponent::x]]}}</td></tr>}}
{{{Description|}}}</td></tr>}}
{{#ifeq:{{{BelongsToTheme|}}}|||<tr><td class="PageWidthTableFirstCell">'''Belongs to theme:'''</td><td class="PageWidthTableRemainderCell">
{{#ifeq:{{{Reference|}}}|||<tr>
[[BelongsToTheme::{{{BelongsToTheme|}}}]]</td></tr>
<td class="PageWidthTableFirstCell">'''Reference:'''</td>
}}
<td class="PageWidthTableRemainderCell">
{{#ifeq:{{{ThemeItem|}}}|||<tr><td class="PageWidthTableFirstCell">'''ThemeItems:'''</td>
[[{{{Reference|}}}]]</td></tr>}}
{{#ifeq:{{{Component|}}}|||<tr>
<td class="PageWidthTableFirstCell">'''Is implemented in:'''</td>
<td class="PageWidthTableRemainderCell">
<td class="PageWidthTableRemainderCell">
{{#arraymap:{{{ThemeItem|}}}|,|x|[[HasThemeItem::x]]}}</td></tr>}}
{{#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/>
{{#ifexpr:{{PropertyTest|prop=HasEffect|page={{PAGENAME}}|reverse=1}}>0
{{#ifexpr:{{PropertyTestTemplate|prop=consistsOfPI|page={{PAGENAME}}|reverse=1}}>0
|<h3>Associated policy response component</h3>
{{#arraymap:
  {{#ask:[[{{PAGENAME}}]]
  |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>
|<h3>Effects of this policy intervention on components</h3>
|}}
|}}
[[Category:PolicyIntervention]][[HasAltTitle::{{{AltText|}}}|]][[HasCaption::{{{Caption|}}}|]][[BelongsToTheme::Multiple themes| ]]</includeonly>
{{#set:HasDescription={{{Description|}}}
  |HasReference={{{Reference|}}}|+sep=;
  |HasComponent={{{Component|}}}|+sep=;
}}
[[Category:PolicyIntervention]] </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.