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...")
 
 
(One intermediate revision by the same user not shown)
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><onlyinclude>{{#if:{{{quiet|}}}|{{#set:{{{1}}}=Category:{{{2}}}}}|[[{{{1}}}::Category:{{ucfirst:{{{2}}}}}|{{{alias|{{ucfirst:{{{2}}}}}}}}]]}}[[Category:{{{2}}}|{{PAGENAME}}]]</onlyinclude></includeonly>

Latest 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.