User:FreedomFighterSparrow/Sandbox

Possibility of transcluding the section tags via a template
Hello guys,

is there a possibility to transclude the section tags with a template. An example: I want to define a template  with the code

Definition: 

On an article  I use the above template via

Now I want to include this definition via. However, this does not work. It seems, that I cannot transclude the section tags properly. Is there a way to archive this? Of course I can write something like this:





However, I want to transclude the section tags via the template. How can I do this? -- Stephan Kulla (talk) 15:55, 27 March 2017 (UTC)


 * Hi Stephan,
 * Unfortunately, this isn't currently possible. LabeledSectionTransclusion looks at the raw wikitext of the page you are transcluding from, finds its markers, and only then parses that wikitext, in the context of the transcluding page. Since the template will only be parsed *afterwards*, it just won't find your section markers. A more thorough explanation can be found in T39256, including a suggestion on how one might go about adding that functionality to the extension. FFS Talk 18:57, 28 March 2017 (UTC)