Difference between revisions of "Template:ChapterPageRef"

From The Orthorbbae Library
Jump to: navigation, search
(Created page with "<noinclude>Generates a link to the chapter main page (found by searching Category:Moonless Age Chapters a page with ). Arguments: 1. Chapter number 2. (Optional) display t...")
 
Line 1: Line 1:
<noinclude>Generates a link to the chapter main page (found by searching [[:Category:Moonless Age Chapters]] a page with ).
+
<noinclude>Generates a link to the chapter main page (found by searching [[:Category:Moonless Age Chapters]] for a page with "Chapter N -" prefix).
  
Arguments:  
+
Arguments: <br/>
1. Chapter number
+
1. Chapter number <br/>
2. (Optional) display text
+
2. (Optional) display text <br/>
  
</noinclude>{{#vardefine:link|{{#dpl:
+
Usage examples:
 +
<pre>
 +
{{ChapterPageRef|1}}
 +
{{ChapterPageRef|1|Custom Link Title}}
 +
</pre>
 +
</noinclude><includeonly>{{#vardefine:link|{{#dpl:
 
| category = Moonless Age Chapters
 
| category = Moonless Age Chapters
 
| mode=inline
 
| mode=inline
Line 13: Line 18:
 
| format=,[[%PAGE%|{{{2|%PAGE%}}}]],,
 
| format=,[[%PAGE%|{{{2|%PAGE%}}}]],,
 
| count=1
 
| count=1
 +
| suppresserrors=true
 
}}}}<!--
 
}}}}<!--
  
-->{{#if:{{#var:link}}|{{#var:link}}|[[Chapter {{{1}}}|{{{2|Chapter {{{1}}}}}}]]
+
-->{{#if:{{#var:link}}|{{#var:link}}|[[Chapter {{{1}}}|{{{2|Chapter {{{1}}}}}}]]}}</includeonly>

Revision as of 13:38, 16 January 2013

Generates a link to the chapter main page (found by searching Category:Moonless Age Chapters for a page with "Chapter N -" prefix).

Arguments:
1. Chapter number
2. (Optional) display text

Usage examples:

 {{ChapterPageRef|1}}
 {{ChapterPageRef|1|Custom Link Title}}