Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Dplchapter: Difference between revisions

no edit summary
m (Alianin moved page DPL:Dplchapter to Extension:DPL3/Dplchapter without leaving a redirect: Changing namespaces.)
No edit summary
Line 1:
{{DPL Manualmanual|section=dplchapter}}
 
=== Syntax ===
 
=== Syntax ===
<pre><nowiki>
{{#dplchapter: text | heading | limit | page | linktext }}
</nowiki></pre>
 
=== 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 1 ====
 
<pre><nowiki>
{{#dplchapter:
Line 35 ⟶ 32:
-->
 
==== Example 2 ====
 
<pre><nowiki>
{{#dplchapter:
Line 56 ⟶ 52:
|My Headline|15|Some Page|.. read more}}
-->
 
 
[[Category:DPL Manual]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.