MediaWiki talk:Gadget-UnsupportedTitles.js

Latest comment: 11 months ago by ExcarnateSojourner in topic Underscore titles update request

Origin of script edit

For future reference I am not the original author of the script. I just moved it out from MediaWiki:Common.js. It was originated from this diff. Dixtosa (talk) 11:13, 1 November 2018 (UTC)Reply

Hyphen vertical line vertical line hyphen edit

Unsupported titles/Hyphen vertical line vertical line hyphen needs to be added. — Eru·tuon 21:56, 4 September 2018 (UTC)Reply

Done. Dixtosa (talk) 10:01, 5 September 2018 (UTC)Reply

Aboriginal flag emoticons edit

Hi. Could Unsupported titles/Australian Aboriginal Flag emoticon ([-o-]) and Unsupported titles/Australian Aboriginal Flag emoticon alternative ([-0-]) be added please? Jjamesryan (talk) 04:15, 13 September 2018 (UTC)Reply

@Jjamesryan done. Dixtosa (talk) 11:04, 1 November 2018 (UTC)Reply
@Dixtosa Thank you! Jjamesryan (talk) 23:02, 1 November 2018 (UTC)Reply

Thai_name_of_Bangkok edit

Please correct Thai_name_of_Bangkok to the correct one. Thanks. --Octahedron80 (talk) 09:35, 11 December 2018 (UTC)Reply

"กรุงเทพมหานคร อมรรัตนโกสินทร์ มหินทรายุธยา มหาดิลกภพ นพรัตนราชธานีบูรีรมย์ อุดมราชนิเวศน์มหาสถาน อมรพิมานอวตารสถิต สักกะทัตติยวิษณุกรรมประสิทธิ์"

@Octahedron80:   Made the requested change. — Eru·tuon 10:07, 11 December 2018 (UTC)Reply

updating Unsupported titles/Five-bar_gate_tally edit

hi, can someone please add this entry to the titleMap to fix Unsupported titles/Five-bar_gate_tally:

			'Five-bar_gate_tally': '[[File:Tally marks-Five-bar Gate.svg.png|50px]]',

thanks, --Habst (talk) 23:25, 15 July 2019 (UTC)Reply

@Habst: Sorry, that won't work because the gadget needs HTML code rather than wikitext. (At the moment it also only inserts plain text, not HTML tags, but that can be changed.) — Eru·tuon 01:24, 16 July 2019 (UTC)Reply
@Erutuon: thank you, in that case can you replace it with this which is the resultant html from that wikitext?
			'Five-bar_gate_tally': '<a href="/wiki/File:Tally_marks-Five-bar_Gate.svg.png" class="image" title=""><img alt="Tally marks-Five-bar Gate.svg.png" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Tally_marks-Five-bar_Gate.svg.png/50px-Tally_marks-Five-bar_Gate.svg.png" decoding="async" width="50" height="44" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Tally_marks-Five-bar_Gate.svg.png/75px-Tally_marks-Five-bar_Gate.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Tally_marks-Five-bar_Gate.svg.png/100px-Tally_marks-Five-bar_Gate.svg.png 2x" data-file-width="2000" data-file-height="1766"></a>',
i also think you would need to change titleTag.textContent = ... to titleTag.innerHTML = ... to get the tags to work, maybe also changing the regex on that line. thanks, --Habst (talk) 04:13, 16 July 2019 (UTC)Reply
to avoid disruption on pages like Unsupported_titles/Less_than, i think maybe it would be best to include a "raw html" flag on each entry in titleMap, if it's false then it uses textContent but if it's true then it can use innerHTML. (or, we can just replace those title names with their HTML entity codes.) --Habst (talk) 04:17, 16 July 2019 (UTC)Reply
Correct, only it's the header, not the title tag, that will have the image added to it. The title tag can only contain plain text. I'm thinking it would be best to have the values in titleMap be a string (as currently) or an object with the URL of an image: { 'image': '//upload.wikimedia.org/wikipedia/commons/thumb/b/b1/Tally_marks-Five-bar_Gate.svg.png/50px-Tally_marks-Five-bar_Gate.svg.png' } in this case. Then the code below the titleMap can decide whether to put it in the title tag, and whether to set the textContent property of the header or to create an image tag and append it. Including verbose HTML generated by the MediaWiki parser is best avoided. — Eru·tuon 18:06, 16 July 2019 (UTC)Reply

Colon slash edit

Please add 'Colon_slash': ':/', for Unsupported titles/Colon slash, thanks. – Nixinova [‌T|C] 01:41, 12 November 2020 (UTC)Reply

@Nixinova: Done. — Eru·tuon 04:08, 12 November 2020 (UTC)Reply

Updates needed edit

Can someone add 9_9, :D, :d, and ;? Thanks. Binarystep (talk) 13:09, 26 October 2022 (UTC)Reply

TitleDisplay requests edit

We have ♉ displaying as '♉︎', and that is working well. We should include at least the remaining signs of the zodiac:

♈ > ♈︎
♊ > ♊︎
♋ > ♋︎
♌ > ♌︎
♍ > ♍︎
♎ > ♎︎
♏ > ♏︎
♐ > ♐︎
♑ > ♑︎
♒ > ♒︎
♓ > ♓︎
⛎ > ⛎︎

and the phases of the moon:

🌕 > 🌕︎
🌔 > 🌔︎
🌓 > 🌓︎
🌒 > 🌒︎
🌑 > 🌑︎
🌘 > 🌘︎
🌗 > 🌗︎
🌖 > 🌖︎

(The difference, if not visible with your browser font, is that &#xFE0E; is appended to force the character to display as text.)

Although not a problem for the default fonts I'm using, Venus/female and Mars/male might be a problem for others, so those should be specified as non-emoji as well:

♀ > ♀︎
♂ > ♂︎

We presumably want to include others; from my display, I notice in particular ♿ 🚻 🚹 🚺, but potentially any of the pages that link to Template:emojibox, if the character in question is the name of the article. kwami (talk) 05:28, 26 February 2023 (UTC)Reply

I added the ones in the lists above, ♈ to ♂. — Eru·tuon 07:00, 26 February 2023 (UTC)Reply
@Erutuon -- could you also add ? We only define that in its text form. Thanks. kwami (talk) 08:50, 12 March 2023 (UTC)Reply
@Kwamikagami: Added it. — Eru·tuon 21:58, 12 March 2023 (UTC)Reply

4 new unsupported titles edit

Hello - could someone please add >>, >>>, << and <<<? Thanks. Theknightwho (talk) 12:21, 14 March 2023 (UTC)Reply

Underscore titles update request edit

I've moved three unsupported titles per an RFM discussion, and this script's data needs to be updated accordingly.

  • _ is now at Underscore
  • >_< is now at Greater_than_underscore_less_than
  • _ _ is now at Underscore_space_underscore

— excarnateSojourner (talk · contrib) 20:09, 23 May 2023 (UTC)Reply

Return to "Gadget-UnsupportedTitles.js" page.