Difference between revisions of "Template talk:Userbox"
m (Category) |
m (Substituting my old signature so it can be safely deleted.) |
||
Line 3: | Line 3: | ||
This template supports categories, but it could be edited to defaultly make the template itself a part of that category, and more importantly, be the base (begin with a space) page in that category. The code would look something like:<br> | This template supports categories, but it could be edited to defaultly make the template itself a part of that category, and more importantly, be the base (begin with a space) page in that category. The code would look something like:<br> | ||
<code><nowiki>{{#ifeq:{{NAMESPACE}} | Template | {{#if: {{{category|}}}|[[Category:Userbox templates|{{PAGENAME}}{{!}} ]]}}}}</includeonly></nowiki></code> | <code><nowiki>{{#ifeq:{{NAMESPACE}} | Template | {{#if: {{{category|}}}|[[Category:Userbox templates|{{PAGENAME}}{{!}} ]]}}}}</includeonly></nowiki></code> | ||
− | <br>It might be easily merged with one of the other similar lines, I don't quite know how. Any ideas? | + | <br>It might be easily merged with one of the other similar lines, I don't quite know how. Any ideas? [[User:Darkid|<span style="color:#7E7355">Darkid</span>]] ([[User talk:Darkid|<span style="color:#3F56AD">Talk</span>]] | [[Special:Contributions/Darkid|<span style="color:#CC2200">contribs</span>]]) 16:34, 13 June 2012 (PDT) |
+ | Edit: This was shot down, as the template would then be a part of the category incorrectly ({{tl|Unusual owner}} does not own an unusual). [[User:Darkid|<span style="color:red">Darkid</span>]] ([[Image:Item icon Capo's Capper.png|21px|link=User_talk:Darkid|alt=talk]]|[[Image:Item icon Blighted Beak.png|21px|link=Special:Contributions/Darkid|alt=contribs]]) 15:11, 25 November 2012 (PST) |
Latest revision as of 23:11, 25 November 2012
Category
This template supports categories, but it could be edited to defaultly make the template itself a part of that category, and more importantly, be the base (begin with a space) page in that category. The code would look something like:
{{#ifeq:{{NAMESPACE}} | Template | {{#if: {{{category|}}}|[[Category:Userbox templates|{{PAGENAME}}{{!}} ]]}}}}</includeonly>
It might be easily merged with one of the other similar lines, I don't quite know how. Any ideas? Darkid (Talk | contribs) 16:34, 13 June 2012 (PDT)
Edit: This was shot down, as the template would then be a part of the category incorrectly ({{Unusual owner}}
does not own an unusual). Darkid (|) 15:11, 25 November 2012 (PST)