Module talk:POTY

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Reset the padding for <ul> in the gallery[edit]

The gallery seems to be using an unordered list for listing images. It would be nice of the default padding given for the lists is reset to 0 (using style="padding: 0", for instance) as the unwanted padding-left: 1em for the list seems to be moving the images a bit to the right in mobile screens. The unordered list I'm referring to has the it's class attribute as gallery mw-gallery-traditional and it's parent in rendered form is <div id="potyEasyVoteEnhanced" style="text-align:center">. Link to screen shot of the page after removing the unwanted padding - -Kaartic (talk) 17:41, 18 June 2018 (UTC)[reply]

Improve the layout of the Gallery page in mobile[edit]

The 2017 POTY Gallery page doesn't seem to be looking well in mobile. It would be nice if the layout was tweaked so that the each of the table comes one after the other in smaller screens. - -Kaartic (talk) 17:48, 18 June 2018 (UTC)[reply]

Avoid duplicate icons in {{#invoke:POTY|iconCredits}}[edit]

{{Edit request}} {{edit request}}

Please apply Special:Diff/592369053 in order for {{#invoke:POTY|iconCredits}} to not list duplicate icons, see:

Difference in output
{{#invoke:POTY|iconCredits}} output{{#invoke:POTY/sandbox|iconCredits}} output
<div style="margin:0.5em">[[File:High-contrast-camera-video.svg|48px]] [[:File:High-contrast-camera-video.svg]]</div><div style="margin:0.5em">[[File:Mixed forest silhouette scaled-to-hight, quadratic.svg|48px]] [[:File:Mixed forest silhouette scaled-to-hight, quadratic.svg]]</div><div style="margin:0.5em">[[File:Leaf icon (Noun Project).svg|48px]] [[:File:Leaf icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Ic not interested 48px.svg|48px]] [[:File:Ic not interested 48px.svg]]</div><div style="margin:0.5em">[[File:Pluie-inondation.png|48px]] [[:File:Pluie-inondation.png]]</div><div style="margin:0.5em">[[File:Db-Schild.svg|48px]] [[:File:Db-Schild.svg]]</div><div style="margin:0.5em">[[File:Ceiling (NP1283257).png|48px]] [[:File:Ceiling (NP1283257).png]]</div><div style="margin:0.5em">[[File:Pillar column icon (Noun Project).svg|48px]] [[:File:Pillar column icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Skull Icon (Noun Project).svg|48px]] [[:File:Skull Icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Bust (NP291570).png|48px]] [[:File:Bust (NP291570).png]]</div><div style="margin:0.5em">[[File:Mountain icon (Noun Project).svg|48px]] [[:File:Mountain icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:US 66.svg|48px]] [[:File:US 66.svg]]</div><div style="margin:0.5em">[[File:Spider icon (Noun Project).svg|48px]] [[:File:Spider icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Camara.svg|48px]] [[:File:Camara.svg]]</div><div style="margin:0.5em">[[File:Group font awesome.svg|48px]] [[:File:Group font awesome.svg]]</div><div style="margin:0.5em">[[File:Vogelicoon.png|48px]] [[:File:Vogelicoon.png]]</div><div style="margin:0.5em">[[File:Paint palette icon from the Noun Project.svg|48px]] [[:File:Paint palette icon from the Noun Project.svg]]</div><div style="margin:0.5em">[[File:City icon (Noun Project).svg|48px]] [[:File:City icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Religious interior.svg|48px]] [[:File:Religious interior.svg]]</div><div style="margin:0.5em">[[File:Paint palette icon from the Noun Project.svg|48px]] [[:File:Paint palette icon from the Noun Project.svg]]</div><div style="margin:0.5em">[[File:City icon (Noun Project).svg|48px]] [[:File:City icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Legenda grodzisko.svg|48px]] [[:File:Legenda grodzisko.svg]]</div><div style="margin:0.5em">[[File:A30 Low-level interior illumination.svg|48px]] [[:File:A30 Low-level interior illumination.svg]]</div><div style="margin:0.5em">[[File:Mosque x2.svg|48px]] [[:File:Mosque x2.svg]]</div><div style="margin:0.5em">[[File:Noun project 1026.svg|48px]] [[:File:Noun project 1026.svg]]</div><div style="margin:0.5em">[[File:Bust (NP291570).png|48px]] [[:File:Bust (NP291570).png]]</div><div style="margin:0.5em">[[File:Butterfly icon (Noun Project).svg|48px]] [[:File:Butterfly icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Mine de charbon.svg|48px]] [[:File:Mine de charbon.svg]]</div><div style="margin:0.5em">[[File:Treasure map - black.svg|48px]] [[:File:Treasure map - black.svg]]</div><div style="margin:0.5em">[[File:Escallop.svg|48px]] [[:File:Escallop.svg]]</div><div style="margin:0.5em">[[File:Panorama icon (Noun Project).svg|48px]] [[:File:Panorama icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Moose icon (Noun Project).svg|48px]] [[:File:Moose icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Frog icon (Vuze).png|48px]] [[:File:Frog icon (Vuze).png]]</div><div style="margin:0.5em">[[File:City icon (Noun Project).svg|48px]] [[:File:City icon (Noun Project).svg]]</div>
+
<div style="margin:0.5em">[[File:High-contrast-camera-video.svg|48px]] [[:File:High-contrast-camera-video.svg]]</div><div style="margin:0.5em">[[File:Mixed forest silhouette scaled-to-hight, quadratic.svg|48px]] [[:File:Mixed forest silhouette scaled-to-hight, quadratic.svg]]</div><div style="margin:0.5em">[[File:Leaf icon (Noun Project).svg|48px]] [[:File:Leaf icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Ic not interested 48px.svg|48px]] [[:File:Ic not interested 48px.svg]]</div><div style="margin:0.5em">[[File:Pluie-inondation.png|48px]] [[:File:Pluie-inondation.png]]</div><div style="margin:0.5em">[[File:Db-Schild.svg|48px]] [[:File:Db-Schild.svg]]</div><div style="margin:0.5em">[[File:Ceiling (NP1283257).png|48px]] [[:File:Ceiling (NP1283257).png]]</div><div style="margin:0.5em">[[File:Pillar column icon (Noun Project).svg|48px]] [[:File:Pillar column icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Skull Icon (Noun Project).svg|48px]] [[:File:Skull Icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Bust (NP291570).png|48px]] [[:File:Bust (NP291570).png]]</div><div style="margin:0.5em">[[File:Mountain icon (Noun Project).svg|48px]] [[:File:Mountain icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:US 66.svg|48px]] [[:File:US 66.svg]]</div><div style="margin:0.5em">[[File:Spider icon (Noun Project).svg|48px]] [[:File:Spider icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Camara.svg|48px]] [[:File:Camara.svg]]</div><div style="margin:0.5em">[[File:Group font awesome.svg|48px]] [[:File:Group font awesome.svg]]</div><div style="margin:0.5em">[[File:Vogelicoon.png|48px]] [[:File:Vogelicoon.png]]</div><div style="margin:0.5em">[[File:Paint palette icon from the Noun Project.svg|48px]] [[:File:Paint palette icon from the Noun Project.svg]]</div><div style="margin:0.5em">[[File:City icon (Noun Project).svg|48px]] [[:File:City icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Religious interior.svg|48px]] [[:File:Religious interior.svg]]</div><div style="margin:0.5em">[[File:Legenda grodzisko.svg|48px]] [[:File:Legenda grodzisko.svg]]</div><div style="margin:0.5em">[[File:A30 Low-level interior illumination.svg|48px]] [[:File:A30 Low-level interior illumination.svg]]</div><div style="margin:0.5em">[[File:Mosque x2.svg|48px]] [[:File:Mosque x2.svg]]</div><div style="margin:0.5em">[[File:Noun project 1026.svg|48px]] [[:File:Noun project 1026.svg]]</div><div style="margin:0.5em">[[File:Butterfly icon (Noun Project).svg|48px]] [[:File:Butterfly icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Mine de charbon.svg|48px]] [[:File:Mine de charbon.svg]]</div><div style="margin:0.5em">[[File:Treasure map - black.svg|48px]] [[:File:Treasure map - black.svg]]</div><div style="margin:0.5em">[[File:Escallop.svg|48px]] [[:File:Escallop.svg]]</div><div style="margin:0.5em">[[File:Panorama icon (Noun Project).svg|48px]] [[:File:Panorama icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Moose icon (Noun Project).svg|48px]] [[:File:Moose icon (Noun Project).svg]]</div><div style="margin:0.5em">[[File:Frog icon (Vuze).png|48px]] [[:File:Frog icon (Vuze).png]]</div>

— ExE Boss (talk) 08:10, 20 September 2021 (UTC)[reply]

@Minorax: Any chance you could perform this change? 1989 (talk) 01:54, 7 January 2022 (UTC)[reply]
Unfamiliar with Lua, so nope. Sorry. --Minorax«¦talk¦» 08:18, 7 January 2022 (UTC)[reply]
LGTM:
  • The parameter year, used here for development, may be kept, as it can be helpful so the module isn't tied to the page it is used on. On a related note, such parameters could be extended to other parts of the module, so it isn't heavily-coupled to the pagetitle (using pagetitle only when no argument provided).
  • The main change is simple, it just uses a keyed table so that the item don't get added twice.
Od1n (talk) 06:27, 19 March 2022 (UTC)[reply]
✓ Done Awesome! Thank you! —‍Mdaniels5757 (talk • contribs) 17:42, 29 October 2022 (UTC)[reply]

Edit request: declare variables to fix errors[edit]

{{Editprotected}}

I've made a few edits in Module:POTY/sandbox to fix the errors showing up in various POTY pages. —CalendulaAsteraceae (talkcontribs) 19:24, 1 March 2024 (UTC)[reply]

@Mdaniels5757, Jarekt: This request has been hanging around a few months now and I just now added some other cleanup including switching frame:preprocess('{{int:lang}}') to frame:callParserFunction('int', 'lang') and require('Module:JSON'):encode(candidateList2) to mw.text.jsonEncode(candidateList2) (removing dependence on Module:JSON). Can someone with appropriate rights get this updated, please? I pinged the two of you because you both have recent activity and have edited this module in the past. Thank you, —Uzume (talk) 18:01, 2 May 2024 (UTC)[reply]
✓ Done--Jarekt (talk) 15:23, 3 May 2024 (UTC)[reply]