Difference between revisions of "Template:ConceptContains"

From ChatWars Wiki
Jump to: navigation, search
Line 1: Line 1:
{{#vardefine: item | {{{#userparam|}}} }} {{#vardefine: matchSearchResult | {{#ask: [[{{{1}}}]]
+
{{#vardefine: item | {{{#userparam|}}} }} {{#if: {{#pos: {{{1}}} | Set }}
                                    |format=template
+
                                            | {{#vardefine: matchSearchResult
                                    |template=CheckPagesForMatch
+
                                                | {{#ask: [[{{{1}}}]]
                                    |sep=<nowiki> </nowiki>or <nowiki> </nowiki>
+
                                                    |format=template
                                    |link=none
+
                                                    |template=CheckPagesForMatch
                                    |userparam={{#var: item}}
+
                                                    |sep=<nowiki> </nowiki>or <nowiki> </nowiki>
                                    |?{{PAGENAME}}
+
                                                    |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