Difference between revisions of "Template:Set category"

From SNIC Documentation
Jump to: navigation, search
(Created page with "<noinclude> Register a category for a page and store the fullname of the category page as a named property. Usage: <nowiki>{{</nowiki>set category|''property name''|''category n...")
 
Line 6: Line 6:
 
The property link text will be ''category name'' but can be changed using ''alias''. Set ''quiet'' to true (or anything at all) to not generate a clickable property link.
 
The property link text will be ''category name'' but can be changed using ''alias''. Set ''quiet'' to true (or anything at all) to not generate a clickable property link.
  
</noinclude><includeonly>{{#if:{{{quiet|}}}|{{#set:{{{1}}}=Category:{{{2}}}}}|[[{{{1}}}::Category:{{ucfirst:{{{2}}}}}|{{{alias|{{ucfirst:{{{2}}}}}}}}]]}}[[Category:{{{2}}}]]</includeonly>
+
</noinclude><includeonly>{{#if:{{{quiet|}}}|{{#set:{{{1}}}=Category:{{{2}}}}}|[[{{{1}}}::Category:{{ucfirst:{{{2}}}}}|{{{alias|{{ucfirst:{{{2}}}}}}}}]]}}[[Category:{{{2}}}|{{PAGENAME}}]]</includeonly>

Revision as of 20:26, 7 July 2011

Register a category for a page and store the fullname of the category page as a named property.

Usage: {{set category|property name|category name|[quiet=]|[alias=]}}

The property link text will be category name but can be changed using alias. Set quiet to true (or anything at all) to not generate a clickable property link.