Difference between revisions of "Template:Download"

From AYSO Wiki
m (Add Templatedata to Download Template.)
 
Line 1: Line 1:
 +
<noinclude>
 +
This is a Template for embedding PDFs.
 +
 +
<templatedata>
 +
{
 +
    "description": "Embedded a PDF",
 +
    "params": {
 +
        "1": {
 +
            "label": "Filename or Page name to link to",
 +
            "type": "string",
 +
            "required": true,
 +
            "description": "Link to PDF"
 +
        },
 +
        "2": {
 +
            "label": "Link Text",
 +
            "type": "string",
 +
            "required": true,
 +
            "description": "Text for Link to PDF"
 +
        }
 +
    }
 +
}
 +
</templatedata>
 +
</noinclude><includeonly>
 
[[File:Download-icon-green.svg|50x50px|link={{{1|Main Page}}}]]&nbsp;&nbsp;&nbsp;{{#if:{{{external_link|}}}|[{{{1|Main Page}}} <big><big>Download {{{2|}}}</big></big>]|[[{{{1|Main Page}}}|<big><big>Download {{{2|}}}</big></big>]]}}
 
[[File:Download-icon-green.svg|50x50px|link={{{1|Main Page}}}]]&nbsp;&nbsp;&nbsp;{{#if:{{{external_link|}}}|[{{{1|Main Page}}} <big><big>Download {{{2|}}}</big></big>]|[[{{{1|Main Page}}}|<big><big>Download {{{2|}}}</big></big>]]}}
 +
</includeonly>

Latest revision as of 17:34, 28 March 2024

This is a Template for embedding PDFs.

Embedded a PDF

Template parameters

ParameterDescriptionTypeStatus
Filename or Page name to link to1

Link to PDF

Stringrequired
Link Text2

Text for Link to PDF

Stringrequired