Template:PropertyTestTemplate: Difference between revisions

From IMAGE
Jump to navigation Jump to search
No edit summary
(Undo revision 17747 by RinekeOostenrijk (talk))
Line 11: Line 11:
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>
{{#ifeq:{{{reverse|}}}|1|{{#ask:[[-{{{prop|}}}::{{{page|}}}]]|format=count}}  
{{#ifeq:{{{reverse|}}}|1|{{#ask:[[{{{prop|}}}::{{{page|}}}]]|format=count}}
|{{#ask:[[{{{prop|}}}::{{{page|}}}]]|format=count}} }}
|{{#ask:[[-{{{prop|}}}::{{{page|}}}]]|format=count}} }}
</includeonly>
</includeonly>

Revision as of 10:10, 5 March 2014

This is the "testPropertyTemplate" template. returns true (<> 0) if page has property . reverse is optional and should be used as reversed=1 for reversed properties It should be called in the following format:

{{PropertyTestTemplate
|prop=
|page=
|reverse=
}}

Edit the page to see the template text.