Difference between revisions of "Template:ConceptContains"

From ChatWars Wiki
Jump to: navigation, search
 
Line 11: Line 11:
 
                                               }}
 
                                               }}
 
                                           }}<includeonly><!--
 
                                           }}<includeonly><!--
--><br><br>concept: {{{1|}}}<br>check against: {{#var: item}}<br>matchSearchResult: {{#var: matchSearchResult}}<br>result of query: {{#if: {{#pos: {{{1|}}}|#_QUERY}} | | {{#ifexpr: {{RemoveSMWTags|string={{#var: matchSearchResult}} }}
+
-->{{#if: {{#pos: {{{1|}}}|#_QUERY}} | | {{#ifexpr: {{RemoveSMWTags|string={{#var: matchSearchResult}} }}
 
                                           | [[{{#sub: {{{1|}}} |8 }}]]
 
                                           | [[{{#sub: {{{1|}}} |8 }}]]
 
                                         }}
 
                                         }}

Latest revision as of 18:34, 12 May 2019

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

NOTE: This template searches only through Concepts that contain the string "Set" (for item sets) if other concepts are needed (or no check at all) the code needs to be updated