Difference between revisions of "Template:Set category"
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}}}|{{PAGENAME}}]]</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.