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/Trim empty headers"
Jump to navigation
Jump to search
(Created page with "<noinclude>'''Used by Template:Ask to remove any properties which are unused.'''<br/> Used in conjunction with Template:Ask/Trim empty properties.<br/> It takes parame...") |
(fix) |
||
Line 4: | Line 4: | ||
:|expression | :|expression | ||
:|properties | :|properties | ||
− | :|headers</noinclude><includeonly>{{#if: {{#titleparts: {{{properties}}}|1|1}}| {{#ifexpr: {{#ask: {{{expression|}}} AND [[{{#titleparts: {{{ | + | :|headers</noinclude><includeonly>{{#if: {{#titleparts: {{{properties}}}|1|1}}| {{#ifexpr: {{#ask: {{{expression|}}} AND [[{{#titleparts: {{{properties}}}|1|1}}::+]]|format=count}}>0|{{#titleparts: {{{headers}}}|1|1}}/}}}}<!-- |
-->{{#if: {{#titleparts: {{{properties}}}|1|2}}| {{#ifexpr: {{#ask: {{{expression|}}} AND [[{{#titleparts: {{{properties}}}|1|2}}::+]]|format=count}}>0|{{#titleparts: {{{headers}}}|1|2}}/}}}}<!-- | -->{{#if: {{#titleparts: {{{properties}}}|1|2}}| {{#ifexpr: {{#ask: {{{expression|}}} AND [[{{#titleparts: {{{properties}}}|1|2}}::+]]|format=count}}>0|{{#titleparts: {{{headers}}}|1|2}}/}}}}<!-- | ||
-->{{#if: {{#titleparts: {{{properties}}}|1|3}}| {{#ifexpr: {{#ask: {{{expression|}}} AND [[{{#titleparts: {{{properties}}}|1|3}}::+]]|format=count}}>0|{{#titleparts: {{{headers}}}|1|3}}/}}}}<!-- | -->{{#if: {{#titleparts: {{{properties}}}|1|3}}| {{#ifexpr: {{#ask: {{{expression|}}} AND [[{{#titleparts: {{{properties}}}|1|3}}::+]]|format=count}}>0|{{#titleparts: {{{headers}}}|1|3}}/}}}}<!-- |
Latest revision as of 08:18, 8 July 2016
Used by Template:Ask to remove any properties which are unused.
Used in conjunction with Template:Ask/Trim empty properties.
It takes parameters:
- |expression
- |properties
- |headers