NATION

PASSWORD

[Request] Specify alt text when using IMG in dispatches

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
The Northern Light
Spokesperson
 
Posts: 150
Founded: Oct 10, 2014
Iron Fist Consumerists

[Request] Specify alt text when using IMG in dispatches

Postby The Northern Light » Wed Jul 29, 2020 4:05 pm

Hi,

Would it be possible to add an option to specify alt text when inserting images using the IMG bbcode? I am primarily interested in having this option in dispatches (which I think is the only gameside place where IMG works), but it would also be helpful on the forum.

The reason for this is that, very often images are used as structural elements, e.g., to separate or highlight sections of a dispatch. It is not rare for section titles themselves are inserted in dispatches using images, to achieve specific aesthetic effects. Unfortunately, these images are not parsed by screen readers, making their content inaccessible for users that rely on screen readers to access the site. Users that, for one reason or another (e.g., low bandwidth, or privacy concerns, or even simply focusing issues), disable image downloads will also run into the same problem.

Alt text is commonly used in web design to alleviate these issues. Unfortunately, NS does not provide a way to specify alt text. Providing this option could be done by allowing users to provide an optional argument to the IMG BBcode, e.g.,

Code: Select all
[IMG=alt: ALT TEXT]IMG_URL[/IMG]

Making the argument optional is to avoid breaking backwards compatibility, given the thousands of IMG uses in existing dispatches.

Thank you in advance!
Last edited by The Northern Light on Wed Jul 29, 2020 4:05 pm, edited 1 time in total.
Home of the WADP, Planet Eras, and the Constibillocode!
Join The North Pacific!
Where the democracy is strong, the debate robust, and the rum plentiful!

Forum | Discord Chat | Citizenship | Executive Staff | North Pacific Army | World Assembly Ministry | Roleplay | Trading Cards | Handbook

User avatar
Bormiar
Ambassador
 
Posts: 1025
Founded: Mar 25, 2019
Inoffensive Centrist Democracy

Postby Bormiar » Wed Jul 29, 2020 4:55 pm

Seems like a long-overdue feature.

User avatar
Praeceps
Diplomat
 
Posts: 665
Founded: Feb 08, 2016
Scandinavian Liberal Paradise

Postby Praeceps » Mon Aug 03, 2020 8:43 pm

This would be very much appreciated!
Apparently simultaneously a Ravenclaw puppet, a NPO plant, and a Warden spy. I had no idea I was that good. Depending on who you ask, my aliases include Krulltopia.

Minister of Foreign Affairs for The North Pacific, Former Guildmaster of The North Pacific Cards Guild

User avatar
The Northern Light
Spokesperson
 
Posts: 150
Founded: Oct 10, 2014
Iron Fist Consumerists

Postby The Northern Light » Fri Aug 14, 2020 10:42 am

I'd like to bump this request back to the first page.
Home of the WADP, Planet Eras, and the Constibillocode!
Join The North Pacific!
Where the democracy is strong, the debate robust, and the rum plentiful!

Forum | Discord Chat | Citizenship | Executive Staff | North Pacific Army | World Assembly Ministry | Roleplay | Trading Cards | Handbook

User avatar
Sebero Sree
Secretary
 
Posts: 27
Founded: Mar 24, 2020
Democratic Socialists

Postby Sebero Sree » Fri Aug 14, 2020 11:26 am

Yep! Its surprising that this isn't a preexisting feature.
Loller M Corleone
Minister of Foreign Affairs, Caer Sidi

Views expressed are personal and doesn't reflect the views of the regions I am in unless explicitly stated otherwise.

User avatar
-Astoria-
Minister
 
Posts: 2332
Founded: Oct 27, 2019
Civil Rights Lovefest

Postby -Astoria- » Fri Aug 14, 2020 11:29 am

I like this idea.

Republic of Astoria | Gwernaith Asdair | Šenvat Astoir | République d'Astorie
Constitution | Bill of Rights | Anthem | Lyrics | Diplomacy | FAQ | Question artist
Fri 30 April
✉ TV1 News: Labour Day celebrations to be at reduced capacity | Ideas, projects wanted for mobility award | 6 injured in accidents on Thursday | Weather: Liskerry ⛅ 4° | Altas ⛅ 3° | Esterpine ☀ 10° | Naltgybal ☁ 7° | Ceirtryn ☂ -1° | Bynscel ⛅ 7° | Lyteel ☁ 6° | Traffic: HR Rte 2: 5 min delays westbound

A 7 civ | 9th in NSFB#1 | 10/10: DGES | Corruption index
⅐ Heptumvirate
User interest in worldbuilding dwindling due to self-conscious old shames.


User avatar
Mathuvan Union
Senator
 
Posts: 4785
Founded: Feb 20, 2020
Father Knows Best State

Postby Mathuvan Union » Fri Aug 14, 2020 6:49 pm

-Astoria- wrote:I like this idea.

Ditto. Though it’d Be nice if you could centre images…
Last edited by Various Dictators on 1/1/0001, at 12:00 AM, edited 9,000 times in total
G'day. I have nothing to say. Damn. this rhymes. LOOK AWAY, MORTAL BEINGS!
Calvin and Hobbes is the best comic of all times. Yes, I am Hobbes
Best Song Ever. At The Rainbow in ‘74. Awesome.
Male. Refer to me as ‘he’ or I will bring memes. You do not want my memes.
Behind the free market lies the iron fist of the state - the one thing I learned from The Blaatschapen, excluding how to say sheep in dutch

User avatar
Merni
Ambassador
 
Posts: 1466
Founded: May 03, 2016
Democratic Socialists

Postby Merni » Fri Aug 14, 2020 9:40 pm

Mathuvan Union wrote:
-Astoria- wrote:I like this idea.

Ditto. Though it’d Be nice if you could centre images…

You can already do that by enclosing an image in [ align=center ] and [ /align ] tags.
COVID19 still exists! | Donate your free time
The Labyrinth | TGW Warden | GA Committee List

Admins: Please allow blocking WA TGs!
E -8.0 S -3.18
Wrote 532 GA
meth
I've noticed that everybody that is for abortion has already been born. — Ronald Reagan
When the people are being beaten with a stick, they are not much happier if it is called 'the People’s Stick.' — Mikhail Bakunin (to Karl Marx)
You're supposed to be employing the arts of diplomacy, not the ruddy great thumping sledgehammers of diplomacy. — Ardchoille
The West won the world not by the superiority of its ideas or values or religion [...] but rather by its superiority in applying organised violence. — Samuel P. Huntington (even he said that!)

User avatar
-Astoria-
Minister
 
Posts: 2332
Founded: Oct 27, 2019
Civil Rights Lovefest

Postby -Astoria- » Sat Aug 15, 2020 2:47 am

Mathuvan Union wrote:
-Astoria- wrote:I like this idea.

Ditto. Though it’d Be nice if you could centre images…
Just do [align=center].

Republic of Astoria | Gwernaith Asdair | Šenvat Astoir | République d'Astorie
Constitution | Bill of Rights | Anthem | Lyrics | Diplomacy | FAQ | Question artist
Fri 30 April
✉ TV1 News: Labour Day celebrations to be at reduced capacity | Ideas, projects wanted for mobility award | 6 injured in accidents on Thursday | Weather: Liskerry ⛅ 4° | Altas ⛅ 3° | Esterpine ☀ 10° | Naltgybal ☁ 7° | Ceirtryn ☂ -1° | Bynscel ⛅ 7° | Lyteel ☁ 6° | Traffic: HR Rte 2: 5 min delays westbound

A 7 civ | 9th in NSFB#1 | 10/10: DGES | Corruption index
⅐ Heptumvirate
User interest in worldbuilding dwindling due to self-conscious old shames.


User avatar
Mathuvan Union
Senator
 
Posts: 4785
Founded: Feb 20, 2020
Father Knows Best State

Postby Mathuvan Union » Sat Aug 15, 2020 6:52 am

-Astoria- wrote:
Mathuvan Union wrote:Ditto. Though it’d Be nice if you could centre images…
Just do [align=center].

I have tried… doesn’t work for me.
Idk. This ain’t that to thread but I’d like alt text images.
Last edited by Various Dictators on 1/1/0001, at 12:00 AM, edited 9,000 times in total
G'day. I have nothing to say. Damn. this rhymes. LOOK AWAY, MORTAL BEINGS!
Calvin and Hobbes is the best comic of all times. Yes, I am Hobbes
Best Song Ever. At The Rainbow in ‘74. Awesome.
Male. Refer to me as ‘he’ or I will bring memes. You do not want my memes.
Behind the free market lies the iron fist of the state - the one thing I learned from The Blaatschapen, excluding how to say sheep in dutch

User avatar
Harmonic Empire
Diplomat
 
Posts: 794
Founded: Mar 17, 2017
Corporate Police State

Postby Harmonic Empire » Sat Aug 15, 2020 12:03 pm

Mathuvan Union wrote:I have tried… doesn’t work for me.
Idk. This ain’t that to thread but I’d like alt text images.

Image
Image
Image

Code: Select all
[align=left][img]https://www.mariowiki.com/images/4/4f/SMM-SMB-WeirdMario.png[/img][/align][align=center][img]https://www.mariowiki.com/images/4/4f/SMM-SMB-WeirdMario.png[/img][/align][align=right][img]https://www.mariowiki.com/images/4/4f/SMM-SMB-WeirdMario.png[/img][/align]
| ♛ | HARMONIKSA RIKKEN | UNTEMAR | ♛ |
FanT set in a world of ungodly overpowered beings
Ase's Book - Eros's Book - Map - IC Flag - Nygru's Axe
Intermarium Issues: [NAT] Caserine Ylva opens commission with a high prize for any composer who can write a new anthem for Untermar with Cannon and Rocket; "If Cannon can become a musical instrument, then Rocket can work too!" | [NAT] "Every problem can be solved with rockets and more rockets." Caserine Ylva Brynhildr says as she shows off new improved Firestorm Rocket Battery. | [INT] Massive brawl in Ygremir: picture taken from scene shows General Nygru making v-sign with her hand while smiling at MagiCam.
Please be sure to check Terra Britania's works! | Prisoners are treated fairly, fairly poor that is.

User avatar
The Northern Light
Spokesperson
 
Posts: 150
Founded: Oct 10, 2014
Iron Fist Consumerists

Postby The Northern Light » Sat Aug 29, 2020 8:31 pm

Hi, I'd like to bump this once more, given that it was a request that seemed to have a fair amount of support.

Thanks!
Home of the WADP, Planet Eras, and the Constibillocode!
Join The North Pacific!
Where the democracy is strong, the debate robust, and the rum plentiful!

Forum | Discord Chat | Citizenship | Executive Staff | North Pacific Army | World Assembly Ministry | Roleplay | Trading Cards | Handbook


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: No registered users

Advertisement

Remove ads