Difference between revisions of "Template:ConceptContains"

From ChatWars Wiki
Jump to: navigation, search
 
(44 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
{{#vardefine: item | {{{#userparam|}}} }} {{#vardefine: matchSearchResult|}} {{#if: {{#pos: {{{1|}}} | Set }}
{{#ifexpr: {{#expr: {{#ask: [[{{{1}}}]]
+
                                            | {{#vardefine: matchSearchResult
            |format=template
+
                                                | {{#ask: [[{{{1}}}]]
            |template=CheckPagesForMatch
+
                                                    |format=template
            |sep=<nowiki> </nowiki>or<nowiki> </nowiki>
+
                                                    |template=CheckPagesForMatch
            |link=none
+
                                                    |sep=<nowiki> </nowiki>or <nowiki> </nowiki>
            |?{{PAGENAME}}
+
                                                    |link=none
          }} }}
+
                                                    |userparam={{#var: item}}
  | {{{1}}} }}
+
                                                    |?{{PAGENAME}}
abc: {{#ask: [[{{{1}}}]]
+
                                                  }}
            |format=template
+
                                              }}
            |template=CheckPagesForMatch
+
                                          }}<includeonly><!--
            |sep=<nowiki> </nowiki>or<nowiki> </nowiki>
+
-->{{#if: {{#pos: {{{1|}}}|#_QUERY}} | | {{#ifexpr: {{RemoveSMWTags|string={{#var: matchSearchResult}} }}
            |link=none
+
                                          | [[{{#sub: {{{1|}}} |8 }}]]
            |?{{PAGENAME}}
+
                                        }}
          }}
+
  }}<!--
</includeonly>
+
--></includeonly><!--
 +
--><noinclude>
 +
This template searches through a Concept and checks if the parameter page (default to <nowiki>{{PAGENAME}}</nowiki>) is contained within that concept. Designed to be used by [[Template:ItemSet]]
  
<noinclude>
+
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
This template searches through a Concept and checks if the parameter page (default to <nowiki>{{PAGENAME}}</nowiki>) is contained within that concept. Designed to be used by [[Template:ItemSet]]
 
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

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