NATION

PASSWORD

Dispatch formatting - a potentially breaking change

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.

Advertisement

Remove ads

User avatar
Sub Sector Protractis
Diplomat
 
Posts: 521
Founded: Sep 24, 2012
Iron Fist Consumerists

Postby Sub Sector Protractis » Sun Nov 08, 2020 11:53 am

Would this possibly be the cause of several Factbook images now displaying the Grey box of doom? Or is there some other cause for that?
A 6.1 civilization, according to this index.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Sun Nov 08, 2020 4:42 pm

Sub Sector Protractis wrote:Would this possibly be the cause of several Factbook images now displaying the Grey box of doom? Or is there some other cause for that?

Got an example?

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Sun Nov 08, 2020 5:27 pm

I've tweaked how "table=noheader" works and added "table=plainheader."

See this dispatch for an example: https://www.nationstates.net/page=dispatch/id=1458836

Please note that these are still in testing, so don't go changing all your Dispatches just yet.

This gives you four ways to style tables: with default styling, with no styling at all ("plain"), with a header row that you style yourself ("plainheader"), and with default styling but the header is treated as a regular row ("noheader").

Please report bugs & weirdness!

User avatar
Khoronzon
Spokesperson
 
Posts: 187
Founded: Jul 31, 2019
Ex-Nation

Postby Khoronzon » Sun Nov 08, 2020 5:34 pm

The hover highlighting for every table except table=plain seems a bit broken, at least on dark mode. Table=plain has a normal grey background on highlighted rows, while the others turn white instead and look really garish. The highlighting for table=noheader's header row also doesn't really show up properly - it normally appears with a grey background, and when you hover over it, the only change is a few white pixels around the corners of the row.

Here's what it looks like with nothing highlighted: https://i.imgur.com/fcdQAlG.png

Here's table=plain highlighted (it looks the same on both the header row and the normal row, though only the header row has rounded top corners): https://i.imgur.com/WC0KjMJ.png

Here's what highlighted normal rows on non-plain tables look like (this applies to table, table=plainheader, and table=noheader): https://i.imgur.com/8GwkxGz.png

And here's what the highlighted header row on table=noheader looks like (compared to the header row on table=plainheader above it, which is how it looks without highlighting): https://i.imgur.com/qsxOtWE.png
Last edited by Khoronzon on Sun Nov 08, 2020 5:40 pm, edited 1 time in total.
Vʏʜʜ Xsʜʀ Xsʜʀɪɴ Tʜʀʜ
Leader
Figures
Culture
Regions
Military
World
The world is no longer as it once was, moulded beyond recognition by the hands of its coming masters. Humanity is faced with a simple choice: evolve, or die.

△▽△
[all lore is under reconstruction]
▽△▽
ooc: they/them/girl/boss - notorious wumao - blowfly creature
flag homies: the celestial shurayu republic and uij, checkem out they're v based
all rise for the national anthem

中国共产党万岁

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Sun Nov 08, 2020 5:55 pm

D V wrote:Is there any chance we could get something similar for [tr] (like [tr=3]) ? I've had some wikipedia-like table designs I've wanted to do for my region, but have had to do them via off-site means (which hasn't been all that easy, as nobody can help me with keeping it up to date, so I've yet to make it a public thing/open it to very many people). An example of what I mean: https://imgur.com/a/Jx3CLgL .

Okay, just for you.

You still need to apply the number to the [td] element (not tr), but if you prepend the number with "r", you get rowspan instead of colspan. For example, to make a table cell span two rows: [td=r2]

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Sun Nov 08, 2020 6:07 pm

Khoronzon wrote:The hover highlighting for every table except table=plain seems a bit broken, at least on dark mode.

Thanks for the comprehensive report. I've updated the Dark, Century Dark, and Antiquity themes.

User avatar
Trotterdam
Postmaster-General
 
Posts: 10541
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Sun Nov 08, 2020 10:52 pm

[violet] wrote:You still need to apply the number to the [td] element (not tr), but if you prepend the number with "r", you get rowspan instead of colspan. For example, to make a table cell span two rows: [td=r2]
What if you want to span both rows and columns?

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

Postby Merni » Mon Nov 09, 2020 3:50 am

Trotterdam wrote:
[violet] wrote:You still need to apply the number to the [td] element (not tr), but if you prepend the number with "r", you get rowspan instead of colspan. For example, to make a table cell span two rows: [td=r2]
What if you want to span both rows and columns?

You use Excel, for God's sake. :p
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
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Mon Nov 09, 2020 5:01 pm

Trotterdam wrote:
[violet] wrote:You still need to apply the number to the [td] element (not tr), but if you prepend the number with "r", you get rowspan instead of colspan. For example, to make a table cell span two rows: [td=r2]
What if you want to span both rows and columns?

Oh, a wise guy!

Okay, you can now do [td=2r2] for a cell that spans 2 columns and 2 rows. Or, if you prefer to be explicit, [td=c2r2]. Example.

User avatar
Sub Sector Protractis
Diplomat
 
Posts: 521
Founded: Sep 24, 2012
Iron Fist Consumerists

Postby Sub Sector Protractis » Mon Nov 09, 2020 6:24 pm

[violet] wrote:
Sub Sector Protractis wrote:Would this possibly be the cause of several Factbook images now displaying the Grey box of doom? Or is there some other cause for that?

Got an example?


https://www.nationstates.net/nation=sub_sector_protractis/detail=factbook/id=741709
A 6.1 civilization, according to this index.

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Mon Nov 09, 2020 6:45 pm

Can you provide a screenshot of the problem? I don't see any issues with the Dispatch, but it's very long, so maybe I missed it.

User avatar
Khoronzon
Spokesperson
 
Posts: 187
Founded: Jul 31, 2019
Ex-Nation

Postby Khoronzon » Mon Nov 09, 2020 7:25 pm


I just looked through it myself, and the only real problem I saw with any of the images was one of them, in the last batch of images under the "Fallen House of Castamere" spoiler, being broken. This wasn't actually because of any problems with NS code, it's because the image URL itself (http://pro.bols.netdna-cdn.com/wp-content/uploads/2015/12/Chaos-Cultist.jpg) doesn't work. I'm assuming the "grey box of doom" is the loading icon for factbook images, in which case your problem is most likely that there's too many large images in the factbook which take a long time to load.
Vʏʜʜ Xsʜʀ Xsʜʀɪɴ Tʜʀʜ
Leader
Figures
Culture
Regions
Military
World
The world is no longer as it once was, moulded beyond recognition by the hands of its coming masters. Humanity is faced with a simple choice: evolve, or die.

△▽△
[all lore is under reconstruction]
▽△▽
ooc: they/them/girl/boss - notorious wumao - blowfly creature
flag homies: the celestial shurayu republic and uij, checkem out they're v based
all rise for the national anthem

中国共产党万岁

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

Postby The Northern Light » Tue Nov 10, 2020 8:56 pm

[violet] wrote:I've tweaked how "table=noheader" works and added "table=plainheader."

See this dispatch for an example: https://www.nationstates.net/page=dispatch/id=1458836

Please note that these are still in testing, so don't go changing all your Dispatches just yet.

This gives you four ways to style tables: with default styling, with no styling at all ("plain"), with a header row that you style yourself ("plainheader"), and with default styling but the header is treated as a regular row ("noheader").

Please report bugs & weirdness!

Thanks for the additional header options! I tried them out in a few dispatches, so far no issues.
Last edited by The Northern Light on Tue Nov 10, 2020 8:57 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
Soleanna
Diplomat
 
Posts: 815
Founded: May 09, 2017
Inoffensive Centrist Democracy

Postby Soleanna » Wed Nov 11, 2020 11:15 am

So Ummm what happened? Dispatch table rows/columns are no longer spaced out and bunched up together now.
Last edited by Soleanna on Wed Nov 11, 2020 11:16 am, edited 1 time in total.
  • NS Stats are not used
  • Soleanna's name was derived from Sonic the Hedgehog 2006, although not much else is relative to the game, besides symbolic tributes.
  • All graphics were designed by myself, if not modified to my liking. Using my graphics requires prior consent.
  • The World Assembly is the actual tyrant here, stripping nations of their sovereign rights | ( ͝° ͜ʖ͡°)つ[WA = Tyranny]

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Wed Nov 11, 2020 4:06 pm

Soleanna wrote:So Ummm what happened? Dispatch table rows/columns are no longer spaced out and bunched up together now.

Got an example?

edit: I think I see it. Should be fixed now.
Last edited by [violet] on Wed Nov 11, 2020 4:11 pm, edited 1 time in total.

User avatar
Soleanna
Diplomat
 
Posts: 815
Founded: May 09, 2017
Inoffensive Centrist Democracy

Postby Soleanna » Wed Nov 11, 2020 5:21 pm

[violet] wrote:
Soleanna wrote:So Ummm what happened? Dispatch table rows/columns are no longer spaced out and bunched up together now.

Got an example?

edit: I think I see it. Should be fixed now.


Yeah, it's fixed! Thank you :lol:
  • NS Stats are not used
  • Soleanna's name was derived from Sonic the Hedgehog 2006, although not much else is relative to the game, besides symbolic tributes.
  • All graphics were designed by myself, if not modified to my liking. Using my graphics requires prior consent.
  • The World Assembly is the actual tyrant here, stripping nations of their sovereign rights | ( ͝° ͜ʖ͡°)つ[WA = Tyranny]

User avatar
Holland DS6
Envoy
 
Posts: 226
Founded: Dec 06, 2019
Ex-Nation

Postby Holland DS6 » Wed Nov 11, 2020 11:03 pm

A little bit away from the tables and images, but what happened to the colored names for the spoiler titles? I noticed in and I was trying to help out in a test factbook with my puppet Mini Me For Cards but had no luck. I tried a lot of ways to have the tags in different orders, background tags, background-box tags, whatever
like this

[spoiler=When color is wanted in the title, it looks like this (at least in forums it does here)] Not as good[/spoiler]
The color in the titles definately worked before, but it isn't working in foums

Ruins the feel of the effect, but its just a bug in the system
Last edited by Holland DS6 on Wed Nov 11, 2020 11:10 pm, edited 1 time in total.
If you want to send me any cards, best if you send it to this one, Holland DS6, I just need more bank on this account if I want to upgrade the limit, but I just keep wanting to buy cards worth more, cards I like or cards for a collection that I am working on, I already had a lot of cards in the catagory, so mind as well make it an official collection that I could possibly already complete. I try not to break the rules, so if I do it by accident, please just tell me mods, although it would have to be through the TG only for mods, like Ransium had to due to class region. I didn't really check for spellings, so it may be a little unclear, sorry. :P More in my factbook on card+gifts.
Finally getting my own card soon!

User avatar
[violet]
Executive Director
 
Posts: 16205
Founded: Antiquity

Postby [violet] » Thu Nov 12, 2020 6:20 pm

Holland DS6 wrote:A little bit away from the tables and images, but what happened to the colored names for the spoiler titles? I noticed in and I was trying to help out in a test factbook with my puppet Mini Me For Cards but had no luck. I tried a lot of ways to have the tags in different orders, background tags, background-box tags, whatever
like this

[spoiler=When color is wanted in the title, it looks like this (at least in forums it does here)] Not as good[/spoiler]
The color in the titles definately worked before, but it isn't working in foums

Ruins the feel of the effect, but its just a bug in the system

I'm not sure I understand the issue... you can make colored spoiler text, but I don't see any attempt at it in the dispatch you linked.

Here is a dispatch with colored spoiler text: https://www.nationstates.net/page=dispatch/id=1460885

User avatar
Holland DS6
Envoy
 
Posts: 226
Founded: Dec 06, 2019
Ex-Nation

Postby Holland DS6 » Thu Nov 12, 2020 7:41 pm

[violet] wrote:
Holland DS6 wrote:A little bit away from the tables and images, but what happened to the colored names for the spoiler titles? I noticed in and I was trying to help out in a test factbook with my puppet Mini Me For Cards but had no luck. I tried a lot of ways to have the tags in different orders, background tags, background-box tags, whatever
like this

[spoiler=When color is wanted in the title, it looks like this (at least in forums it does here)] Not as good[/spoiler]
The color in the titles definately worked before, but it isn't working in foums

Ruins the feel of the effect, but its just a bug in the system

I'm not sure I understand the issue... you can make colored spoiler text, but I don't see any attempt at it in the dispatch you linked.

Here is a dispatch with colored spoiler text: https://www.nationstates.net/page=dispatch/id=1460885

Yea, that works now. I noticed that I myself messed up a placement of a ], but I don't know about the dispatch I talked about, But all of the spoiler titles was something like: ([color=maroon] Try This!) With the end color tag hidden by the actual spoiler. I tried in this forum post itself, but it doesn't create the spoiler correctly, just the code still there like [spoiler= {color=any color I tried} whatever title] {/color} Text inside the spoiler[/spoiler], perposely replaced all [] with shifted {}
If you want to send me any cards, best if you send it to this one, Holland DS6, I just need more bank on this account if I want to upgrade the limit, but I just keep wanting to buy cards worth more, cards I like or cards for a collection that I am working on, I already had a lot of cards in the catagory, so mind as well make it an official collection that I could possibly already complete. I try not to break the rules, so if I do it by accident, please just tell me mods, although it would have to be through the TG only for mods, like Ransium had to due to class region. I didn't really check for spellings, so it may be a little unclear, sorry. :P More in my factbook on card+gifts.
Finally getting my own card soon!

User avatar
Estado Novo Portugues
Diplomat
 
Posts: 841
Founded: Mar 18, 2016
Iron Fist Consumerists

Postby Estado Novo Portugues » Sat Feb 20, 2021 11:05 pm

[violet] wrote:
D V wrote:Is there any chance we could get something similar for [tr] (like [tr=3]) ? I've had some wikipedia-like table designs I've wanted to do for my region, but have had to do them via off-site means (which hasn't been all that easy, as nobody can help me with keeping it up to date, so I've yet to make it a public thing/open it to very many people). An example of what I mean: https://imgur.com/a/Jx3CLgL .

Okay, just for you.

You still need to apply the number to the [td] element (not tr), but if you prepend the number with "r", you get rowspan instead of colspan. For example, to make a table cell span two rows: [td=r2]

Sorry for bumping this, but is there a chance this multi-row/multi-column table functionality could be added to the forum as well, in the future? Thanks!
IC name: Holy and Pontifical State of Portugal
Posts before 2021 aren't canon.

Previous

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Gegia, Hujonlu, IDEVK, Lemonburgs, Mal SUncu, Micro Gettysburg, Ukraine-0, Umbratellus, Unionised States, Uvolla

Advertisement

Remove ads