Forum:Template with section editing

I've been trying to design a template for an entire article, and I've come across that inevitable problem involving section editing, where the option to edit a section becomes basically useless since it only leads to the corresponding section in the template page itself. I'm well aware that I can replace ==Heading== with Heading to disable section editing, but I'd really like to keep it available. I thought I could add some code to the target article to manually mark out sections, but I've now reached a dead-end. Is there any possible way to make the section editing work? THB  → Talk ← 22:55, March 23, 2010 (UTC)


 * Dunno about your problem, but if you can't solve it, you can simply place anywhere on the template to disable all the section edit links.  08:17, March 24, 2010 (UTC)


 * I am facing the same issue as THB, as some of my pages are getting quite long, sample. With some many templates' parameters inside, users simply give up trying to post their edits because they get confused over which section they should post in. I tried using the full url plus &title=pagename&action=edit and many other things, but they all direct back to the template. I would really like to keep the edit sections on that main page but still embed the link for section-edit within the templates and have them open to the main page when clicked. If anyone can provide a work-around, I would be most grateful Gin-san (Talk) 16:03, March 24, 2010 (UTC)


 * Yes, this is a really drawback of the way mediawiki templates work... nothing is perfect I suppose... It used to be possible to workaround the problem with the old parser because you could pass sections as parameters, but that does not work with the new parser. Thus, the only solution I came up with so far involves editsection URIs and although it is still a bit cumbersome, it does work and will enable you to do what you want. Have a look here (and don't worry about the Hebrew, all the templates and other tech stuff is in English). Hope that helps... --Oshani 05:18, March 31, 2010 (UTC)


 * Please correct me if I understood the template wrongly (I can't read Hebrew, LOL), but I believe what you have is multiple templates within 1 mainpage, and the edit section links open up the embedded template for editing, am I right?
 * That is different from what I was talking about above. I already have a system like that in place for my galleries w:c:gintama:List_of_Gintama_Characters, but what I wanted to do was within 1 big template, have separate sections with edit buttons, and these edit buttons will call up section=2 or section=3 in the main page, i.e. load the template in the edit preview pane section by section. The problem with using the section=2 etc in the URI is that the edit pane opens up blank, the main page does not recognise the different sub-sections. In other words I want the main page to use only one template. The reason for the one template is because I am doing it for episodes, and there are more than 200 of them, imagine 3 or 4 templates per episode, instead of 1 big template ... LOL, am I making sense? Gin-san (Talk) 12:06, March 31, 2010 (UTC)