This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.
Template talk:Newpage theory
Automate?
I think it has to be an admin to install this to work automatically like the season histories template. For now, I'm going to be using {{subst:Newpage_theory}}.--MiamiVolts (talk) 22:15, 20 September 2007 (EDT)
- I've updated the template some and it's going well. I just rediscovered that MediaWiki:Newarticletext is what needs to be edited, and that it is protected for administrator-only editing.--MiamiVolts (talk) 23:58, 20 September 2007 (EDT)
- Actually, it's Template:Newarticletextbuttons that does the work. I don't think that's protected.--Hardvice (talk) 00:23, 21 September 2007 (EDT)
- Oh wait, you want it to be automagic. Yeah, that's MediaWiki:Newarticletext. I'll do it now.--Hardvice (talk) 00:25, 21 September 2007 (EDT)
- K. Should be working now.--Hardvice (talk) 00:51, 21 September 2007 (EDT)
- Awesome, kudos.--MiamiVolts (talk) 00:59, 21 September 2007 (EDT)
- K. Should be working now.--Hardvice (talk) 00:51, 21 September 2007 (EDT)
Link template
- To make things easier, since some of the theory base articles don't exist and don't need to exist, I added a link template which returns a link or just the text specified. Perhaps this template can be used elsewhere to simplify some of the other templates?--MiamiVolts (talk) 00:59, 21 September 2007 (EDT)
- Yeah, good call. It had an extraneous line break that was breaking the formatting, but I took care of it. Now to get it to subst properly...--Hardvice (talk) 01:01, 21 September 2007 (EDT)
- All good to go. This ought to be cake, really, since we're just cnp-ing from the existing articles.--Hardvice (talk) 01:06, 21 September 2007 (EDT)
- In the end, I had to remove the subst: logic. It works fine when you subst the template, but not when you preload it. IIRC we ran into the same problem when we added the Welcome button. Ah well, no biggie.--Hardvice (talk) 01:17, 21 September 2007 (EDT)
- Check out here. I think they say how to do optional substitution, though I'm still learning about how it works. Something like {{subst:subst}}PAGENAME}} should work for preloading, right? At least that's what the help says...--MiamiVolts (talk) 01:25, 21 September 2007 (EDT)
- Yeah, good call. It had an extraneous line break that was breaking the formatting, but I took care of it. Now to get it to subst properly...--Hardvice (talk) 01:01, 21 September 2007 (EDT)