Template:KeyPolicyQuestionTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
 
(35 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "PolicyQuestionTemplate" template.
This is the "KeyPolicyQuestionTemplate" template.
It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{PolicyQuestionTemplate
{{KeyPolicyQuestionTemplate
|HasDescription=
|HasDescription=
|PQBelongsToComponent=
|PQBelongsToComponent=
|BelongsToTheme=
|ThemeItem=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{| class="wikitable"
</noinclude><includeonly>
! Key Question
<table class="PageWidthTableTemplate">
| [[HasDescription::{{{HasDescription|}}}]]
{{#ifeq:{{{HasDescription|}}}|||<tr>
|-
<td class="PageWidthTableFirstCell">'''Description:'''</td>
! Belongs To Component
<td class="PageWidthTableRemainderCell">
| [[PQBelongsToComponent::{{{BelongsToComponent|}}}]]
[[HasDescription::{{{HasDescription|}}}]]</td></tr>}}
|}
{{#ifeq:{{{BelongsToComponent|}}}|||<tr>
 
<td class="PageWidthTableFirstCell">'''Belongs to component:'''</td>
[[Category:PolicyQuestion]]
<td class="PageWidthTableRemainderCell">
 
{{#arraymap:{{{BelongsToComponent|}}}|;|x|[[PQBelongsToComponent::x]]}}</td></tr>}}
[[HasComponentType::{{#show:[[Category:Component]][[-PQBelongsToComponent::{{PAGENAME}}]]|?FrameworkElementType}}]]
{{#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]]|, }}</td></tr>}}
</table>
<br/>
[[Category:KeyPolicyQuestion]]  
[[HasPageName::{{PAGENAME}}| ]]
</includeonly>
</includeonly>

Latest revision as of 14:27, 7 May 2014

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

{{KeyPolicyQuestionTemplate
|HasDescription=
|PQBelongsToComponent=
|BelongsToTheme=
|ThemeItem=
}}

Edit the page to see the template text.