Jump to content

Help talk:Labeled section transclusion

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Wbm1058 (talk | contribs) at 11:35, 24 July 2014 (Documenting use of this neat new feature: yes). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Documenting use of this neat new feature

This is great; I'm really surprised that I've not heard of it before. As its use in the wild may not be immediately obvious to an editor encountering it, should we make it good practice to accompany it with a comment, something along the lines of <!-- See Help:LST -->? — Scott talk 16:49, 14 February 2014 (UTC)[reply]

@Gadget850: Actually, come to think of it - rather than using the &lt;section&gt; tag directly, it would be better to use templates generating the tag - say, {{section begin}} and {{section end}}. That way, anyone encountering them in the code would be able to go immediately to the template for documentation. It's hard to find a help page for a raw tag. What do you think? — Scott talk 00:38, 15 February 2014 (UTC)[reply]
Because parser tags must use #tag to include variables and #tag does not work with <section>. See the Templates section and {{section}}. --  Gadget850 talk 01:18, 15 February 2014 (UTC)[reply]
How annoying. I've subscribed to Template:Bug - thanks. — Scott talk 22:46, 15 February 2014 (UTC)[reply]
@Scott: Good idea. I just encountered Template:Latest tech news "in the wild" and did just that. Now, I see your comment here confirming the rationale for my edit. My initial guess was that #lst: meant "last section", so I changed that to #section: as well. Regards, Wbm1058 (talk) 11:35, 24 July 2014 (UTC)[reply]