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: 137
Founded: Oct 10, 2014
Inoffensive Centrist Democracy

[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
Diplomat
 
Posts: 941
Founded: Mar 25, 2019
Inoffensive Centrist Democracy

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

Seems like a long-overdue feature.
Authored 4 SCRs | Issue Author | The Rejected Realms' Current World Assembly Officer | Defeated Security Council Proposals | Founder of Chameleon

User avatar
Praeceps
Chargé d'Affaires
 
Posts: 450
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.

Guildmaster of The North Pacific Cards Guild

User avatar
The Northern Light
Spokesperson
 
Posts: 137
Founded: Oct 10, 2014
Inoffensive Centrist Democracy

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-
Ambassador
 
Posts: 1606
Founded: Oct 27, 2019
Civil Rights Lovefest

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

I like this idea.

Republic of Astoria | Tarain Asdair | Vasnin Astoir
Constitution | Bill of Rights | Anthem | Lyrics | Embassy | FAQ | NS stats? Sorry, but no.
Sep 19, 2020
✉ TV1 News: GoFundMe for immigrant education: A$47,250 raised | Man wins $3m Nat'l Lotto | Face masks: dos & don'ts | Feds tighten pandemic restrictions | Water plan opened to public consultation | Weather: Footscray ☀ 23° | Altas ☂ 14° | Esterpine ☁ 17° | Naltgybal ⛅ 21° | Ceirtryn ☁ 18° | Bynscel ☂ 23° | Lyteel ⛅ 22° | Traffic: TY Hwy 4: 5 min delays northbound

A 7 civ | 9th in NSFB#1 | 10/10 by DGES | Proudly corruption-free
(since May 15) Mayo responses: 122⅚ | Cheddar responses: 51

mit zuckerguß | ⅓ of Triumvirate | Much hope
"Loophole, bitch!" - Aroni


User avatar
Mathuvan Union
Minister
 
Posts: 2246
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…

User avatar
Merni
Ambassador
 
Posts: 1270
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! | Free time? Help Gutenberg!
The Labyrinth | GA Committee List | Tools written by me

Admins: Please allow blocking WA TGs!
Fora
NSP2:zxq
Anti-R/D demsoc

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!)

Compass E:-7.75 S:-3.64

User avatar
-Astoria-
Ambassador
 
Posts: 1606
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 | Tarain Asdair | Vasnin Astoir
Constitution | Bill of Rights | Anthem | Lyrics | Embassy | FAQ | NS stats? Sorry, but no.
Sep 19, 2020
✉ TV1 News: GoFundMe for immigrant education: A$47,250 raised | Man wins $3m Nat'l Lotto | Face masks: dos & don'ts | Feds tighten pandemic restrictions | Water plan opened to public consultation | Weather: Footscray ☀ 23° | Altas ☂ 14° | Esterpine ☁ 17° | Naltgybal ⛅ 21° | Ceirtryn ☁ 18° | Bynscel ☂ 23° | Lyteel ⛅ 22° | Traffic: TY Hwy 4: 5 min delays northbound

A 7 civ | 9th in NSFB#1 | 10/10 by DGES | Proudly corruption-free
(since May 15) Mayo responses: 122⅚ | Cheddar responses: 51

mit zuckerguß | ⅓ of Triumvirate | Much hope
"Loophole, bitch!" - Aroni


User avatar
Mathuvan Union
Minister
 
Posts: 2246
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.

User avatar
Harmonic Empire
Diplomat
 
Posts: 683
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]
| ♛ | HARMONISKA RIKKEN | ♛ | UNTERMAR | ♛ |
FanT set in a world of ungodly overpowered beings.
Eros's Book (IC1) - Ase's Book (IC2) - World Map - Flag - I made something.
Intermarium Issues: [MSC] 【战双帕弥什】GRAY RAVEN:Punishing - Dust | [ADS] Turning suicidal tendencies into Art! Contact Miss Aushra for training! | [NAT] Rosenberg Guild looks into General Romeus about alleged massacres in North Volland around 1528; "Leave me the f-ck alone, I'm listening to Pledge of Demon here!" he says.
Be sure to check Terra Britania's works | Ch'en best nuker!

User avatar
The Northern Light
Spokesperson
 
Posts: 137
Founded: Oct 10, 2014
Inoffensive Centrist Democracy

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