Difference between revisions of "Template:PDF"
From AYSO Wiki
Jeffbailey (talk | contribs) (Try making initial PDF Template Page) |
Jeffbailey (talk | contribs) m (Give better labels for the PDF Template.) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
"description": "Embedded a PDF", | "description": "Embedded a PDF", | ||
"params": { | "params": { | ||
− | " | + | "name": { |
− | "label": " | + | "label": "File name on the Wiki", |
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"required": false, | "required": false, | ||
"description": "Link to PDF" | "description": "Link to PDF" | ||
}, | }, | ||
− | " | + | "url": { |
− | "label": "PDF | + | "label": "URL for PDF not on the Wiki", |
"type": "url", | "type": "url", | ||
"required": false, | "required": false, | ||
"description": "Link to PDF" | "description": "Link to PDF" | ||
+ | }, | ||
+ | "height": { | ||
+ | "label": "Height", | ||
+ | "type": "number", | ||
+ | "required": false, | ||
+ | "description": "Height in pixels (default 1050)" | ||
+ | }, | ||
+ | "width": { | ||
+ | "label": "Width", | ||
+ | "type": "number", | ||
+ | "required": false, | ||
+ | "description": "Width in pixels (default 750)" | ||
} | } | ||
} | } | ||
Line 23: | Line 35: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{{#widget:PDF | {{#widget:PDF | ||
− | |url={{{ | + | |url={{#if: {{{url|}}} |{{{url|}}} |{{filepath: {{{name|}}} }} }} |
− | }}</includeonly> | + | |width={{{width|750}}} |
+ | |height={{{height|1050}}} | ||
+ | }} | ||
+ | </includeonly> |
Latest revision as of 14:12, 28 March 2024
This is a Template for embedding PDFs.
Embedded a PDF
Parameter | Description | Type | Status | |
---|---|---|---|---|
File name on the Wiki | name | Link to PDF | File | optional |
URL for PDF not on the Wiki | url | Link to PDF | URL | optional |
Height | height | Height in pixels (default 1050) | Number | optional |
Width | width | Width in pixels (default 750) | Number | optional |