Template:DocLink: Difference between revisions

From EPOD
m (Templates)
m (1 revision imported)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is a template to create a link to a PDF document export for a particular page.
[[Category:Templates|{{PAGENAME}}]]
 
<templatedata>
This is achieved with
{
<nowiki>{{DocLink|MyPage}}</nowiki>
"description": "This is a template to create a link to a PDF document export for a particular page. \n\nThis is achieved with {{DocLink|MyPage}}",
 
"params": {
Example:
"1": {
{{DocLink|Main Page}}
"label": "Page name",
 
"type": "wiki-page-name",
</noinclude><includeonly><span style="font-size: smaller; font-variant: all-small-caps; font-style: italic; border: inset red 1px; border-radius: 5px; padding: 0px 2px;">[{{fullurl:{{{1}}}}}?action=pdfbook&amp;format=single&amp;notitle DOC]</span></includeonly>
"required": true,
"description": "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"
}
}
}
</templatedata>
</noinclude><includeonly><span class="apt-doclink">[{{fullurl:{{{1}}}}}?action=pdfbook&amp;format=singlebook&amp;notitle DOC]</span></includeonly>

Latest revision as of 10:25, 28 August 2024

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