Many thanks to our Patrons who cover ~2/3 of our hosting bill. Please join them if you can.
Difference between revisions of "Template:Ask/Main"
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 | ||
− | | | + | |properties=Started/ON has cause/Has cause/Description |
− | }} | + | |headers=Date/Attributed to/Perpetrator(s)/Description |
− | {{{ | + | }}</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
}}