Difference between revisions of "Template:Only Category"
From AquaPedia Case Study Database
Line 9: | Line 9: | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
− | {{#ifeq: {{#show: {{PAGENAME}} | ?Category}} | {{{Only Category|}}} | [[Category:{{{Only Category|}}}]] | | + | {{#ifeq: {{#show: {{PAGENAME}} | ?Category}} | {{{Only Category|}}} | Matched![[Category:{{{Only Category|}}}]] | |
− | {{#if: {{#show: {{PAGENAME}} | ?Category}} | | [[Category:{{{Only Category|}}}]]}}}} | + | {{#if: {{#show: {{PAGENAME}} | ?Category}} | Was Blank | [[Category:{{{Only Category|}}}]]}}}} |
{{#show: {{PAGENAME}} | ?Category}} | {{#show: {{PAGENAME}} | ?Category}} | ||
</includeonly> | </includeonly> |
Revision as of 14:17, 1 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.