Difference between revisions of "Template:Ask/Main"

From Wikispooks
Jump to navigation Jump to search
(test)
 
(test)
Line 1: Line 1:
 
<noinclude>Usage:<br/>
 
<noinclude>Usage:<br/>
<nowiki>
+
<poem><nowiki>
 
{{ask
 
{{ask
 
|expr= [[Constitutes::{{PAGENAME}}]] OR [[DocType::{{PAGENAME}}]] OR [[DocType::{{Uncapitalize|{{PAGENAME}}}}]]
 
|expr= [[Constitutes::{{PAGENAME}}]] OR [[DocType::{{PAGENAME}}]] OR [[DocType::{{Uncapitalize|{{PAGENAME}}}}]]
 
|mainlabel=Example
 
|mainlabel=Example
 
|format=table
 
|format=table
|columns={{#arraymaptemplate:{{#show: {{PAGENAME}}|?Has key properties}}|AskItem|, |/}}
+
|properties=Started/ON has cause/Has cause/Description
}}</nowiki></noinclude><includeonly>
+
|headers=Date/Attributed to/Perpetrator(s)/Description
{{{columns}}}
+
}}</nowiki></poem></noinclude><includeonly>
 +
{{#if: {{#titleparts: {{{properties}}} | 4 }}|
 +
{{#ask: {{{expr}}} |mainlabel={{{mainlabel|}}}|format=table
 +
|?{{#titleparts: {{{properties}}}|1|1}}={{#titleparts: {{{headers}}}|1|1}}
 +
|?{{#titleparts: {{{properties}}}|1|2}}={{#titleparts: {{{headers}}}|1|2}}
 +
|?{{#titleparts: {{{properties}}}|1|3}}={{#titleparts: {{{headers}}}|1|3}}
 +
|?{{#titleparts: {{{properties}}}|1|4}}={{#titleparts: {{{headers}}}|1|4}}
 +
}}|
 +
{{#ask: {{{expr}}} |mainlabel={{{mainlabel|}}}|format=table
 +
|?{{#titleparts: {{{properties}}}|1|1}}={{#titleparts: {{{headers}}}|1|1}}
 +
|?{{#titleparts: {{{properties}}}|1|2}}={{#titleparts: {{{headers}}}|1|2}}
 +
|?{{#titleparts: {{{properties}}}|1|3}}={{#titleparts: {{{headers}}}|1|3}}
 +
}}
 +
}}
 
</includeonly>
 
</includeonly>

Revision as of 15:54, 31 December 2013

Usage:


{{ask
|expr= [[Constitutes::{{PAGENAME}}]] OR [[DocType::{{PAGENAME}}]] OR [[DocType::{{Uncapitalize|{{PAGENAME}}}}]]
|mainlabel=Example
|format=table
|properties=Started/ON has cause/Has cause/Description
|headers=Date/Attributed to/Perpetrator(s)/Description
}}