Template:ThemeItemTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:
Policy themes are used to classify key policy questions and policy interventions.  The tables below contain the questions and interventions associated with theme item {{PAGENAME}}.
Policy themes are used to classify key policy questions and policy interventions.  The tables below contain the questions and interventions associated with theme item {{PAGENAME}}.


{{#ifeq:{{PropertyTestTemplate|page={{PAGENAME}}|prop=HasThemeItem|reverse=1}}|0
{{#ifeq:{{PropertyTestTemplate|page={{PAGENAME}}|prop=HasThemeItem|reverse=1}}
|No associations
|0|No associations
|<h3>Components and their key policy questions</h3>
|{{#ifeq:
{{#ask:[[Category:KeyPolicyQuestion]][[HasThemeItem::{{PAGENAME}}]]
{{#ask:[[Category:KeyPolicyQuestion]][[HasThemeItem::{{PAGENAME}}]]|format=count}}
  |mainlabel=-
|0|
  |?PQBelongsToComponent=Component
|<h3>Associated key policy questions and their components </h3>
  |?HasDescription= Description
{{#ask:[[Category:KeyPolicyQuestion]][[HasThemeItem::{{PAGENAME}}]]
  |userparam=2col
  |mainlabel=-
  |sort=PQBelongsToComponent
  |?PQBelongsToComponent=Component
  |format=template
  |?HasDescription= Description
  |template=TableStandardRowTemplate
  |userparam=2col
  |intro={{TableIntroTemplate|20%|Component|70%|Description}}
|sort=PQBelongsToComponent
  |outro=</table>
|format=template
  |limit=1500
|template=TableStandardRowTemplate
}}
|intro={{TableIntroTemplate|20%|Component|70%|Description}}
<h3>Classification of policy interventions</h3>
|outro=</table>
{{#ask:[[Category:PolicyIntervention]][[HasThemeItem::{{PAGENAME}}]]
|limit=100
  |mainlabel=Policy intervention
}}
  |?HasDescription= Description
}}
  |?HasComponent=Component
{{#ifeq:
  |sort=HasComponent
{{#ask:[[Category:PolicyIntervention]][[HasThemeItem::{{PAGENAME}}]]|format=count}}
  |format=template
|0|
  |userparam=3col
|<h3>Associated policy interventions, their components and the affected components</h3>
  |template=TableStandardRowTemplate
{{TableIntroTemplate|15%|Policy intervention|45%|Description|20%|Implemented in|20%|Affects component}}
  |intro={{TableIntroTemplate|20%|Policy intervention|60%|Description|20%|Component}}
{{#arraymap:
  |outro=</table>
{{#ask:[[Category:PolicyIntervention]][[HasThemeItem::{{PAGENAME}}]]
  |limit=1500
|link=none
}}
|format=list
}}
|sep=;
}}
|;|zz
|<tr class="StandardTableRow"><td class="StandardTableCell">[[zz]]</td>
<td class="StandardTableCell">{{#show:zz |?HasDescription}}</td>
<td class="StandardTableCell">
{{#ask:[[zz]]
|mainlabel=-
|?HasComponent=
|format=ul
}}</td>
<td class="StandardTableCell">
{{#ask:<q>[[HasEffect::zz]]</q>
|mainlabel=-
|? hasEffectOnComponent=
|format=ul
}}</td>
</tr>
|}}
</table>
}}
|}}
 


[[Category:ThemeItem]]
[[Category:ThemeItem]]
</includeonly>
</includeonly>

Revision as of 13:05, 19 March 2014

This is the "ThemeItemTemplate" template. It will show the themes belonging to each Policy question and Policy intervention It should be called in the following format:

{{ThemeItemTemplate
|=
}}

Edit the page to see the template text.