Template talk:Commons-inline
This is the talk page for discussing improvements to the Commons-inline template. |
|
Archives: 1Auto-archiving period: 12 months ![]() |
![]() | This template was nominated for deletion on October 8, 2008. The result of the discussion was Keep. |
Documentation
[edit]Usage
[edit]{{Commons-inline|Wikisource work}}
This template creates an inline link to the Wikicommons in list format.
Examples
[edit]Normal
[edit]{{Commons-inline|Work}}
Media related to Work at Wikimedia Commons
Text override
[edit]{{Commons-inline|Work|Puffle}}
Media related to Puffle at Wikimedia Commons
Full link override
[edit]{{Commons-inline|links=[[commons:Foo|]] and [[commons:Bar|]]}}
Media related to Foo and Bar at Wikimedia Commons
List format
[edit]{{Commons-inline|list= ** [[commons:Foo|]] ** [[commons:Bar|]] }}
Related media at Wikimedia Commons:
Use of parameter italic
[edit]Many thanks to User:Hike395 for adding the parameter italic to this template.
From my perspective this parameter is not re3ally intuitive as you have to put the value 1. is there no way to make this work in such a way as to just select italic in the list of used parameters and then the displayed text would be displayed in italic? Robby (talk) 18:46, 25 July 2024 (UTC)
- The current template accepts any string that is related to "yes", e.g., "yes", "true", "1". This functionality is from {{Yesno}}.
- To clarify, you would like
|italic=
(a blank parameter) to turn on italic? That's pretty non-standard: editors use blank parameters as placeholders for future use, i.e., they are as if you never used the parameter at all. Or do you mean|italic=foo
for any non "no" or "false" or "0" foo would turn on the italics? — hike395 (talk) 12:35, 26 July 2024 (UTC)- Indeed I first thought that i should put the text to be displayed in italic like this
|italic=text
but as this did not work I imagined I should in the graphic interface just select italic and as did not work I was somewhat confused. - But after your explanations I think the implemented solution is most probably the best as indeed I was not aware of that quite a number of editors use the blank parameter as placeholder.
- So just ignore my previous comment and let's continue to use the standard from the Yesno template. Robby (talk) 21:31, 26 July 2024 (UTC)
- @Robby: It sounds like you're using the Visual Editor. I just added TemplateData to {{commons-inline}}: the experience will hopefully be smoother now. — hike395 (talk) 07:57, 28 July 2024 (UTC)
- @Hike395: Indeed I use the Visual Editor. I checked the changes you made and it is already much more intuitive. By now ass soon as you tick the italic box the following text is displayed
- @Robby: It sounds like you're using the Visual Editor. I just added TemplateData to {{commons-inline}}: the experience will hopefully be smoother now. — hike395 (talk) 07:57, 28 July 2024 (UTC)
- Indeed I first thought that i should put the text to be displayed in italic like this
- whether to italicize link text
- Standard: false
- I suggest to add the information on how how to set to true , it could lokk like this:
- whether to italicize link text
- Standard: false
- To change to true put: '1' respectively 'yes'
- But I would like to thank you once more for having added the italic parameter.Robby (talk) 17:04, 30 July 2024 (UTC)
- @Hike395: Another maybe even more intuitive solution would be to put as a Standard:Yes when using the visual Edditor and changing the displayed text in this way.
- Robby (talk) 21:47, 30 July 2024 (UTC)
- But I would like to thank you once more for having added the italic parameter.Robby (talk) 17:04, 30 July 2024 (UTC)
Is it possible to link to the Media section?
[edit]This template currently links to a Category page, but its language implies that it will take the reader to a Media section. At Template:Sewing, for example, there a link to "Media" that takes me to a category page. Since I am delivered to the top of the page, I see subcategories, but I do not see any media (I have to scroll down to see media). It might be helpful to link to the "Media in category "Sewing"" section of the page to avoid WP:EGG issues. – Jonesey95 (talk) 15:41, 15 April 2025 (UTC)
- To clarify, would you like all (?) of the commons templates to link to an anchor closer to the actual media, e.g.:
- c:Category:Sewing#mw-category-media
- c:Ovis aries#toc (for galleries, perhaps?)
- I think this is a reasonable workaround for the poor usability of Commons -- people go to Commons to find images and editors have collectively decided that it's better to push thumbnails of media far down the page. It's easy enough to implement in Module:Commons link, but it's a substantial change from the existing behavior. If that's the proposal, I think it would have to gain consensus beyond this Talk page. — hike395 (talk) 12:59, 16 April 2025 (UTC)
- I am not familiar with the differences among the members of this family of templates. At first glance, I can't tell the difference between this one and {{Commons category-inline}}, for example; they seem to do the same thing, at least some of the time. The examples on this template's documentation page, some of which link to deleted pages, do not help me understand.
- I would like this template, which says "Media related to ...", to link to the Media section when it goes to a category page. I think that is reasonable, per the language of the rendered template. If that requires a wider discussion, that is fine with me. – Jonesey95 (talk) 14:07, 16 April 2025 (UTC)