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> | ||
− | Before Category(show): {{#show: {{PAGENAME}} | ?Category |link=none | + | Before Category(#show): {{#show: {{PAGENAME}} | ?Category |link=none}} |
− | + | ||
− | + | ||
Matching String: Category:{{{Only Category|}}} | Matching String: Category:{{{Only Category|}}} | ||
{{#ifeq: {{#show: {{PAGENAME}} | ?Category | link=none}} | Category:{{{Only Category|}}} | Matched![[Category:{{{Only Category|}}}]] | | {{#ifeq: {{#show: {{PAGENAME}} | ?Category | link=none}} | Category:{{{Only Category|}}} | Matched![[Category:{{{Only Category|}}}]] | | ||
− | {{#if: {{#show: {{PAGENAME}} | ?Category | link=none}} | Mismatched! | Was Blank, now [[Category:{{{Only Category|}}}]]}}}} | + | {{#if: {{#show: {{PAGENAME}} | ?Category | link=none}} | Mismatched! [[Category:{{{Only Category|}}}]] | 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 16:14, 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.