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: | 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. |
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> |
<pre> |
||
<pre><nowiki> |
|||
{{#dplchapter: |
{{#dplchapter: |
||
Some text. |
Some text. |
||
Line 15: | Line 14: | ||
Its text. |
Its text. |
||
|My Headline}} |
|My Headline}} |
||
</nowiki></pre> |
|||
</pre> |
</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}}