Template talk:Common armor art gallery

Glacial Gauntlets
The main Female section header ("Female Glacial Gauntlets gallery") and 2 more lower level headers do not show up in the Contents, it goes from Acquisition straight to the third lower level header. The three missing headers are in the /Female page inclusion. RoseOfKali 17:20, 11 August 2008 (UTC)
 * That's not a bug, that's how I designed - those headers aren't true wiki headers, they're just formatted to look like them.  I did this to prevent readers clicking the [edit] links on those headers and accidentally editing the template (which did happen to the Deldrimor gallery template).  &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 18:17, 11 August 2008 (UTC)
 * If that is not desired, the headers have to move out of the template onto the page - and if this wiki's tradion for kludgy hacks is honored, the template gets a "noheader" parameter and doesn't display them when that is set. ;-) --◄mendel► 22:09, 11 August 2008 (UTC)
 * We can move the primary header out of the template, yes - the one that says "Female Glacial Gauntlets gallery" - but the subheaders can't be moved out without requiring that we also break the template into pieces.
 * For a long time, the main template had  in it for the same reason - users couldn't accidentally click [edit] on a section that was part of the template.  The only drawback to this was that it removed edit links for all sections on any page that transcluded the template, which wasn't a huge problem (it lasted over a year like that).  On June 24, however, our illustrious Beerocrat decided that it was "foolish to have it here", and in just over a month since then we have had two accidental edits to the template.
 * I'm in favor of putting back into all the armor gallery templates, as I see very little drawback to losing the other section edit links.  &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 23:04, 11 August 2008 (UTC)


 * Agreed. I's not that hard to figure out how to edit the /Male or /Female section alone, or just edit the whole page for the other stuff.  This is not a problem for those who edit armor pages regularly, and would be a deterrent to occasional vandals, too.  This is better than having half-complete Contents...  Besides, once the template is in place, why would the Male/Female pages need editing anyway? RoseOfKali [[Image:RoseOfKaliSIG.jpg]] 05:10, 12 August 2008 (UTC)
 * Someone bug me to read this tomorrow cause i just tried to read this now and I couldn't comprehend any of it.&mdash;♥ Jedi ♥ Rogue ♥ 05:54, 12 August 2008 (UTC)
 * I'll wait another day or so for JR or anyone else to comment on this, then I'll implement NOEDITSECTION in all the armor galleries. &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 05:36, 12 August 2008 (UTC)

Comprehension aid --◄mendel► 06:09, 12 August 2008 (UTC)
 * The armor art gallery template creates section and subsection headers.
 * If these headers have "edit" links, clicking on them lets you edit the template.
 * We don't want people to edit the template.
 * It has happened.
 * It breaks things.
 * It is not what people want, but they don't know better.
 * So we have two options:
 * using __NOEDITSECTIONLINKS__ to remove the "edit" links from every page that has this template on it
 * using fake section headers in the armor gallery that don't create edit links, but don't show up in the table of contents either.
 * Currently we are using option 2, but Rose and Ishy want to switch back to option 1.


 * The reason I want to switch to option one is mostly because often there are other sections (dye bugs, common mesmer gloves, etc) besides the basic ones in the template, and they do show up, so it breaks the TOC to hell. Plus, like I said before, there is no reason to edit armor article sections once the templates are in place, it would be uneducated edits by new users at best, or vandalism.  RoseOfKali [[Image:RoseOfKaliSIG.jpg]] 17:19, 12 August 2008 (UTC)


 * Small clarification: we are using option 2 on Template:Deldrimor armor gallery and Template:Common armor art gallery, we are using option 3 (= true headers within template) on Template:Armor art gallery. Rehashing the drawbacks of the various options:
 * removes the [edit] links from all headers in any article that includes a gallery.
 * Fake headers break the TOC.
 * True headers allow the possibility of accidental edits to the template.
 * And I just came up with a fourth option that would require a small addition to our site css. We can wrap everything in the template with  .  Then we add this to common.css:

div.hideeditsection .editsection { display:none; }
 * That will hide the [edit] links for all sections within the div. [edit] links remain for the rest of the page and the TOC is non-broken.  Thoughts on this idea?  &mdash;Dr Ishmael [[Image:Diablo_the_chicken.gif]] 18:05, 12 August 2008 (UTC)


 * That is a good direction to be thinking in. I say let's keep all level 2 headers, moving those out of the templates if necessary, and hide all level 3 headers. That way, we're consistent. Or use level 4 headers inside the templates and hide those. So we wouldn't hide .editsection, we'd hide div.hideeditsection h3 span.editsection or some such. I'll add some headers willy-nilly here so we can test:

= level 1 =

level 4
some content
 * I'm going to post after I've tested. --◄mendel► 22:51, 12 August 2008 (UTC)

CSS to hide edit section links
div.hideeditsection h3 span.editsection { display:none; } div.hideeditsection h4 span.editsection { display:none; } This reliably hides edit links on level 3 and 4 sections. To test this yourself, copy the two lines into your global.css on central wikia: w:Special:Mypage/global.css. --◄mendel► 23:25, 12 August 2008 (UTC)