Difference between revisions of "DPL:Manual - dplchapter"

From FollowTheScore
Jump to: navigation, search
(New page: {{Type:Manual|section=dplchapter}} === Syntax === <pre><nowiki> {{#dplchapter: text | heading | limit | page | linktext }} </nowiki></pre> === Effect === This function is a side entry...)
 
Line 14: Line 14:
  
 
==== Example ====
 
==== Example ====
 +
 +
<pre><nowiki>
 +
{{#dplchapter:
 +
Some text.
 +
==== My Headline ====
 +
the body of the desired chapter.
 +
==== Another Chapter ====
 +
Its text.
 +
|My Headline}}
 +
</nowiki></pre>
  
 
{{#dplchapter:
 
{{#dplchapter:

Revision as of 08:18, 16 November 2007

Template:Type:Manual

Syntax

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

Effect

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

You pass an arbitrary text to this function and you will get back the 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.

Example

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


the body of the desired chapter.