Jump to content

Template talk:Commons category-inline

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 92.6.211.228 (talk) at 15:28, 11 May 2012 (→‎Edit request on 3 May 2012: thanks, both of you). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Reverted change

I've reverted the merge because according to AWB, this template is used on 378 pages which I wouldn't describe as a few. Merging this template would impact on the layout on each of these pages and there are instances where this is more appropriate. Adambro (talk) 10:15, 13 January 2008 (UTC)[reply]

agree. I created this as an equivalent to use like {{commons-inline}}, where the full {{commons}} is impractical. If there one template it can be merged with, it's the otehr inline template, NOT the box template. Circeus (talk) 16:08, 14 January 2008 (UTC)[reply]

Click here

Current (226183894)
Proposal 1
Proposal 2
Proposal 3

Currently (226183894), the link to the commons main page and the link to the category look the same. As people most likely look for the first, we could differentiate them as follows:

  1. link Wikimedia Commons instead of Commons:Main Page
  2. bold the link to the category
  3. link Wikimedia Commons instead of Commons:Main Page and bold the link to the category

Personally, I'd go with the first solution. -- User:Docu

Remove period

{{editprotected}}

Remove the period from the non-sentence by finding:

[[Wikimedia Commons]].<noinclude>

Replacing with:

[[Wikimedia Commons]]<noinclude>

Gary King (talk) 06:00, 2 October 2008 (UTC)[reply]

 Done. Not a complete sentence, so doesn't need a period. Huntster (t@c) 11:07, 3 October 2008 (UTC)[reply]

Accessibility fix

{{editprotected}}

As per WP:ALT #When to specify, images that are purely-decorative should not have links, so that they do not bog down screen readers used by visually impaired readers. Please install this sandbox patch to fix the purely-decorative image generated by this template. Thanks. Eubulides (talk) 07:54, 9 August 2009 (UTC)[reply]

Done. Should the alt text itself also be removed? --- RockMFR 23:25, 9 August 2009 (UTC)[reply]
It's not necessary. Actually the MediaWiki software turns that caption into both alt text and title text (the latter used for tooltips); maybe somebody likes the title text. It's not a big deal either way. Eubulides (talk) 23:29, 9 August 2009 (UTC)[reply]

Update to accessibility fix

{{editprotected}} Since the previous comment, the Mediawiki software has been changed so that it now creates an image with an accessibility problem if you don't also specify "|alt=", so that text should be replaced with "|alt=" now. Please see WP:ALT #Purely decorative images for details. I noted the problem when reviewing the featured article candidate Charles L. McNary for alt text problems. Please install this sandbox patch to fix the problem. Eubulides (talk) 20:13, 13 October 2009 (UTC)[reply]

 Done Plastikspork ―Œ(talk) 20:58, 13 October 2009 (UTC)[reply]

Bold link to target.

{{editprotected}}

Bold the link to the target page (the link that takes the reader to the additional media on the article subject).

Currently the link to the target page and the link to Wikimedia Commons are presented equally, which from an information-design point of view "affords" equal access to the two targets, when in all likelihood 90%+ of people want to the see that material related to the article subject rather than learn about Wikimedia Commons or browse it in general. I know I almost clicked on the Wikimedia Commons link by mistake when I came across this template.

(An alternative would be to make the text for "Wikimedia Commons" not be a link at all. In my opinion that link is overlinking and that'd be fine too, instead, and if you want to do that, do that instead (but it'd be slightly more of a major change.)) Herostratus (talk) 18:09, 21 July 2011 (UTC)[reply]

 Done --RL0919 (talk) 05:02, 1 August 2011 (UTC)[reply]
Although the bold link to the target does make it stand out from the link to Commons, it also makes it look unsighlty compared to other external links. Could we please try the alternative, removing the bolding from the target and taking out the link to "Wikimedia Commons"? Beyond My Ken (talk) 13:49, 1 August 2011 (UTC)[reply]
 Done Reaper Eternal (talk) 14:40, 1 August 2011 (UTC)[reply]
Thanks, I'll take a look. Beyond My Ken (talk) 16:24, 1 August 2011 (UTC)[reply]
Much better, IMO. Beyond My Ken (talk) 20:31, 1 August 2011 (UTC)[reply]

Reimplementation

In an effort to standardise the way that sisterlinks are presented inline I've created {{sister-inline}} by analogy to {{sister}}. There's some code in the new sandbox which reimplements this template in that mould. There are a couple of semantic differences:

  • The bullet parameter is gone and the template defaults to no bullet. This is preferable for consistency with other external link templates, though it'll have a minor impact on existing transclusions until they're updated.
  • A new list parameter can be used to pass in a bulleted list of different links if required.

There's a test cases page to play about with. I won't sync for now but plan to in future. Chris Cunningham (user:thumperward) - talk 12:00, 3 October 2011 (UTC)[reply]

I've now synced this from the sandbox. As I say, this will have a minor aesthetic impact on existing transclusions which expect a bullet if they are presented in the middle of a bulleted list; however, the gains in overall consistency and maintainability make this a win overall IMO. Chris Cunningham (user:thumperward) - talk 12:10, 26 October 2011 (UTC)[reply]

Edit request on 3 May 2012

  • Please add a position parameter so it can be displayed on the right (as {{sister-inline}} does ?)
  • Also, please change it so it only displays the linked text like {{commons-inline}} does – not the external link arrow icon

Thanks.

92.6.211.228 (talk) 20:14, 3 May 2012 (UTC)[reply]

I corrected the documentation for {{Sister-inline}}. There is no position parameter even though the documentation said that there was. See {{commons}} which by default displays on the right but can be made to display on the left. Frankly I don't understand why the external link icon is displayed. –droll [chat] 03:17, 6 May 2012 (UTC)[reply]
It's because this template used {{sec link auto}} for some additional magic when used on the secure server, but to be honest if secure links require every template to be manually hacked to work properly with them then that's a problem for the secure server people to work out. I've stripped it out. Chris Cunningham (user:thumperward) (talk) 09:37, 9 May 2012 (UTC)[reply]
() Thank you, both of you. As a further alternative to {{Sister-inline}}, I figured out this one can be lined up with bullets in an ext links section hackily with &nbsp;&nbsp;{{Commons category-inline|Food}} for anyone who thinks the Commons logo icon and a graphical bullet is overkill. With longer (e.g) titles I don't know why {{commons}} sizes the box differently depending on which side it's used... Anyway, I appreciate the doc and code fixes. --92.6.211.228 (talk) 15:28, 11 May 2012 (UTC)[reply]