I was trying to create one for the SimpleFlips page, but it wouldn't autocollapse. Is it because it's not an actual templated navigation box, or do I have to do something different if I'm creating one from scratch? My sandbox has what I put together so far for reference.
Topic on User talk:Looney Toons
May be just buggy. Like PS238/Characters has headers markup present, but doesn't create table of contents.
Those are two completely different issues.
Dealing with the easy one first: PS238/Characters only had three headers before this posting. MediaWiki doesn't generate a table of contents unless there's at least four headers on the page. There is now a TOC on that page, because I took the character names of the first two listed characters (EDIT: and more now, but not yet all) out of the non-standard (and IMHO ugly) markup that somebody added and put the names into header markup while fixing the entries as much as I could. That entire page needs a lot of work; it now has two cleanup boxes at the beginning of the page. That isn't a bug or a feature, it's behaving as designed.
As for the navbox, that might be something that we haven't copied over from Wikipedia yet. This needs to be looked into by a coder who has time, and this weekend isn't a holiday in Canada so that won't be me right now. @GethN7 @Labster @Looney Toons
Or like the equal sign within quote template. My point is, it's big, ridden with such quirks, and documentation mostly consists of reminder notes for those who already know how it all works. It's not a programming language. Some parts may indeed work as intended, but with implicit things documentation itself is several more steps away. This adds up.
I may have a holiday but that doesn't mean I have a lot of free time. I'll note that I've only built navboxes by trial and error and I really don't have a deep understanding of them. However, I'll take a look when I have some time. Where is it and what it is it called?
For mine, it's right here.
Took a quick moment to look at it before I have to leave. One thing I see right away:
state = {{{state|autocollapse}}}
should be
state = autocollapse
And you don't even need to do that because according to the Navbox documentation that's the default.
That might be the crux of it. 6_9 I was copying another template and assumed that had to be left in as is. Thank you.
extra curly brackets is how the example is formatted on Template:Navbox#Usage.
I cribbed from that annual Academy Award winner template somwhere else, actually - it somehow didn't occur to me to go right to that page, god knows why, but I think I have the important stuff figured out now.
And that means that I cribbed from somebody who had the parameter wrong. Sorry about that...
Pf, all good, still on me ultimately (though it's good you're double checking the pages).