Difference between revisions of "Template:Only Category"

From AquaPedia Case Study Database
Jump to: navigation, search
 
(18 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>
+
</noinclude><includeonly><!--
Before Category(show): {{#show: {{PAGENAME}} | ?Category |link=none}}
+
Before Category(#show): {{#show: {{PAGENAME}} | ?Category |link=none}}<br />
 
+
Matching String: Category:{{{Only Category|}}}  
Before Category(show): {{#ask: [[{{PAGENAME}}]] | ?Category = | format=list | link=none | headers=hide}}
+
-->
 
+
{{#ifeq: {{#show: {{PAGENAME}} | ?Category | link=none}} | Category:{{{Only Category|}}} | <!--Matched!-->[[Category:{{{Only Category|}}}]] |  
Matching String: {{{Only Category|}}}
+
   {{#if: {{#show: {{PAGENAME}} | ?Category | link=none}} | <!--Mismatched!--> |<!--Was blank: -->[[Category:{{{Only Category|}}}]]}}}}
 
+
<!--
{{#ifeq: {{#show: {{PAGENAME}} | ?Category | format=list| link=none}} | {{{Only Category|}}} | Matched![[Category:{{{Only Category|}}}]] |  
+
After Category: {{#show: {{PAGENAME}} | ?Category | link=none}} -->
   {{#if: {{#show: {{PAGENAME}} | ?Category | format=list| link=none}} | Mismatched! | Was Blank[[Category:{{{Only Category|}}}]]}}}}
+
 
+
After Category: {{#show: {{PAGENAME}} | ?Category | format=list| link=none}}
+
 
</includeonly>
 
</includeonly>

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