Difference between revisions of "Template:ComponentTemplate2"

From IMAGE
Jump to: navigation, search
Line 14: Line 14:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#ifeq:{{{LeadText|}}}|||[[HasLeadText::{{{LeadText|}}}| ]]
+
{{#ifeq:{{{LeadText|}}}||__TOC__{{#ask:[[Category:PolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
__TOC__}}
+
|mainlabel=-
 +
|?HasDescription=
 +
|format=ul
 +
|intro='''Key policy questions are:'''
 +
}}|[[HasLeadText::{{{LeadText|}}}| ]]
 +
__TOC__{{#ask:[[Category:PolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
 +
|mainlabel=-
 +
|?HasDescription=
 +
|format=ul
 +
|intro='''Key policy questions are:'''
 +
}}
 +
}}
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
{{StatusWarning|Status={{{Status|}}} }}{{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}|
 
{{StatusWarning|Status={{{Status|}}} }}{{#ifexpr:{{InfoboxTestTemplate|basepage={{#titleparts: {{PAGENAME}}|1}}|subpage={{#titleparts: {{PAGENAME}}|1|2}} }}|
Line 59: Line 70:
 
</div>
 
</div>
 
|}}
 
|}}
{{#ifeq:{{{Description|}}}||
+
{{#ifeq:{{{Description|}}}|||<h2>Introduction</h2>
{{#ask:[[Category:PolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
 
|mainlabel=-
 
|?HasDescription=
 
|format=ul
 
|intro='''Key policy questions are:'''
 
}}|
 
{{#ask:[[Category:PolicyQuestion]][[PQBelongsToComponent::{{PAGENAME}}]]
 
|mainlabel=-
 
|?HasDescription=
 
|format=ul
 
|intro='''Key policy questions are:'''
 
}}
 
<h2>Introduction</h2>
 
 
{{#ask:[[Category:Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
 
{{#ask:[[Category:Icon]][[BelongsToComponent::{{#titleparts: {{PAGENAME}}|1}}]]
 
|mainlabel=pagina
 
|mainlabel=pagina

Revision as of 14:48, 26 July 2013

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

{{ComponentTemplate2
|Application=
|IMAGEComponent=
|ExternalModel=
|KeyReference=
|Reference=
|Description=
}}

Edit the page to see the template text.