Template talk:AB

From Archives of Lusternian Lore
Jump to navigation Jump to search

Skill section edit links direct to this master template instead of their instance

When viewing a skill page and wanting to edit a single ability, it seems logical for the contributor to click the edit link next to the ability's title. Doing this, however, takes the contributor to the edit screen for this template. Is it possible to correct this behavior so that the edit links send the contributor to the contents of that specific template instance instead of the template itself?Hinic (talk)

I guess this is a known issue. There is a wiki "magic word" (__NOEDITSECTION__) that blocks edit links at section headings though including that in a template forces that behavior on any and all pages that implement the template. There is a workaround where you replace == with <h2> HTML tags instead. See link (https://meta.wikimedia.org/wiki/Help:Editing_sections_of_included_templates) This would let the pages look the same but not produce edit links that direct to the wrong place. Do we want to try this? Hinic (talk) 23:34, 17 October 2021 (UTC)

Another option is to simply remove the skillname parameter from the template and reformat all the skill pages to have traditional ==skillname==-style headings followed by the template. (Which sounds like a lot of work but it's not that bad with the help of Regular Expressions.) Then, when a chronicler clicks the edit link for the section, they will see the template inputs instead of the edit template page. Hinic (talk) 21:47, 15 July 2022 (UTC)