Examples/Module: dplchapter (example 1): Difference between revisions
< Examples
Content added Content deleted
imported>FrozenPlum (Move module example to subpage so testing can occur) |
imported>FrozenPlum m (fix) |
||
Line 7:
This displays the body content of the heading/section that matches the heading name specified, in this case it returns the section content for the "My Headline" heading.
<pre>
{{#dplchapter:
Some text.
Line 15 ⟶ 14:
Its text.
|My Headline}}
</pre>
|
Latest revision as of 02:47, 21 April 2023
Example
This displays the body content of the heading/section that matches the heading name specified, in this case it returns the section content for the "My Headline" heading.
{{#dplchapter: Some text. ==== My Headline ==== the body of the desired chapter. ==== Another Chapter ==== Its text. |My Headline}}
Result
{{#dplchapter: Some text.
My Headline
the body of the desired chapter.
Another Chapter
Its text. |My Headline}}