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: 156
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: 1555
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: 757
Founded: Feb 08, 2016
Ex-Nation

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 Minister of Foreign Affairs for The North Pacific, Former Guildmaster of The North Pacific Cards Guild

User avatar
The Northern Light
Spokesperson
 
Posts: 156
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
Ex-Nation

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-
Negotiator
 
Posts: 5537
Founded: Oct 27, 2019
Left-wing Utopia

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

I like this idea.
                                                      Republic of Astoria | Pobolieth Asdair                                                      
Bedhent cewsel ein gweisiau | Our deeds shall speak
IC: FactbooksLocationEmbassiesFAQIntegrity | OOC: CCL's VP • 9th in NSFB#110/10: DGES
 ⌜✉⌟ TV1 News | 2023-04-11  ▶ ⬤──────── (LIVE) |  Headlines  Winter out; spring in for public parks • Environment ministry announces A₤300m in renewables subsidies • "Not enough," say unions on A₤24m planned Govt cost-of-living salary supplement |  Weather  Liskerry ⛅ 13° • Altas ⛅ 10° • Esterpine ☀ 11° • Naltgybal ☁ 14° • Ceirtryn ⛅ 19° • Bynscel ☀ 11° • Lyteel ☔ 9° |  Traffic  ROADWORKS: WRE expwy towards Port Trelyn closed; use Routes P294 northbound; P83 southbound 

User avatar
Mathuvan Union
Negotiator
 
Posts: 5158
Founded: Feb 20, 2020
Ex-Nation

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…
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.
Update: apparently it’s bleating sheep.

User avatar
Merni
Ambassador
 
Posts: 1800
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.
2024: the year of democracy. Vote!
The Labyrinth | Donate your free time, help make free ebooks | Admins: Please let us block WACC TGs!
RIP Residency 3.5.16-18.11.21, killed by simplistic calculation
Political Compass: Economic -9.5 (Left) / Social -3.85 (Liberal)
Wrote issue 1523, GA resolutions 532 and 659
meth
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-
Negotiator
 
Posts: 5537
Founded: Oct 27, 2019
Left-wing Utopia

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 | Pobolieth Asdair                                                      
Bedhent cewsel ein gweisiau | Our deeds shall speak
IC: FactbooksLocationEmbassiesFAQIntegrity | OOC: CCL's VP • 9th in NSFB#110/10: DGES
 ⌜✉⌟ TV1 News | 2023-04-11  ▶ ⬤──────── (LIVE) |  Headlines  Winter out; spring in for public parks • Environment ministry announces A₤300m in renewables subsidies • "Not enough," say unions on A₤24m planned Govt cost-of-living salary supplement |  Weather  Liskerry ⛅ 13° • Altas ⛅ 10° • Esterpine ☀ 11° • Naltgybal ☁ 14° • Ceirtryn ⛅ 19° • Bynscel ☀ 11° • Lyteel ☔ 9° |  Traffic  ROADWORKS: WRE expwy towards Port Trelyn closed; use Routes P294 northbound; P83 southbound 

User avatar
Mathuvan Union
Negotiator
 
Posts: 5158
Founded: Feb 20, 2020
Ex-Nation

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.
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.
Update: apparently it’s bleating sheep.

User avatar
Harmonic Empire
Diplomat
 
Posts: 798
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 | ♛ |
Story of Codex Ylvus will be rewritten and new story will be based on the War in Heaven.
Ase's Book - Eros's Book
Please be sure to check Terra Britania's works! | Someone awakaned me from my long stasis. | Up for a challenge? Just contact me.

User avatar
The Northern Light
Spokesperson
 
Posts: 156
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: Bookment, Inferior, Knights of LUSITANIA, La Xinga, Meadrin, Micro Gettysburg, Montandi-Cisalpina, Pacfican States, Pauriun, Pygania, Sicias, The Micro Union, The Xolbarian Opposition

Advertisement

Remove ads