Template talk:Commons category multi
Template:Commons category multi is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
Annotated style
edit22-Feb-2007: As a new template, Template:Commonscat_show2, is not just a multi-category extension of Template:Commonscat, but is also exploring an annotated style showing examples and listing related templates. There are many templates related to categories, but information comparing or describing the various templates is not easily seen elsewhere. Showing a few examples and related templates should improve productivity. -Wikid77 17:37, 22 February 2007 (UTC)
Comments are fast
edit22-Feb-2007: It is certainly worth the extra code to describe a few related templates within each particular template: compared to the size of a typical PNG image, comments added to a template are probably processed over 1,000 times faster than displaying a single PNG image. Speed depends largely on file-size during transfer, just as an HTML browser can scan 5,000 lines of HTML comments per second due to the file-size of those comments. Keep the amount of comments and examples below a thousand lines, and then the comment processing would be a fraction of a second for the template, when included. -Wikid77 17:37, 22 February 2007 (UTC)
Restored showing word: category
edit13-May-2009: I have fixed the template to, again, show the word "(category)" because some templates look identical that link directly to WM Commons pages as "commons:Xxx" (not commons:Category:Xxx). As happens every few months (or so) on Wikimedia websites, the template had been hacked (to become "standard useless") and someone, somewhere, somehow, thought it would be an "improvement" to no longer say "category" when it is a category (duh). Well, whatever, I just fixed it, and wait for the next what-the-huh change to fix. -Wikid77 09:17, 13 May 2009
Restored functionality listed in documentation
edit13-May-2009: I have fixed the template to, again, allow parameters "align=left" and "width=22em". As happens every few months (or so) on Wikimedia websites, the template had been mangled to become "standard useless" in an effort to reduce font-size to 92% (or other reasons), while thereby losing support for full parameters. I have re-implemented the template, closer to the original form, while adding style="font-size:92%" to match the current reduced-font presentation format. Everybody focuses on different aspects of each template, and they're all volunteers, so few have time to say, "Hey, don't change that or you'll break it, when trying to force a standardized implementation." In general, just be prepared to redo, or rework, anything, to cope with the latest changes somewhere, by someone. Typically, the fanatical push for standardization tends to slow down, as people get thwarted by their own standards, so the results become more stable, after a while, and functionality becomes more predictable at that time. -Wikid77 09:17, 13 May 2009
Redirections here
edit13-May-2009: The template was originally named "Template:Commonscat_show2" (3 years ago), and that is a redirection title used by about 70 pages (as of May 2009). New name {Commons_cat_multi} should be used, whenever possible, to phase out the prior name (and reduce confusion somewhat). There's no hurry to rename, because there are 1,000 other confusions at any given time, so no improvement really matters much. -Wikid77 (talk) 09:18, 13 May 2009 (UTC)
Semi-protected edit request on 1 August 2014
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please add a note explaining that this template does not support vertical syntax, e.g:
- Vertical syntax ...
{{Commons category multi | width=18em
| Elephants in heraldry
| Elephants in art
| Elephants in circus
}}
- ... Results in →
- Horizontal syntax ...
{{Commons category multi | width=18em | Elephants in heraldry | Elephants in art | Elephants in circus }}
- ... Results in →
71.20.250.51 (talk) 10:00, 1 August 2014 (UTC)
- Not done:
{{edit semi-protected}}
is usually not required for edits to the documentation, categories, or interlanguage links of templates using a documentation subpage. Use the 'edit' link at the top of the green "Template documentation" box to edit the documentation subpage. - Instead, I fixed up the template to allow whitespace (such as newlines). --Redrose64 (talk) 13:25, 1 August 2014 (UTC)
- Ok, thanks for tweaking the code! 71.20.250.51 (talk) 18:20, 1 August 2014 (UTC)
Changes of 6 Feb 2016
editHi.
I made the following changes today:
- White space removal implemented to fix the white space bug. Redrose64 had previously implemented it for link destination only.
- {{Sister project}} template is used for layout consistency with other sister project templates.
- Line break opportunity implemented.
Here is a screenshot of the testcase to let you know what bug I am talking about: https://drive.google.com/file/d/0B8tNkKG_EzjZd3NqbG8xdFRBRG8/view?pref=2&pli=1
Best regards,
Codename Lisa (talk) 17:34, 6 February 2016 (UTC)
Use the pagelist template
editIt seems to me this template implements logic that could be delegated to the {{pagelist}} template, whose documentation actually says:
“ | This template is mostly useful from within other templates that accept a variable number of page names as arguments. For example, the page arguments {{{1}}} –{{{10}}} can be passed to this template using {{pagelist|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}|{{{10|}}}}} . Any parameters not specified to the original template will be passed as empty parameters and not listed by the pagelist template.
|
” |
Besides simplifying the code, we would have the "and" before the last item, which I think would be an improvement. Thoughts? --Waldir talk 19:38, 5 March 2016 (UTC)
- Hello, Waldir
- Color me intrigued. If you have experience with that template, you can implement your proposal in the sandbox. Of course, if you are busy right now, I can try and learn on my own at my first opportunity.
- Best regards,
- Codename Lisa (talk) 20:23, 5 March 2016 (UTC)
- Hi Codename Lisa! I don't have experience with the template, but it doesn't seem very complicated. However, I am indeed very limited in my time at the moment, so if you wouldn't mind, it would probably be better if you gave it a shot yourself (also because you're a more experienced template editor). Cheers! Waldir talk 10:31, 6 March 2016 (UTC)
- @Waldir: This won't work. --Redrose64 (talk) 20:52, 6 March 2016 (UTC)
- Are you sure? I did get a notification due to the message above mentioning me. In any case, I did that mostly for completeness, since the speed of the first answer gave me confidence that the reply would be seen shortly. --Waldir talk 23:17, 6 March 2016 (UTC)
- Yes, I'm sure. For a user to be notified, you need to add a user link and fresh signature in the same edit, moreover it has to be a new post, not a modification to an exiting post. It's described at WP:Echo#Triggering events. So this edit will not have sent a notification to Waldir. --Redrose64 (talk) 13:38, 7 March 2016 (UTC)
- But this edit will have sent a notification to both Codename Lisa and Waldir. --Redrose64 (talk) 13:41, 7 March 2016 (UTC)
- Huh, interesting, TIL :) --Waldir talk 16:11, 7 March 2016 (UTC)
- Are you sure? I did get a notification due to the message above mentioning me. In any case, I did that mostly for completeness, since the speed of the first answer gave me confidence that the reply would be seen shortly. --Waldir talk 23:17, 6 March 2016 (UTC)
- @Waldir: This won't work. --Redrose64 (talk) 20:52, 6 March 2016 (UTC)
- Hi Codename Lisa! I don't have experience with the template, but it doesn't seem very complicated. However, I am indeed very limited in my time at the moment, so if you wouldn't mind, it would probably be better if you gave it a shot yourself (also because you're a more experienced template editor). Cheers! Waldir talk 10:31, 6 March 2016 (UTC)
Propose rename
editAre there any objections to renaming this template Template:Commons categories? -- PBS (talk) 14:03, 27 April 2017 (UTC)
- How many articles already use "Commons category multi"? Are there plans to automate a rename cleanup across all articles? • Sbmeirow • Talk • 05:53, 28 April 2017 (UTC)
- To question 2, No - that would be both unnecessary and against WP:NOTBROKEN. --Redrose64 🌹 (talk) 19:21, 29 April 2017 (UTC)
Italics
editTemplate:Commons and Template:Commons category (and probably other similar templates) italicize the Wikimedia link; is there a reason this template doesn't do that? If not, it should be fixed to be consistent with the others. V2Blast (talk) 04:59, 1 July 2017 (UTC)
- Since the template's only semi-protected, I decided to be bold and make the change myself. Hopefully there are no problems with this. V2Blast (talk) 05:09, 1 July 2017 (UTC)
Broken links
editThere seem to be broken links on some of the articles where this is used, such as Woodhaven and Cross Bay Boulevards buses where the link display looks like [[::commons:Category:<link>|<link>]]
with two colons. Replacing |nspace=:commons:Category
with |nspace=commons:Category
seems to fix the problem in preview, at least on the article I mentioned, but would it work for other articles? I don't want to make that drastic a change without seeing the effects, so I ask if links still work on other articles. epicgenius (talk) 19:38, 19 July 2017 (UTC)
- @Epicgenius: Seems to be a general change, see Wikipedia:Village pump (technical)#Links starting with .5B.5B:: no longer valid? --Redrose64 🌹 (talk) 08:25, 20 July 2017 (UTC)
- @Epicgenius and Redrose64: I fixed the underlying Module:Pagelist as well to not double up on colons. --Ahecht (TALK
PAGE) 22:17, 20 July 2017 (UTC)
- @Epicgenius and Redrose64: I fixed the underlying Module:Pagelist as well to not double up on colons. --Ahecht (TALK
Redirects section
editThis edit request to Template:Commons category multi/doc has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can these be added to a Redirects section? It is usually before the "See also" section.
|
---|
What Links Here shows these redirects:
|
--Timeshifter (talk) 09:16, 7 April 2023 (UTC)
- Not done:
{{edit template-protected}}
is usually not required for edits to the documentation or categories of templates using a documentation subpage. Use the 'edit' link at the top of the green "Template documentation" box to edit the documentation subpage. P.I. Ellsworth , ed. put'er there 12:43, 9 April 2023 (UTC)- Paine Ellsworth. Oops. Thanks! The doc sections do not have edit buttons. I must have missed the edit button at the top of the green doc. --Timeshifter (talk) 15:10, 9 April 2023 (UTC)
- my pleasure! Paine 18:28, 9 April 2023 (UTC)
- Paine Ellsworth. Oops. Thanks! The doc sections do not have edit buttons. I must have missed the edit button at the top of the green doc. --Timeshifter (talk) 15:10, 9 April 2023 (UTC)
Inline version of this template?
editCould someone create an inline version of this template like what {{Commons category-inline}}
looks like? {{Commons category-inline}}
supports only one category, and adding another will cause an error message on page preview: "Preview warning: Commons link does not match Wikidata – please check". Using this ({{Commons category multi}}
) on itself causes in some pages some layout issues such as excessive whitespace; if floated to the left, the template box does not look good if placed within an External links section that uses bullets. Sanglahi86 (talk) 10:42, 25 September 2024 (UTC)