So I'm trying to change the bordercolor of this template to red, but I've tried and nothing seems to work.
https://qcc.fandom.com/wiki/Template:Inactive
So I'm trying to change the bordercolor of this template to red, but I've tried and nothing seems to work.
https://qcc.fandom.com/wiki/Template:Inactive
Okay, I guess I see a little more of your logic in posting it. But the edit has to be done by Fandom anyways.
Yeah, so you should contact staff: support.fandom.com
Like I said, I already reported this exact issue over a year ago. Though I guess I could give it a nudge.
Yeah, report it again
@Andrewds1021 , about the reason why the overriding parameter does not work, it looks like it's because Lua's mw.html library does not keep any order of the properties.
It indeed overrides the values of existing properties in the order you supply them by sequental calls of the library functions, but it treats shorthand ("border:") and longhand ("border-left-color:") separatly. It does not handle cross-overrides and it places them in the final HTML in arbitrary order.
There is some sense in it because Lua table keys don't have any defined order in the first place, so keeping a particular order would require storing that order separately.
I see. It is a bit odd then that the solution has consistently worked in the past. Well, unless the arbitrary order is new with UCP. Regardless, that means the starter version has even more issues than it did before. Even if we go without any custom styling, the default styling is now unpredictable. Here is the default styling for the outer container.
{
['display'] = 'flex',
['position'] = 'relative',
['border'] = '1px solid #d6d6d6',
['border-left-width'] = '8px',
['border-left-color'] = '#d6d6d6',
['border-radius'] = '3px',
['margin-bottom'] = '5px',
['min-height'] = '32px'
}As we can see, it sets both border and border-left-width. Since the order is arbitrary, the 1px width set by border might sometimes override the 8px width for the left border and other times it won't. The effect being that sometimes the left border will display thicker and other times it won't.
I you don't mind saving me the work, where did you see this information about the order being arbitrary?
Well I am a bit assuming here but see the documentation of the next function.
I guess that in practice the internal order probably follows the order you supply it in most cases, it's just not defined.
Do you have an example of a wiki where it does work, with a similar mix of properties? Just curious.
I'm still kind of confused here, but anyway, I used bgcolor and it looks fine. Thanks though!
HumansCanWinElves, Roblox Rise of Nations Wiki. That is the wiki I was comparing to and I was able to get it working (in preview) there. However, it was not working in preview on the wiki in question.
BabyRed69, that is okay. We got into a lot of technical stuff related to the issue that you don't need to worry about. The bottom line is that we have done what we can but there may be issues with the fundamental way the template is intended to work. If anyone can fix that issue, it would have to be Fandom.
In case someone is interested in following the technical discussion further - https://community.fandom.com/wiki/Message_Wall:Andrewds1021?threadId=4400000000003302592
What do you think?