User:Ferretwings/Transcluded page

From Terraria Wiki
Jump to navigation Jump to search

This page is for transclusion testing heading Section 1, labeled section preSection1, {{:User:Ferretwings/Transcluded page|section=Section1}}, and the TOC.

The TOC transclusion doesn't work as intended, btw.

<onlyinclude> <-----nowiki'd to show what's on the previous line
There are several ways to transclude sections.

FYI, this is known as section 0

<section begin=preSection1/> <-----nowiki'd to show what's on the previous line
Section header "Section 1" follows...

Section 1

Section header: Section 1
User:Ferretwings/Transcluded page/section info

This section
is a transclusion test
for:

  • heading Section 1 (should begin just after the Section 1 heading, and end just before the next section heading)
  • labeled section preSection1 (should begin just before the Section 1 heading, and end just before the next section heading)
  • {{:User:Ferretwings/Transcluded page|section=Section1}} (should begin just after the Section 1 heading, and end just about now)

{{:User:Ferretwings/Transcluded page|section=Section1}} test just ended.

If labeled section and <onlyinclude> tests work properly, you will not see the next section heading "TOC tranclusion test".
<section end=preSection1/></onlyinclude> <-----nowiki'd to show what's on the next lines

TOC transclusion test

Here, the TOC will only be displayed when transcluded. Begin {{:User:Ferretwings/Transcluded page|section=toc}} test now...

The TOC test just ended.

Transcluded TOC will actually belong to the calling page, not the transcluded one. There doesn't appear to be a way to access the TOC from another page.
FYI: the TOC has id="toc", so it can be linked to (eg. User:Ferretwings/Transcluded_page#toc).