Template:DocLink: Difference between revisions

From Calidus HUB
(Updated)
(Updated)
 
Line 25: Line 25:
Examples:
Examples:
* <code><nowiki>{{DocLink|Main Page}}</nowiki></code> - {{DocLink|MainPage}}
* <code><nowiki>{{DocLink|Main Page}}</nowiki></code> - {{DocLink|MainPage}}
* <code><nowiki>{{DocLink|Main Page|The Main Page in PDF form}}</nowiki></code> - {{DocLink|MainPage||The Main Page in PDF form}}
* <code><nowiki>{{DocLink|Main Page|The Main Page in PDF form}}</nowiki></code> - {{DocLink|MainPage|The Main Page in PDF form}}
</noinclude><includeonly><span class="apt-doclink">[{{fullurl:{{{1}}}}}{{#ifeq:{{#pos:{{fullurl:{{{1}}}}}|?|1}}||?action=pdfbook&amp;format=singlebook&amp;notitle|&amp;action=pdfbook&amp;format=singlebook&amp;notitle}}|{{{2|DOC}}}]</span></includeonly>
</noinclude><includeonly><span class="apt-doclink">[{{fullurl:{{{1}}}}}{{#ifeq:{{#pos:{{fullurl:{{{1}}}}}|?|1}}||?action=pdfbook&amp;format=singlebook&amp;notitle|&amp;action=pdfbook&amp;format=singlebook&amp;notitle}} {{{2|DOC}}}]</span></includeonly>

Latest revision as of 14:57, 22 July 2025

This is a template to create a link to a PDF document export for a particular page. This is achieved with {{DocLink|MyPage}}

Template parameters

ParameterDescriptionTypeStatus
Page name1

The name of the page that the document will be produced from. Can also be the name of a category by specifying the Category namespace e.g. Did You Know, or Category:Accounts

Page namerequired
Doc Description2

If not provided, this DocLink will simply show "DOC", otherwise the text provided here.

Stringoptional

Examples: