LabeledSectionTransclusion demo

From WikiTeq Demonstration Wiki
Extension demonstration (infobox template)
LabeledSectionTransclusion
Documentation

on mediawiki.org

Maintained by WikiTeq?

No

Version

Unknown

This wiki has the LabeledSectionTransclusion extension installed, which allows different "sections" of a page to be defined using the <section> tag, and then those can be transcluded onto other pages.

A section starts with <section begin="name" /> and ends with <section end="name" />, where name is replaced with the name of the section.

There are multiple transclusion tags:

Wikitext Meaning
{{#lst:foo|bar}} Include only the bar section(s) of page foo
{{#lstx:baz|qux}} Include everything but the qux section(s) of page baz
{{#lstx:baz|qux|Omitted}} Include everything but the qux section(s) of page baz, replacing those sections with the text Omitted

For example, the page LabeledSectionTransclusion demo/Book has multiple sections as if the page contains a book - the contents of just chapter 1 is (wrapped in a green box to make it clear what is part of the transclusion). Using {{#lst:LabeledSectionTransclusion demo/Book|chapter1}} results in:

Chapter 1[edit | edit source]

This is chapter 1!

On the other hand, the page LabeledSectionTransclusion demo/Conversation presents a fake conversation, and each person's comments are in a section by their name, meaning that someone's comments can be omitted entirely. Using {{#lstx:LabeledSectionTransclusion demo/Conversation|Becca|Becca's comment is omitted}} results in:

This page is part of the demonstration of the LabeledSectionTransclusion extension. See LabeledSectionTransclusion demo for details.

This page is meant to model a conversation between multiple people. Each person's comments are in a section with their name.


Adam: hello everyone!

Becca's comment is omitted
Camille: Hey Adam

Adam: how is everyone?

Becca's comment is omitted
Camille: I'm fine. How are you?
Cookies help us deliver our services. By using our services, you agree to our use of cookies.