Template:OpsPlanLink: Difference between revisions

From Portland NET Wiki
don't default to SUBPAGENAME; require user to provide name in parameter
use Media instead of File link to go directly to the PDF
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[File:Document icon.png|18px|link=]] [https://www.portland.gov/pbem/neighborhood-emergency-teams/documents/{{lc: {{#invoke:String|replace|{{#invoke:String|replace|{{{netname|{{{1}}}}}}| |-}}|,|}}}}-net-ops-plan/download Operations Plan]
[[File:Document icon.png|18px|link=]] [[Media:Team Earthquake Plan - {{{1}}}.pdf|Team Earthquake Plan]]
<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"netname": {
"1": {
"aliases": [
"1"
],
"label": "NET name",
"label": "NET name",
"description": "The name of the NET on PBEM's Ops Plans page",
"description": "The NET's name",
"example": "arbor-lodge-kenton",
"example": "Arbor Lodge, Kenton",
"type": "string",
"type": "string"
"default": "lowercase page name"
}
}
},
},
"description": "Link to PBEM-hosted Ops Plan",
"description": "Link to Team Earthquake Plan PDF",
"paramOrder": [
"netname"
],
"format": "inline"
"format": "inline"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>