Template talk:Icon/Archive 2
This is an archive of past discussions about Template:Icon. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
Adding functionality for Template:Icon link
{{Icon link}} is a superset of {{Icon}}, currently implemented via template logic. I've added a function link() in the module sandbox to implement this in Lua, which will make it more efficient. In addition, I've made the following changes:
- Implemented argument parsing and cleanup by calling Module:Arguments and Module:Yesno
- Instead of hardwiring "sandbox" into the Module, the code looks at args.sandbox to determine whether it is in the sandbox or not
Any comments, questions, or suggestions before I copy this into the main module? — hike395 (talk) 20:15, 3 January 2022 (UTC)
- Done Updated the main module. Let me know if anyone sees any odd behavior. — hike395 (talk) 11:23, 8 January 2022 (UTC)
Humour icon?
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
It occurs to me that marking April Fool's comments with an icon could be useful, along with the banner {{humourous}} that goes on many XfD nominations in and about April 1st. As people live in various timezones across the globe that do not match UTC, they could mark comments that unintentionally fall outside of the UTC 1 April date. Can a new icon be added to {{icon}} ? -- 65.92.246.142 (talk) 13:35, 1 February 2022 (UTC)
- Not done please mock up the change you want in the sandbox, test it, then reactivate the edit request. If this is just a discussion, feel free to continue below. — xaosflux Talk 01:51, 10 February 2022 (UTC)
POTD support
This edit request to Module:Icon/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Change
vital = { image = "Círculos_Concéntricos.svg", tooltip = "Vital article", link = false, },
to
vital = { image = "Círculos_Concéntricos.svg", tooltip = "Vital article", link = false, }, potd = { image = "Wikipedia-logo.svg", tooltip = "Picture of the Day", link = true, },
This will add a Picture of the Day icon matching the TFA/TFL icons. Headbomb {t · c · p · b} 16:25, 12 June 2022 (UTC)
- To editor Headbomb: curious as to why the double-double quotation marks in the image line? Is that correct or just a key bounce? P.I. Ellsworth , ed. put'r there 18:03, 14 June 2022 (UTC)
- @Paine Ellsworth: fixed. Likely from an over-enthusiatic text editor that likes to insert double quotes when you type on (same for brackets, etc...). Headbomb {t · c · p · b} 18:55, 14 June 2022 (UTC)
- Okay then and done. P.I. Ellsworth , ed. put'r there 20:48, 14 June 2022 (UTC)
- @Paine Ellsworth: fixed. Likely from an over-enthusiatic text editor that likes to insert double quotes when you type on (same for brackets, etc...). Headbomb {t · c · p · b} 18:55, 14 June 2022 (UTC)
Request to add 'Current event' clock as an icon
Hi, could we add an icon for File:Current event clock.svg, or something similar? (Maybe titled {{icon|current event}} or {{icon|current}}?) This would be useful to denote current events that are not news events (not "itn", in the news) – that globe/clock icon also seems too small to be clear in some situations.
I can't see a way to display the clock in a template without posting the file directly. Sorry if I'm missing something.
The clock file is already used in Template:Infobox recurring event, World Athletics Championships, NBA Finals, Biathlon World Cup and some others. If an icon is possible, I'm intending to add that icon to the NFL and Major League Baseball navigation boxes, which have their current season listed, but no icon as it isn't technically feasible.
Thanks, Demokra (talk) 20:43, 26 June 2022 (UTC)
- Have made a sandbox edit, with the name "icon|currentevent", here - hope that's right to do. Demokra (talk) 00:30, 27 June 2022 (UTC)
4A
This edit request to Module:Icon/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Writing {{icon|4A}} displays , the DYK icon, even though it should logically display the Four Award one (). Can someone please fix this? Nehme1499 14:25, 6 August 2022 (UTC)
- Also, when clicking on the icon itself: some redirect to the commons file page, while others don't. Is this intentional? Nehme1499 14:46, 20 August 2022 (UTC)
- Done The first change. The second thing is deliberate, see Module:Icon/data/doc#Fields * Pppery * it has begun... 19:46, 20 August 2022 (UTC)
pen icon using .png file when .svg version exists
The portal peer review and peer review icons ( , ) have links going to a .png version of the file, even though a .svg version exists. Unless there's something I'm missing, I think these icons should link to the .svg version instead. Neuroxic (talk) 15:16, 17 September 2022 (UTC)
Icon for phabricator
This edit request to Module:Icon/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
We have {{icon|wikidata}}
and assorted friends for various MW sites.
Please also add some of the other MW sites. The following should be oven-ready:
mediawiki= { image = "MediaWiki-2020-icon.svg", tooltip = "MediaWiki", link = false, }, phabricator = { aliases = {"phab"}, image = "Favicon-Phabricator-WM.svg", tooltip = "Phabricator", link = false, }, wikitech= { image = "Wikitech-2021-blue-icon.svg", tooltip = "Wikitech", link = false, },
Thanks — GhostInTheMachine talk to me 13:17, 18 October 2022 (UTC)
- nudge — GhostInTheMachine talk to me 16:47, 1 December 2022 (UTC)
- Completed –
- P.I. Ellsworth , ed. put'r there 06:39, 2 December 2022 (UTC)
Template-protected edit request on 28 October 2023—add Draft class icon
This edit request to Module:Icon/data has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Could this icon for Draft-Class articles please be added?
draft = {
image = "Symbol draft class.svg",
tooltip = "Draft-Class article",
link = false,
},
— Remsense聊 21:18, 28 October 2023 (UTC)
- Please link to the discussion about this change. – Jonesey95 (talk) 21:51, 28 October 2023 (UTC)
- Oh, my bad, I meant to make this on the module page itself, I'm sorry!
e—I had, the button to submit an edit request on the module page links to this page. Did I do something wrong? Remsense聊 23:57, 28 October 2023 (UTC)- To editor Remsense: not at all. The module's talk page is remote and redirects to this page, so you're in the right place. Jonesey95 wants to know if your change to the module enjoys consensus? or are you the only one who favors the addition of the draft icon? P.I. Ellsworth , ed. put'er there 15:24, 29 October 2023 (UTC)
- Paine Ellsworth, I mean, I suppose it seemed perfunctory given how the icon is used in other high-volume templates, inline with expectations about how Wikipedia is structured, but I suppose since
{{icon}}
is so high-volume, i still should've polled first. — Remsense聊 15:29, 29 October 2023 (UTC)
- Paine Ellsworth, I mean, I suppose it seemed perfunctory given how the icon is used in other high-volume templates, inline with expectations about how Wikipedia is structured, but I suppose since
- To editor Remsense: not at all. The module's talk page is remote and redirects to this page, so you're in the right place. Jonesey95 wants to know if your change to the module enjoys consensus? or are you the only one who favors the addition of the draft icon? P.I. Ellsworth , ed. put'er there 15:24, 29 October 2023 (UTC)
- Oh, my bad, I meant to make this on the module page itself, I'm sorry!
- Done Non-controversial. SWinxy (talk) 20:21, 2 November 2023 (UTC)