Template talk:Subpages: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Ryan McCue
No edit summary
imported>Ryan McCue
No edit summary
Line 1: Line 1:
__FORCETOC__
== Subpages error ==
Help!
Help!


Line 28: Line 30:
I'm done for the day!  Feel free to tweak it until it's completely right. --[[User:Larry Sanger|Larry Sanger]] 22:40, 5 July 2007 (CDT)
I'm done for the day!  Feel free to tweak it until it's completely right. --[[User:Larry Sanger|Larry Sanger]] 22:40, 5 July 2007 (CDT)
:I'll take a look, but I don't know if I will be able to do it. I should be able to though [[User:Ryan McCue|Ryan McCue]] <sup>[[User_talk:Ryan McCue|Let's have a chat]]</sup> 22:47, 5 July 2007 (CDT)
:I'll take a look, but I don't know if I will be able to do it. I should be able to though [[User:Ryan McCue|Ryan McCue]] <sup>[[User_talk:Ryan McCue|Let's have a chat]]</sup> 22:47, 5 July 2007 (CDT)
::I think that it may require a specialised extension, as MediaWiki won't let me input raw HTML code. I can write it as an extension if you'd like. [[User:Ryan McCue|Ryan McCue]] <sup>[[User_talk:Ryan McCue|Let's have a chat]]</sup> 23:50, 5 July 2007 (CDT)

Revision as of 22:48, 5 July 2007

Subpages error

Help!

How can I get rid of the hyphens? Stupid script uses '|' as punctuation and then (apparently?) doesn't give me a way to escape it...? --Larry Sanger 21:26, 5 July 2007 (CDT)

You need to replace all the table |s with {{{!}} - I'll do it for you. Ryan McCue Let's have a chat 21:48, 5 July 2007 (CDT)
Or not, seeing as you're moving it to a different template Ryan McCue Let's have a chat 21:50, 5 July 2007 (CDT)

Oops, too late! But thanks.

It was a kluge anyway, but maybe not. I think we want to keep the table stuff separate from the canonical list of subpages. Now to move the logic to a subpage, too... --Larry Sanger 21:52, 5 July 2007 (CDT)

Doesn't seem to work on my test page, doesn't seem to recognise that it's in a table. Ryan McCue Let's have a chat 21:59, 5 July 2007 (CDT)

Very strange. I don't know why it isn't working identically on our different sets of test pages. --Larry Sanger 22:16, 5 July 2007 (CDT)

I think I know why now. It's fine with the catalogs one, until after it. The first catalogs link should be deleted anyway, as there is already one at the bottom. Ryan McCue Let's have a chat 22:25, 5 July 2007 (CDT)

Good job Ryan, looks like you fixed it. --Larry Sanger 22:34, 5 July 2007 (CDT)

It was with the HTML comments, MediaWiki didn't recognise them as a line break. Ryan McCue Let's have a chat 22:42, 5 July 2007 (CDT)

We're back to having unnecessary extra spaces at the bottom of the table... --Larry Sanger 22:40, 5 July 2007 (CDT)

Yes, I noticed that afterwards. I'll see if I can get that fixed. Ryan McCue Let's have a chat 22:47, 5 July 2007 (CDT)

OK, I'll let you bang at it, I really am going to bed now. --Larry Sanger 22:51, 5 July 2007 (CDT)

Et viola! I have finished. There is one caveat. The "Canonical list on pages" HTML comment had to be noincluded, as it was causing a linebreak. Other than that, it should now work perfectly. Ryan McCue Let's have a chat 23:24, 5 July 2007 (CDT)

Drop-down box used to create new subpages?

OK, if you can pull this off, it would be very cool. I think MediaWiki will let you do it. Make a drop-down box that is put at the bottom cell of the Subpages table, with the options of all unused subpage types. If the user selects an option, it opens up a blank page with the correct name. Bonus if {{subpage}} appears at the top of this blank page automatically.

Is this possible? --Larry Sanger 22:39, 5 July 2007 (CDT)

I'm done for the day! Feel free to tweak it until it's completely right. --Larry Sanger 22:40, 5 July 2007 (CDT)

I'll take a look, but I don't know if I will be able to do it. I should be able to though Ryan McCue Let's have a chat 22:47, 5 July 2007 (CDT)
I think that it may require a specialised extension, as MediaWiki won't let me input raw HTML code. I can write it as an extension if you'd like. Ryan McCue Let's have a chat 23:50, 5 July 2007 (CDT)