Help:DPL/manual/dplchapter

From Guild Wars 2 Wiki
Jump to navigationJump to search

This is an auxiliary function module within the DPL package. It provides some of the features of the "include" function.

An arbitrary text is input to this function, and using the further parameters modifies the output to be a body of a chapter within this text which has 'heading' as a headline.

You can delimit the output to a maximum number of characters. You will get a link to 'page' if the text is longer than that limit. The link will normally consist of some arrow but can be changed to whatever you want.

Usage[edit]

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

Examples[edit]

Example 1[edit]

 {{#dplchapter:
 Some text.
 ==== My Headline ====
 the body of the desired chapter.
 ==== Another Chapter ====
 Its text.
 |My Headline}}


the body of the desired chapter.

Example 2[edit]

 {{#dplchapter:
 Some text.
 ==== My Headline ====
 the body of the desired chapter.
 ==== Another Chapter ====
 Its text.
 |My Headline|15|Main Page|read more ..}}


the body of .. read more