2012年5月1日 星期二

Wiktionary - Recent changes [en]: Wiktionary:Grease pit

Wiktionary - Recent changes [en]
Track the most recent changes to the wiki in this feed.
Wiktionary:Grease pit
May 1st 2012, 16:58

Template:t: 2c

← Older revision Revision as of 16:58, 1 May 2012
Line 1,688: Line 1,688:
   
 
I notice that this template doesn't check for the existence/validity of the two mandatory unnamed parameters (that is for the less initiated, {{temp|t|fr|mot}}, fr would be the first, mot would be the second). I recently added to {{temp|IPA}}, {{temp|X-SAMPA}} and {{temp|enPR}} a check to see if <nowiki>{{{1|}}}</nowiki> was provided, this was really successful as it caught about 30 or so main namespace entries that did not actually include a pronunciation. The difference is... these templates are so widely used and often multiple times on the same page, if not dozens of times, or over 100! I wonder if we also want to follow the French Wiktionary and categorize translations using hidden categories. Possibly that's a step too far. In the example above, {{temp|t|fr|mot}} would categorize into [[:Category:Translations into French]] (or whatever title we chose). [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 11:50, 1 May 2012 (UTC)
 
I notice that this template doesn't check for the existence/validity of the two mandatory unnamed parameters (that is for the less initiated, {{temp|t|fr|mot}}, fr would be the first, mot would be the second). I recently added to {{temp|IPA}}, {{temp|X-SAMPA}} and {{temp|enPR}} a check to see if <nowiki>{{{1|}}}</nowiki> was provided, this was really successful as it caught about 30 or so main namespace entries that did not actually include a pronunciation. The difference is... these templates are so widely used and often multiple times on the same page, if not dozens of times, or over 100! I wonder if we also want to follow the French Wiktionary and categorize translations using hidden categories. Possibly that's a step too far. In the example above, {{temp|t|fr|mot}} would categorize into [[:Category:Translations into French]] (or whatever title we chose). [[User:Mglovesfun|Mglovesfun]] ([[User talk:Mglovesfun|talk]]) 11:50, 1 May 2012 (UTC)
  +
:Categorizing entries that have translations into French would certainly be a step too far. I don't see the harm (and see some benefit) in categorizing when missing either or both parameters, though. Also those that are missing the transliteration parameter and are in languages that require it. ''However'', because there can be so many translations on a page, any such tagging should take a visible form (so it can be spotted in the page), not just categorization. I suggest that {{temp|attention}} be used for this purpose (especially because it's customizable by language if <nowiki>{{{1}}}</nowiki> is set), and that anyone who wishes to see the attention-seeking notification on the page follow the instructions at [[template:attention]] to do so. I think that'd be the best way. Code for {{temp|t} could then be as follows:
  +
:#Change <code><nowiki>{{#if:{{{tr|}}}|&nbsp;({{{tr}}})}}</nowiki></code> to <code><nowiki>{{#if:{{{tr|}}}|&nbsp;({{{tr}}})|{{#switch:{{{sc|{{{{{1}}}/script}}}}}|Latn|None=|{{attention|{{{1}}}|id=t-no-tr|needs transliteration in the tr parameter}}}}}}</nowiki></code>
  +
:#Add <code><nowiki>{{#switch:{{{1|}}}{{{2|}}}|{{{1|}}}={{attention|{{{1}}}|id=t-no-2|missing translation}}|{{{2|}}}={{attention|en|no language specified|id=t-no-1}}[[category:Entries with translation template missing language information]]}}</nowiki><code>
  +
or similar.<span class="Unicode">&#x200b;—[[User:Msh210|msh210]]℠</span> ([[user talk:Msh210|talk]]) 16:57, 1 May 2012 (UTC)

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

沒有留言:

張貼留言