ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.
Template:Categ: Difference between revisions
Jump to navigation
Jump to search
m And another... |
Updating... cross your fingers |
||
Line 1: | Line 1: | ||
<includeonly>[[:Category:{{{1}}} Flags|{{{2|{{{1}}}}}}]] [[Category:{{{1}}} Flags]] </includeonly> <noinclude>This template turns the text into a category link and adds the page to that category. Intented to be used inside Flag template to autolink the page to certain subsets of [[:Category:INI_Flags]]. Usage:<pre>{{Categ|Example}}</pre> will create a link to <tt>Category:Example_Flags</tt> titled <tt>Example</tt> and add the page to that category. <pre>{{Categ|Example|SmartName}}</pre> will create a link to <tt>Category:Example_Flags</tt> titled <tt>SmartName</tt> and add the page to that category. </noinclude> | <includeonly>{{#ifexist:Category:{{{1}}} Flags|[[:Category:{{{1}}} Flags|{{{2|{{{1}}}}}}]] [[Category:{{{1}}} Flags]]|[[:Category:{{#sub:{{{1}}}|0|-1}} Flags|{{{2|{{{1}}}}}}]] [[Category:{{#sub:{{{1}}}|0|-1}} Flags]]}}</includeonly> <noinclude>This template turns the text into a category link and adds the page to that category. Intented to be used inside Flag template to autolink the page to certain subsets of [[:Category:INI_Flags]]. Usage:<pre>{{Categ|Example}}</pre> will create a link to <tt>Category:Example_Flags</tt> titled <tt>Example</tt> and add the page to that category. <pre>{{Categ|Example|SmartName}}</pre> will create a link to <tt>Category:Example_Flags</tt> titled <tt>SmartName</tt> and add the page to that category. </noinclude> |
Revision as of 05:34, 10 April 2008
This template turns the text into a category link and adds the page to that category. Intented to be used inside Flag template to autolink the page to certain subsets of Category:INI_Flags. Usage:
{{Categ|Example}}
will create a link to Category:Example_Flags titled Example and add the page to that category.
{{Categ|Example|SmartName}}
will create a link to Category:Example_Flags titled SmartName and add the page to that category.