Difference between revisions of "Template:ConceptContains"
Line 1: | Line 1: | ||
− | {{#vardefine: item | {{{#userparam|}}} }} {{#vardefine: matchSearchResult | {{#ask: [[{{{1}}}]] | + | {{#vardefine: item | {{{#userparam|}}} }} {{#if: {{#pos: {{{1}}} | Set }} |
− | + | | {{#vardefine: matchSearchResult | |
− | + | | {{#ask: [[{{{1}}}]] | |
− | + | |format=template | |
− | + | |template=CheckPagesForMatch | |
− | + | |sep=<nowiki> </nowiki>or <nowiki> </nowiki> | |
− | + | |link=none | |
− | + | |userparam={{#var: item}} | |
− | }}<includeonly><!-- | + | |?{{PAGENAME}} |
+ | }} | ||
+ | }} | ||
+ | }}<includeonly><!-- | ||
-->{{#if: {{#pos: {{{1}}}|#_QUERY}} | | {{#ifexpr: {{RemoveSMWTags|string={{#var: matchSearchResult}}}} | -->{{#if: {{#pos: {{{1}}}|#_QUERY}} | | {{#ifexpr: {{RemoveSMWTags|string={{#var: matchSearchResult}}}} | ||
| [[{{#sub: {{{1}}} |8 }}]] | | [[{{#sub: {{{1}}} |8 }}]] |
Revision as of 12:15, 27 September 2018
This template searches through a Concept and checks if the parameter page (default to {{PAGENAME}}) is contained within that concept. Designed to be used by Template:ItemSet