Difference between revisions of "Template:Test Search"

From AquaPedia Case Study Database
Jump to: navigation, search
 
(6 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>
Matching 'Country: Title':
+
Matching <nowiki>[[Country::</nowiki>{{{Country|}}}]]:
{{#ask: [[Country::{{{Title|}}}]]   
+
{{#ask: [[Country::{{{Country|}}}]]   
 
  | ?Category
 
  | ?Category
 
  | ?Country
 
  | ?Country
Line 18: Line 18:
  
 
Matching NSPD:
 
Matching NSPD:
{{#ask: {{#arraymap:{{{NSPD|}}}|,|x|[[NSPD::x]]}}  
+
{{#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
 +
| ?Country
 
}}
 
}}
  
 
</includeonly>
 
</includeonly>

Latest revision as of 12: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.