Template:DocLink: Difference between revisions

From CTMS
(Added TemplateData)
m (Minor formatting change)
Line 2: Line 2:
<templatedata>
<templatedata>
{
{
    "description": "This is a template to create a link to a PDF document export for a particular page. This is achieved with {{DocLink|MyPage}}",
"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": {
"params": {
        "page": {
"page": {
            "label": "Page name",
"label": "Page name",
            "type": "wiki-page-name",
"type": "wiki-page-name",
            "required": true,
"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"
"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>
</templatedata>
</noinclude><includeonly><span class="apt-doclink">[{{fullurl:{{{1}}}}}?action=pdfbook&amp;format=singlebook&amp;notitle DOC]</span></includeonly>
</noinclude><includeonly><span class="apt-doclink">[{{fullurl:{{{1}}}}}?action=pdfbook&amp;format=singlebook&amp;notitle DOC]</span></includeonly>

Revision as of 16:03, 25 July 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 namepage

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