Difference between revisions of "Template:PDF"
From AYSO Wiki
Jeffbailey (talk | contribs) (Test with wiki filepath) |
Jeffbailey (talk | contribs) (Update Template with example from MediaWiki Widgets) |
||
Line 6: | Line 6: | ||
"description": "Embedded a PDF", | "description": "Embedded a PDF", | ||
"params": { | "params": { | ||
− | " | + | "name": { |
"label": "PDF File", | "label": "PDF File", | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
Line 12: | Line 12: | ||
"description": "Link to PDF" | "description": "Link to PDF" | ||
}, | }, | ||
− | " | + | "url": { |
"label": "PDF URL", | "label": "PDF URL", | ||
"type": "url", | "type": "url", | ||
Line 23: | Line 23: | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
{{#widget:PDF | {{#widget:PDF | ||
− | |url={{filepath | + | |url={{#if: {{{url|}}} |{{{url|}}} |{{filepath: {{{name|}}} }} }} |
− | }}</includeonly> | + | |width={{{width|750}}} |
+ | |height={{{height|1050}}} | ||
+ | }} | ||
+ | </includeonly> |
Revision as of 07:12, 28 March 2024
This is a Template for embedding PDFs.
Embedded a PDF
Parameter | Description | Type | Status | |
---|---|---|---|---|
PDF File | name | Link to PDF | File | optional |
PDF URL | url | Link to PDF | URL | optional |