Difference between revisions of "Template:Test Search"

From AquaPedia Case Study Database
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
{{Test Search
 
{{Test Search
 
|NSPD=
 
|NSPD=
|Title=
+
|Country=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#ask: [[Country:{{{Title|}}}]]   
+
Matching <nowiki>[[Country::</nowiki>{{{Country|}}}]]:
 +
{{#ask: [[Country::{{{Country|}}}]]   
 
  | ?Category
 
  | ?Category
 
  | ?Country
 
  | ?Country
 
  | ?NSPD
 
  | ?NSPD
| format=ul
 
 
}}
 
}}
  
{{#ask: {{#arraymap:{{{NSPD|}}}|,|x|[[NSPD::x]]}}  
+
Matching NSPD:
 +
{{#ask: {{if: {{#arraymap:{{{NSPD|}}}|,|x|[[NSPD::x]]}} | * |  {{#arraymap:{{{NSPD|}}}|,|x|[[NSPD::x]]}}}}
 
  | ?Category
 
  | ?Category
 +
| ?NSPD
 
  | ?Country
 
  | ?Country
 +
}}
 +
 +
Matching Both:
 +
{{#ask: [[Country::{{{Country|}}}]] {{#arraymap:{{{NSPD|}}}|,|x|[[NSPD::x]]}}
 +
| ?Category
 
  | ?NSPD
 
  | ?NSPD
  | format=ul
+
  | ?Country
 
}}
 
}}
  
 
</includeonly>
 
</includeonly>

Latest revision as of 13:56, 9 May 2012

This is the "Test Search" template. It should be called in the following format:

{{Test Search
|NSPD=
|Country=
}}

Edit the page to see the template text.