Page 1 of 1

[Needs Admin Attention] broken nesting

PostPosted: Thu May 17, 2018 4:30 am
by Potato
https://www.nationstates.net/region=nev ... n_atlantic

At least for me, all the nesting is broken. Doesn't happen on other region pages.

Arkhall wrote:It's placing any BBcode inside the [url]tag. I've tried all other BBcode, replacing the url with an actual link, and its only the bbcode inside the [url=] that breaks it. so [url=[hr]]ee[/url] breaks it, but [url=nationstates.net]ee[/url doesn't.

PostPosted: Thu May 17, 2018 4:42 am
by Trotterdam
Code: Select all
<fieldset class="wfe"><legend>World Factbook Entry</legend>
<p><ul><font color="D713E8"><img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://w<div class=" dispatchsample"><div class="dispatch" data-main-url="nation=the_united_dark_republic/detail=factbook/id=1022244"><div class="dispatchsamplemain"><div class="dispatchheadline"><h2><a href="page=dispatch/id=1022244" class="quietlink">A war on ideology</a></h2><p class="dispatchauthorline">by <a href="nation=blue_sheep" class="nlink"><img src="/images/flags/uploads/blue_sheep__634288t1.jpg" class="smallflag" alt=""><span class="nnameblock"><span class="ntype">The Nomadic Peoples of</span> <span class="nname">Blue Sheep</span></span></a></div>Silver Eagles, an important member of the Regional Front party, has declared that there's a war on conservatism in the NWA, led by liberal elites.<br><hr /><br><hr /><br><hr /><hr /><br><hr /><br><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><br><hr /><br><hr /><hr /><br><hr /><br><hr /><br>Silver Eagles, citing Struberria's many controversial quotes called for all conservatives in the region to fight the ''War on Conservatism'', which is presumed to be led by Struberria and rest of the liberal figures in NWA. His post, pictured on the beginning of the article has a very vague nature, and is likely to develop into a bigger debate that'll give everyone an occasion for critical thinking.</div></div><a class="dispatchreadmore" href="/nation=the_united_dark_republic/detail=factbook/id=1022244"><i class="icon-newspaper"></i>Read factbook</a></div><p>" rel="nofollow" target="_blank"><u><b>Welcome</b></u></a> to the <b>A</b>tlantic || <b><i>Getting Where Together</b></i>[url=&#9812; <b>Eighth Government</b><hr /><b><a href="/hestertic_role_play_region">RP Region</a> :: <a href="//www.nationstates.net/nation=the_united_dark_republic/detail=ok/id=599497">Registry</a> :: <img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://discord.gg/PdNSvnw" rel="nofollow" target="_blank">Discord</a> :: <img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://www.nationstatest/nation=the_united_dark_republic/detail=factbook/id=818942" rel="nofollow" target="_blank">Elections</a></b><hr /> <b>News</b> &#128240;<img src="/images/externallink.gif" alt="Link" class="exlink"><a href="http://regionalnek.weebly.com" rel="nofollow" target="_blank"><b>RNN</b></a> | <img src="/images/externallink.gif" alt="Link" class="exlink"><a href="http://atlanticrbc.weebly.com/" rel="nofollow" target="_blank"><b>RBC</b></a> | <img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://sites.google.com/view/kyrotelegraph/home" rel="nofollow" target="_blank"><b>KYT</b></a> | <img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://woolwarz.wixsite.com/woolwarz" rel="nofollow" target="_blank"><b>WR<li><p>Z</b></a><hr /><b>Activity &#128340;</b></font><ul><font color="37E816"><li><p> <li><p>Regional mem<a href="/bership"> hits all-time high of 279 (41s</a>t in NS), previo<hr />us record was 268 residents.<li><p> Elected and reelectare now sworn-in; Constructivcoalition.<li><p> Click <b><img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://docs.google.com/forms/d/1Q &#64;z8I0FZthE1GUADGuHrWrhY97mN Wx-AtQBFfKV" rel="nofollow" target="_blank">YNphI/viewform?edit_requested=true]Here</a></b> to sign up for <a href="//www.nationstates.net/region=new_western_atlantic_role_play_region">Roleplay</a>.</ul><p><hr /><i> Please join the <a href="//www.nationstates.net/page=un">World Assembly to incre</a>ase regional, aand endorse <span class="nnameblock">Tuntd da rblic<a href="/page=boneyard?nation=tuntd_da_rblic"><i class="icon-monument"></i></a></span></i>.<fieldset class="rmbquoted"><legend><a href="/page=help" class="modtag">NationStates Moderators</a> wrote:</legend><a href="page=rmb/postid=27308224"><img src="/images/externallink.gif" class="rmbquotelink"></a><i>Have</i></fieldset><p></font></ul></p>
</fieldset>


Some highlights:
Code: Select all
<a href="https://w<div class=" dispatchsample">
Code: Select all
Regional mem<a href="/bership"> hits all-time high of 279 (41s</a>t in NS), previo<hr />us record was 268 residents.
Well, that can't be good.

The main problem seems to be the "included dispatch" not working properly in regional factbooks, although I suspect other coding errors on Blue Sheep's part. Can anyone post the BBcode for the regional factbook in question?

PostPosted: Thu May 17, 2018 4:48 am
by Arkhall
Trotterdam wrote:
Code: Select all
<fieldset class="wfe"><legend>World Factbook Entry</legend>
<p><ul><font color="D713E8"><img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://w<div class=" dispatchsample"><div class="dispatch" data-main-url="nation=the_united_dark_republic/detail=factbook/id=1022244"><div class="dispatchsamplemain"><div class="dispatchheadline"><h2><a href="page=dispatch/id=1022244" class="quietlink">A war on ideology</a></h2><p class="dispatchauthorline">by <a href="nation=blue_sheep" class="nlink"><img src="/images/flags/uploads/blue_sheep__634288t1.jpg" class="smallflag" alt=""><span class="nnameblock"><span class="ntype">The Nomadic Peoples of</span> <span class="nname">Blue Sheep</span></span></a></div>Silver Eagles, an important member of the Regional Front party, has declared that there's a war on conservatism in the NWA, led by liberal elites.<br><hr /><br><hr /><br><hr /><hr /><br><hr /><br><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><hr /><br><hr /><br><hr /><hr /><hr /><br><hr /><br><hr /><hr /><br><hr /><br><hr /><br>Silver Eagles, citing Struberria's many controversial quotes called for all conservatives in the region to fight the ''War on Conservatism'', which is presumed to be led by Struberria and rest of the liberal figures in NWA. His post, pictured on the beginning of the article has a very vague nature, and is likely to develop into a bigger debate that'll give everyone an occasion for critical thinking.</div></div><a class="dispatchreadmore" href="/nation=the_united_dark_republic/detail=factbook/id=1022244"><i class="icon-newspaper"></i>Read factbook</a></div><p>" rel="nofollow" target="_blank"><u><b>Welcome</b></u></a> to the <b>A</b>tlantic || <b><i>Getting Where Together</b></i>[url=&#9812; <b>Eighth Government</b><hr /><b><a href="/hestertic_role_play_region">RP Region</a> :: <a href="//www.nationstates.net/nation=the_united_dark_republic/detail=ok/id=599497">Registry</a> :: <img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://discord.gg/PdNSvnw" rel="nofollow" target="_blank">Discord</a> :: <img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://www.nationstatest/nation=the_united_dark_republic/detail=factbook/id=818942" rel="nofollow" target="_blank">Elections</a></b><hr /> <b>News</b> &#128240;<img src="/images/externallink.gif" alt="Link" class="exlink"><a href="http://regionalnek.weebly.com" rel="nofollow" target="_blank"><b>RNN</b></a> | <img src="/images/externallink.gif" alt="Link" class="exlink"><a href="http://atlanticrbc.weebly.com/" rel="nofollow" target="_blank"><b>RBC</b></a> | <img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://sites.google.com/view/kyrotelegraph/home" rel="nofollow" target="_blank"><b>KYT</b></a> | <img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://woolwarz.wixsite.com/woolwarz" rel="nofollow" target="_blank"><b>WR<li><p>Z</b></a><hr /><b>Activity &#128340;</b></font><ul><font color="37E816"><li><p> <li><p>Regional mem<a href="/bership"> hits all-time high of 279 (41s</a>t in NS), previo<hr />us record was 268 residents.<li><p> Elected and reelectare now sworn-in; Constructivcoalition.<li><p> Click <b><img src="/images/externallink.gif" alt="Link" class="exlink"><a href="https://docs.google.com/forms/d/1Q &#64;z8I0FZthE1GUADGuHrWrhY97mN Wx-AtQBFfKV" rel="nofollow" target="_blank">YNphI/viewform?edit_requested=true]Here</a></b> to sign up for <a href="//www.nationstates.net/region=new_western_atlantic_role_play_region">Roleplay</a>.</ul><p><hr /><i> Please join the <a href="//www.nationstates.net/page=un">World Assembly to incre</a>ase regional, aand endorse <span class="nnameblock">Tuntd da rblic<a href="/page=boneyard?nation=tuntd_da_rblic"><i class="icon-monument"></i></a></span></i>.<fieldset class="rmbquoted"><legend><a href="/page=help" class="modtag">NationStates Moderators</a> wrote:</legend><a href="page=rmb/postid=27308224"><img src="/images/externallink.gif" class="rmbquotelink"></a><i>Have</i></fieldset><p></font></ul></p>
</fieldset>


Some highlights:
Code: Select all
<a href="https://w<div class=" dispatchsample">
Code: Select all
Regional mem<a href="/bership"> hits all-time high of 279 (41s</a>t in NS), previo<hr />us record was 268 residents.
Well, that can't be good.

The main problem seems to be the "included dispatch" not working properly in regional factbooks, although I suspect other coding errors on Blue Sheep's part. Can anyone post the BBcode for the regional factbook in question?


Code: Select all
Silver Eagles, an important member of the Regional Front party, has declared that there's a war on conservatism in the NWA, led by liberal elites.
[hr]
[hr]
[hr][hr]
[hr]
[hr][hr][hr]
[hr]
[hr][hr][hr][hr]
[hr]
[hr][hr][hr][hr][hr]
[hr]
[hr][hr][hr][hr][hr][hr]
[hr]
[hr][hr][hr][hr][hr]
[hr]
[hr][hr][hr][hr]
[hr]
[hr][hr][hr]
[hr]
[hr][hr]
[hr]
[hr]
Silver Eagles, citing Struberria's many controversial quotes called for all conservatives in the region to fight the ''War on Conservatism'', which is presumed to be led by Struberria and rest of the liberal figures in NWA. His post, pictured on the beginning of the article has a very vague nature, and is likely to develop into a bigger debate that'll give everyone an occasion for critical thinking.

PostPosted: Thu May 17, 2018 4:51 am
by Arkhall
I'm going to make a region and try doing the same thing, posting that factbook and using that WFE. See if it breaks again or if its just that region.

PostPosted: Thu May 17, 2018 4:54 am
by Sakhalinsk Wikipedia
I tried it (this is a puppet of The Sakhalinsk Empire) and it works for me.

PostPosted: Thu May 17, 2018 4:56 am
by Trotterdam
Sakhalinsk Wikipedia wrote:I tried it (this is a puppet of The Sakhalinsk Empire) and it works for me.
No, you're doing it wrong. Try linking the factbook, rather than copying it.

PostPosted: Thu May 17, 2018 4:57 am
by Arkhall
Arkhall wrote:I'm going to make a region and try doing the same thing, posting that factbook and using that WFE. See if it breaks again or if its just that region.

No matter how much of the WFE I put in, it says it's too long, unless its just the dispatch.

This is the biggest I can get the WFE, for some reason.
Code: Select all
[list][color=D713E8][url=https://wnationstates.net/nation=the_united_dark_republic/detail=factbook/id=1022244][u][b]Welcome[/b][/u][/url] to the [b]A[/b]tlantic || [b][i]Getting Where Together[/b][/i][url=♔ [b]Eighth Government[/b][hr][b][url=hestertic_role_play_region]RP Region[/url] ::

PostPosted: Thu May 17, 2018 4:59 am
by Arkhall
Arkhall wrote:
Arkhall wrote:I'm going to make a region and try doing the same thing, posting that factbook and using that WFE. See if it breaks again or if its just that region.

No matter how much of the WFE I put in, it says it's too long, unless its just the dispatch.

This is the biggest I can get the WFE, for some reason.
Code: Select all
[list][color=D713E8][url=https://wnationstates.net/nation=the_united_dark_republic/detail=factbook/id=1022244][u][b]Welcome[/b][/u][/url] to the [b]A[/b]tlantic || [b][i]Getting Where Together[/b][/i][url=♔ [b]Eighth Government[/b][hr][b][url=hestertic_role_play_region]RP Region[/url] ::

https://www.nationstates.net/region=nev ... _atlantica

It breaks the nesting again, either way.

PostPosted: Thu May 17, 2018 5:07 am
by Trotterdam
Wait, I found a way to acquire the BBcode. It's returned by the API.

Code: Select all
[list][color=D713E8][url=https://wnationstates.net/nation=the_united_dark_republic/detail=factbook/id=1022244][u][b]Welcome[/b][/u][/url] to the [b]A[/b]tlantic || [b][i]Getting Where Together[/b][/i][url=&amp;#9812; [b]Eighth Government[/b][hr][b][url=hestertic_role_play_region]RP Region[/url] :: [url=https://www.nationstates.net/nation=the_united_dark_republic/detail=ok/id=599497]Registry[/url] :: [url=https://discord.gg/PdNSvnw]Discord[/url] :: [url=https://www.nationstatest/nation=the_united_dark_republic/detail=factbook/id=818942]Elections[/url][/b][hr] [b]News[/b] &amp;#128240;[url=http://regionalnek.weebly.com][b]RNN[/b][/url] | [url=http://atlanticrbc.weebly.com/][b]RBC[/b][/url] | [url=https://sites.google.com/view/kyrotelegraph/home][b]KYT[/b][/url] | [url=https://woolwarz.wixsite.com/woolwarz][b]WR[*]Z[/b][/url][hr][b]Activity &amp;#128340;[/b][/color][list][color=37E816][*] [*]Regional mem[url=bership] hits all-time high of 279 (41s[/url]t in NS), previo[hr]us record was 268 residents.[*] Elected and reelectare now sworn-in; Constructivcoalition.[*] Click [b][url=https://docs.google.com/forms/d/1Q &amp;#64;z8I0FZthE1GUADGuHrWrhY97mN Wx-AtQBFfKV]YNphI/viewform?edit_requested=true]Here[/url][/b] to sign up for [url=https://www.nationstates.net/region=new_western_atlantic_role_play_region]Roleplay[/url].[/list][hr][i] Please join the [url=https://www.nationstates.net/page=un]World Assembly to incre[/url]ase regional, aand endorse [nation=short+noflag]TUntd Da Rblic[/nation][/i].[quote=NationStates Moderators;27308224][i]Have[/i][/quote][/color]


Okay, there are defintely some problems here.

The [list] tag is misnested with the [color] tag. The [color] and the first [url] tag are miscoded, though in a way that shouldn't cause a formatting break. The second [url] "tag", well...
Code: Select all
[url=&amp;#9812; [b]Eighth Government[/b][hr][b][url=hestertic_role_play_region]RP Region[/url]
That's definitely a problem.

The "regional membersship" line is just as broken in the BBcode as the HTML result suggested.

And then there's this:
Code: Select all
[url=https://docs.google.com/forms/d/1Q &amp;#64;z8I0FZthE1GUADGuHrWrhY97mN Wx-AtQBFfKV]YNphI/viewform?edit_requested=true]
So somehow "@" became "&#64;" which then became "&amp;#64;", and I'm pretty sure you're not even supposed to use character entities in URLs anyway.

PostPosted: Thu May 17, 2018 5:10 am
by He Qixin
Arkhall wrote:
Arkhall wrote:No matter how much of the WFE I put in, it says it's too long, unless its just the dispatch.

This is the biggest I can get the WFE, for some reason.
Code: Select all
[list][color=D713E8][url=https://wnationstates.net/nation=the_united_dark_republic/detail=factbook/id=1022244][u][b]Welcome[/b][/u][/url] to the [b]A[/b]tlantic || [b][i]Getting Where Together[/b][/i][url=♔ [b]Eighth Government[/b][hr][b][url=hestertic_role_play_region]RP Region[/url] ::

https://www.nationstates.net/region=nev ... _atlantica

It breaks the nesting again, either way.

Can I see what you did? The nesting doesn't break for my region.

PostPosted: Thu May 17, 2018 5:13 am
by Arkhall
He Qixin wrote:
Arkhall wrote:https://www.nationstates.net/region=nev ... _atlantica

It breaks the nesting again, either way.

Can I see what you did? The nesting doesn't break for my region.

I just copy pasted the code and removed until it let it update. It probably has to do with the weird code itself, not just the factbook.

PostPosted: Thu May 17, 2018 5:16 am
by Arkhall
It could be that "[url=♔]" tag that's breaking it.

PostPosted: Thu May 17, 2018 5:19 am
by He Qixin
Arkhall wrote:It could be that "[url=♔]" tag that's breaking it.

very likely wait nope

i tried it again, and it broke nesting. gr8

PostPosted: Thu May 17, 2018 5:25 am
by Arkhall
He Qixin wrote:
Arkhall wrote:It could be that "[url=♔]" tag that's breaking it.

very likely wait nope

i tried it again, and it broke nesting. gr8

It's placing any BBcode inside the [url=] tag. I've tried all other BBcode, replacing the url with an actual link, and its only the bbcode inside the [url=] that breaks it. so [url=[hr]]ee[/url] breaks it, but [url=nationstates.net]ee[/url doesn't.

PostPosted: Thu May 17, 2018 5:30 am
by He Qixin
Arkhall wrote:
He Qixin wrote:very likely wait nope

i tried it again, and it broke nesting. gr8

It's placing any BBcode inside the [url]tag. I've tried all other BBcode, replacing the url with an actual link, and its only the bbcode inside the [url=] that breaks it. so [url=[hr]]ee[/url] breaks it, but [url=nationstates.net]ee[/url doesn't.

yep, the [url=] tag definitely seems to be buggy.

PostPosted: Thu May 17, 2018 5:55 am
by Potato
Trotterdam wrote:Wait, I found a way to acquire the BBcode. It's returned by the API.

Code: Select all
[list][color=D713E8][url=https://wnationstates.net/nation=the_united_dark_republic/detail=factbook/id=1022244][u][b]Welcome[/b][/u][/url] to the [b]A[/b]tlantic || [b][i]Getting Where Together[/b][/i][url=&amp;#9812; [b]Eighth Government[/b][hr][b][url=hestertic_role_play_region]RP Region[/url] :: [url=https://www.nationstates.net/nation=the_united_dark_republic/detail=ok/id=599497]Registry[/url] :: [url=https://discord.gg/PdNSvnw]Discord[/url] :: [url=https://www.nationstatest/nation=the_united_dark_republic/detail=factbook/id=818942]Elections[/url][/b][hr] [b]News[/b] &amp;#128240;[url=http://regionalnek.weebly.com][b]RNN[/b][/url] | [url=http://atlanticrbc.weebly.com/][b]RBC[/b][/url] | [url=https://sites.google.com/view/kyrotelegraph/home][b]KYT[/b][/url] | [url=https://woolwarz.wixsite.com/woolwarz][b]WR[*]Z[/b][/url][hr][b]Activity &amp;#128340;[/b][/color][list][color=37E816][*] [*]Regional mem[url=bership] hits all-time high of 279 (41s[/url]t in NS), previo[hr]us record was 268 residents.[*] Elected and reelectare now sworn-in; Constructivcoalition.[*] Click [b][url=https://docs.google.com/forms/d/1Q &amp;#64;z8I0FZthE1GUADGuHrWrhY97mN Wx-AtQBFfKV]YNphI/viewform?edit_requested=true]Here[/url][/b] to sign up for [url=https://www.nationstates.net/region=new_western_atlantic_role_play_region]Roleplay[/url].[/list][hr][i] Please join the [url=https://www.nationstates.net/page=un]World Assembly to incre[/url]ase regional, aand endorse [nation=short+noflag]TUntd Da Rblic[/nation][/i].[quote=NationStates Moderators;27308224][i]Have[/i][/quote][/color]


Okay, there are defintely some problems here.

The [list] tag is misnested with the [color] tag. The [color] and the first [url] tag are miscoded, though in a way that shouldn't cause a formatting break. The second [url] "tag", well...
Code: Select all
[url=&amp;#9812; [b]Eighth Government[/b][hr][b][url=hestertic_role_play_region]RP Region[/url]
That's definitely a problem.

The "regional membersship" line is just as broken in the BBcode as the HTML result suggested.

And then there's this:
Code: Select all
[url=https://docs.google.com/forms/d/1Q &amp;#64;z8I0FZthE1GUADGuHrWrhY97mN Wx-AtQBFfKV]YNphI/viewform?edit_requested=true]
So somehow "@" became "&#64;" which then became "&amp;#64;", and I'm pretty sure you're not even supposed to use character entities in URLs anyway.

oh also

you dont need to use api

http://udl.taijitu.org/wfe_index/

xd

PostPosted: Thu May 17, 2018 6:01 am
by Trotterdam
Potato wrote:oh also

you dont need to use api

http://udl.taijitu.org/wfe_index/

xd
I'm pretty sure that site gets its factbooks from the API.

PostPosted: Thu May 17, 2018 6:02 am
by Potato
Trotterdam wrote:
Potato wrote:oh also

you dont need to use api

http://udl.taijitu.org/wfe_index/

xd
I'm pretty sure that site gets its factbooks from the API.

/shrug

Either way works, my point was that you don't need to find the API for it.

PostPosted: Thu May 17, 2018 6:26 am
by Trotterdam
I'm pretty sure that the API is, in fact, the more convenient way of doing this, given that the API is on the site itself, is the primary source, gives the most up-to-date results, and I'm already familiar with using the API for numerous other stuff.

PostPosted: Thu May 17, 2018 6:28 am
by Potato
Trotterdam wrote:I'm pretty sure that the API is, in fact, the more convenient way of doing this, given that the API is on the site itself, is the primary source, gives the most up-to-date results, and I'm already familiar with using the API for numerous other stuff.

a-ok

I personally don't know how to find or use the API, so I'll just let you do you

PostPosted: Mon May 21, 2018 4:52 am
by Wings of Amnesty
Bumperino.

PostPosted: Mon May 21, 2018 4:32 pm
by Eluvatar
This is certainly annoying. I'd rather you fix your bbcode in the short term than wait for us to fix the NSCode parser for this case.

We should fix it though.