Please remember to make use of the DML Wiki Manual of Style and Code of Conduct during your stay.

 Actions

Help

Help:Dplchapter

From Dragon Mania Legends (DML) Wiki

Manual dplchapter


Syntax

 {{#dplchapter: text | heading | limit | page | linktext }}

This function is a side entry into DPL's include function.

An arbitrary text is passed to this function, and returned is the body of a chapter within this text, which has 'heading' as a headline. The output can be delimited to a maximum number of characters. A link to 'page' is produced if the text is longer than that limit. The link normally consists of some arrow, but can be changed to whatever is desired.

Example 1:
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}}

Example 2:
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}}
This Wiki is created by players for other players and is not maintained by, or affiliated with, the game maker (Gameloft).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.