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: 942
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: 462
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.

Former 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: 1789
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 | Not based off America; stop it.
Sep 25, 2020
✉ TV1 News: Greens' 'green new deal': what's inside? | 622 RightPrice staff block HQ in strike | Palktyff by bike; a diary | Weather: Footscray ☁ 22° | Altas ⛅ 21° | Esterpine ☂ 20° | Naltgybal ⛅ 20° | Ceirtryn ⛅ 19° | Bynscel ☁ 21° | Lyteel ☂ 20° | Traffic: PA Rte 9: closed up to Rte 8 southbound

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

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


User avatar
Mathuvan Union
Minister
 
Posts: 2323
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: 1275
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 | OOC unless I say so
The Labyrinth | GA Committee List | Who isn't endorsing you

Admins: Please allow blocking WA TGs!
Fora
Anti-R/D demsoc
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!)

E -7.75 S -3.64

User avatar
-Astoria-
Ambassador
 
Posts: 1789
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 | Not based off America; stop it.
Sep 25, 2020
✉ TV1 News: Greens' 'green new deal': what's inside? | 622 RightPrice staff block HQ in strike | Palktyff by bike; a diary | Weather: Footscray ☁ 22° | Altas ⛅ 21° | Esterpine ☂ 20° | Naltgybal ⛅ 20° | Ceirtryn ⛅ 19° | Bynscel ☁ 21° | Lyteel ☂ 20° | Traffic: PA Rte 9: closed up to Rte 8 southbound

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

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


User avatar
Mathuvan Union
Minister
 
Posts: 2323
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: 743
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: [ADS] Crispy skin, tender meat, spiced to perfection. Folks would fry each other for our fried chicken. Call Ostsee Fried Chicken today! | [ADS] Do you like bashing skulls? Do you want to be a Hero of the Riche? Do you enjoy committing warcrim- *AHEM* THE DEATH KORPS INVITES YOU TO FIGHT! Enlist today! | [NAT] Local cheese festival disrupted by appearance of forbidden slime cheese. Young Muren participant who brought said cheese kicked from festival grounds.
Be sure to check Terra Britania's works | 5000 Puppets are ready to be deployed in N-Day.

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: Google Adsense [Bot]

Advertisement

Remove ads