Template:PropertyTestTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
}} | }} | ||
</pre> | </pre> | ||
reverse is optional and should be used as reversed=1 for reversed properties | |||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{{# | {{#ifexpr:{{{reverse|}}}=1 | ||
|{{#ask:[[{{{prop|}}}::{{{page|}}}]]|format=count}} | |{{#ask:[[{{{prop|}}}::{{{page|}}}]]|format=count}} | ||
|{{#ask:[[-{{{prop|}}}::{{{page|}}}]]|format=count}} | |{{#ask:[[-{{{prop|}}}::{{{page|}}}]]|format=count}} | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
Revision as of 12:39, 1 November 2013
This is the "testPropertyTemplate" template. returns true (<> 0) if page has property It should be called in the following format:
{{PropertyTestTemplate
|prop=
|page=
|reverse=
}}
reverse is optional and should be used as reversed=1 for reversed properties Edit the page to see the template text.