Difference between revisions of "Template:ConceptContains"

From ChatWars Wiki
Jump to: navigation, search
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine: matchSearchResult | {{#ask: [[{{{1}}}]]
+
{{#vardefine: item | {{{#userparam|}}} }} {{#vardefine: matchSearchResult|}} {{#if: {{#pos: {{{1|}}} | Set }}
                                    |format=template
+
                                            | {{#vardefine: matchSearchResult
                                    |template=CheckPagesForMatch
+
                                                | {{#ask: [[{{{1}}}]]
                                    |sep=<nowiki> </nowiki>or<nowiki> </nowiki>
+
                                                    |format=template
                                    |link=none
+
                                                    |template=CheckPagesForMatch
                                    |?{{PAGENAME}}
+
                                                    |sep=<nowiki> </nowiki>or <nowiki> </nowiki>
                                  }}
+
                                                    |link=none
}}
+
                                                    |userparam={{#var: item}}
<includeonly>
+
                                                    |?{{PAGENAME}}
{{{1}}}   [[{{{1}}}]]
+
                                                  }}
 +
                                              }}
 +
                                          }}<includeonly><!--
 +
-->{{#if: {{#pos: {{{1|}}}|#_QUERY}} | | {{#ifexpr: {{RemoveSMWTags|string={{#var: matchSearchResult}} }}
 +
                                          | [[{{#sub: {{{1|}}} |8 }}]]
 +
                                        }}
 +
  }}<!--
 +
--></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]]
  
{{#ifexpr: {{#sub: {{#var: matchSearchResult}} |0 |-1 }}
+
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
  | [[{{{1}}}]]
 
  | ded
 
}}
 
match search result string: "{{#sub: {{#var: matchSearchResult}} |0 |-1 }}"
 
</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]]
 
 
[[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