Template:PropertyTestTemplate: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Oostenrijr (talk | contribs) No edit summary |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is the "testPropertyTemplate" template. returns true (<> 0) if page has property | This is the "testPropertyTemplate" template. returns true (<> 0) if page has property . reverse is optional and should be used as reverse=1 for reversed properties | ||
It should be called in the following format: | It should be called in the following format: | ||
<pre> | <pre> | ||
| Line 9: | Line 9: | ||
}} | }} | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly> | </noinclude><includeonly><!-- | ||
{{#ifeq:{{{reverse|}}}| | -->{{#ifeq:{{{reverse|}}}|1 | ||
|{{#ask:[[{{{prop|}}}::{{{page|}}}]]|format=count}} | |{{#ask:[[{{{prop|}}}::{{{page|}}}]]|format=count}} | ||
|{{#ask:[[-{{{prop|}}}::{{{page|}}}]]|format=count}} | |{{#ask:[[-{{{prop|}}}::{{{page|}}}]]|format=count}} }}<!-- | ||
}} | --></includeonly> | ||
</includeonly> | |||
Latest revision as of 11:05, 11 May 2016
This is the "testPropertyTemplate" template. returns true (<> 0) if page has property . reverse is optional and should be used as reverse=1 for reversed properties It should be called in the following format:
{{PropertyTestTemplate
|prop=
|page=
|reverse=
}}
Edit the page to see the template text.