Difference between revisions of "Template:Only Category"

From AquaPedia Case Study Database
Jump to: navigation, search
Line 13: Line 13:
 
Matching String: Category:{{{Only Category|}}}  
 
Matching String: Category:{{{Only Category|}}}  
  
{{#ifeq: {{#show: {{PAGENAME}} | ?Category | link=none}} | Category:{{{Only Category|}}} | [[Category:{{{Only Category|}}}]] |  
+
{{#ifeq: {{#show: {{PAGENAME}} | ?Category | link=none}} | Category:{{{Only Category|}}} | Matched, no change [[Category:{{{Only Category|}}}]] |  
   {{#if: {{#show: {{PAGENAME}} | ?Category | link=none}} | | [[Category:{{{Only Category|}}}]]}}}}
+
   {{#if: {{#show: {{PAGENAME}} | ?Category | link=none}} | Already filled, no change | Was blank, now [[Category:{{{Only Category|}}}]]}}}}
  
 
After Category: {{#show: {{PAGENAME}} | ?Category | format=list| link=none}}  
 
After Category: {{#show: {{PAGENAME}} | ?Category | format=list| link=none}}  
 
</includeonly>
 
</includeonly>

Revision as of 09:56, 2 May 2012

This is the "Only Category" template. It should be called in the following format:

{{Only Category
|Only Category=
}}

Edit the page to see the template text.