Template talk:User instrument

From Wikipedia, the free encyclopedia

This template and Template:User instrument-gen make it easier to create user-page Babel templates for instruments under Category:User instruments. This one is for the specific-level templates, e.g. Template:User org-1.

Contents

[edit] Usage

Simply put the following in your level-specific templates:

{{subst:user instrument|
|instrument-code = Babel code
|instrument-cat-code = Category code (e.g. piano for [[Category:User piano]])
|ist = Word referring to someone who plays this instrument (e.g. pianist)
|level = Babel skill level
}}

[edit] Suggested change

Here is my suggested change for improving this template as per the ongoing shifts in userbox policy. Basically, the categories are entirely unnecessary and should be gotten rid of. Then, once this change is implemented the user instrument meta-template can be subst'ed into the templates that are linking to it according to WP:AMT.

{{user instrument/{{{level}}}|
|instrument-code = {{{instrument-code}}}
|instrument-cat-code = {{{instrument-cat-code}}}
|desc-pre=This user is|desc-post='''[[{{{instrument-cat-code}}}|{{{ist}}}]]'''.}}

--Cyde Weys 22:49, 19 February 2006 (UTC)

[edit] Suggested change per Wikipedia:User categories for discussion/Archive/October 2006#Instruments

{{user instrument/{{{level}}}|
|instrument-code = {{{instrument-code}}}
|instrument-cat-code = {{{instrument-cat-code}}}
|desc-pre=This user is|desc-post='''[[:Category:Wikipedian {{{ist}}}s|{{{ist}}}]]'''.}}
<includeonly><includeonly>[[Category:Wikipedian {{{ist}}}s|{{PAGENAME}}]]
[[Category:User {{{instrument-cat-code}}}-{{{level}}}|{{PAGENAME}}]]</includeonly></includeonly>

Don't edit it yet, because some categories won't have the name discussed in that nomination. The change can now be made. TimBentley (talk) 03:56, 30 October 2006 (UTC)

I've now changed all the (instrument)-(level) templates to the correct -ist name from the nomination, and created all the new categories. So please implement this coding change right away, and we'll see what moves and what doesn't.--Mike Selinker 20:57, 30 October 2006 (UTC)

[edit] Why not add link to instrument article?

{{user instrument/{{{level}}}|
|instrument-code = [[{{{instrument-cat-code}}}|{{{instrument-code}}}]]
|instrument-cat-code = {{{instrument-cat-code}}}
|desc-pre=This user is|desc-post='''[[:Category:Wikipedian {{{ist}}}s|{{{ist}}}]]'''.}}
<includeonly><includeonly>[[Category:Wikipedian {{{ist}}}s|{{PAGENAME}}]]
[[Category:User {{{instrument-cat-code}}}-{{{level}}}|{{PAGENAME}}]]</includeonly></includeonly>

why not do it like this so that it links to the instrument article?Me... 09:02, 12 November 2006 (UTC)