Template talk:attention

Definition from Wiktionary, the free dictionary
Jump to: navigation, search

when a page needs attention by someone versed in a particular field[edit]

See current discussion in the Grease pit.—msh210 17:35, 20 March 2009 (UTC)

Never mind: don't see it: instead see the template's documentation, above, which is an implementation of that Grease pit discussion.—msh210 22:42, 1 April 2009 (UTC)

visible on the page[edit]

See current discussion in the Grease pit.​—msh210 17:10, 16 February 2010 (UTC)

Never mind: don't see it: instead see the template's documentation, above, which is an implementation of that Grease pit discussion.​—msh210 19:28, 19 February 2010 (UTC)

Calling templates in templates[edit]

TK archive icon.svg

The following discussion has been moved from User talk:Msh210.

This discussion is no longer live and is left here as an archive. Please do not modify this conversation, though feel free to discuss its conclusions.


You might want to look at the version of overage you left. By calling a template inside the null parameter of {{attention}}, you confused MW somehow, and left some plain-text html code in the ety. I've fixed it, but I thought you'd like to know. -Atelaes λάλει ἐμοί 03:03, 18 June 2010 (UTC)

Thanks for the heads-up.​—msh210 16:58, 18 June 2010 (UTC)
Technical details: the problem is that (1) {{prefix}} evaluates to wikitext that includes HTML tags, and (2) due to a fairly recent change, the second parameter of {{attention}} is no longer totally null, but rather, it ends up in an HTML title="" attribute. (Overall, it was a good and useful change IMHO; this is the first time I've encountered/heard of a drawback.) The result is that {{attention|en|{{prefix|over|age}}?}} now evaluates to the wikitext [[Category:English words needing attention|overage]]<span id="attentionseekingen" class="attentionseeking" lang="en" title="<span class="mention-Latn">[[over-|over-]]</span> +‎ <span class="mention-Latn">[[age|age]]</span>[[Category:English words prefixed with over-]]?"></span>, which MediaWiki understandably gets confused by. I've addressed this by wrapping the parameter in <nowiki> tags. —RuakhTALK 17:32, 18 June 2010 (UTC)
Thanks. I suppose attention could use {{{2}}} iff {{isValidPageName|{{{2}}}}}. Would that work?​—msh210 17:36, 18 June 2010 (UTC)
*tests a bit* Yes, that would work. But it's a trade-off: it means that {{attention|en|{{prefix|over|age}}?}} would no longer break horribly, but it also means that {{attention|en|<nowiki>{{prefix|over|age}}</nowiki>?}} would no longer display the title. And it wouldn't fix issues with double-quotes in the parameter. All told, I don't feel strongly one way or the other. —RuakhTALK 19:18, 18 June 2010 (UTC)
I'll leave it for now. Thanks, gentlemen.​—msh210 19:41, 18 June 2010 (UTC)


Category name[edit]

I'd like to change the categories created by this template to use "terms" in the title rather than "words". Many entry titles in the categories have a space so the more general "terms" seems better. --Bequw τ 19:04, 20 July 2010 (UTC)

Note that other templates so categorize also: you'd need to change them, too.​—msh210 (talk) 15:08, 21 July 2010 (UTC)
Changed. I'm just waiting for the categories to resettle, before I make sure all the old ones in Category:Words needing attention by language can be deleted. --Bequw τ 18:31, 16 September 2010 (UTC)

Moving <span> before category.[edit]

Currently, the template puts the [[Category:... terms needing attention]] part before the <span> part. I'd like to suggest that we re-order them, and put the <span> first. The difference is that wikitext like this:

# definition
#: ''example sentence''

<span id="..." ...>...</span>[[Category:...]]

puts the <span> in a separate paragraph (<p>), whereas wikitext like this:

# definition
#: ''example sentence''

[[Category:...]]<span id="..." ...>...</span>

appends the <span> to the end of the example sentence (or whatever else is there — a definition, a quotation, anything).

RuakhTALK 00:20, 2 July 2012 (UTC)

  1. Are you sure? Special:expandtemplates (using the code :foo followed immediately by a copypaste of the transclusible part of the template, or by that copypaste with the categorization stuff switched with the span) isn't showing me that difference. (Both ways situate the span at the end of the usex AFAICT.)
  2. If you're right that the way we have it makes a new paragraph and the way you want to switch it to leaves the span on the usex to which the attention tag was applied, then why switch it? Seems appropriate to leave the span attached to the usex to which the attention tag was appended.)
​—msh210 (talk) 16:59, 2 July 2012 (UTC)
I think we must be miscommunicating. Take a look at http://en.wiktionary.org/wiki/title=%D7%97%D7%97%D7%97?oldid=17032924&action=edit; as you can see, an editor has requested that the entry receive attention from a Hebrew-speaker. Now take a look at http://en.wiktionary.org/wiki/title=%D7%97%D7%97%D7%97?oldid=17032924; as you can see, it looks as if the editor had requested that the translation of the quotation receive attention from a Hebrew-speaker. (Maybe my above comment shows up differently in your browser from how I intended it to? In my browser, my sample wikitext shows the spans/cats as being on a separate line from the example-sentence, but your comment makes it sound like you're not seeing those line-breaks?) —RuakhTALK 18:00, 2 July 2012 (UTC)
My brain was at fault, not my browser. I understand now, and support the change.​—msh210 (talk) 18:25, 2 July 2012 (UTC)
  • Yes check.svg DoneRuakhTALK 14:00, 9 July 2012 (UTC)

Why do things so insanely complicated?[edit]

Why isn't it so that if someone (e.g. an administrator) marks a new user's submission with the attention tag. this gets automatically added to Category:....<type of word>s needing attention and this category also appears in the entry of the word itself? This would be a way simpler way to do than this CSS kludgery...To make myself clear again: this category never appears in the entry itself. Must be purpose, although it would not hurt if the category got auto-added. -andy 77.7.105.41 20:56, 26 July 2013 (UTC)

If you wish to see what "hidden categories" a page belongs to, you can create an account, visit Special:Preferences#mw-prefsection-rendering, and enable the "Show hidden categories" option. As for "this CSS kludgery", the purpose of that is to mark the position in the entry where the attention is requested. (This is important for large pages when the request is applicable only to a small part, e.g. to a word mentioned in an etymology section.) —RuakhTALK 04:21, 27 July 2013 (UTC)