Template:Team: Difference between revisions
From Portland NET Wiki
No edit summary |
add no_plan parameter (instead of trying to get empty plan_name to work) |
||
| Line 15: | Line 15: | ||
<data source="plan_name"> | <data source="plan_name"> | ||
<label>Operations Plan</label> | <label>Operations Plan</label> | ||
<default>{{OpsPlanLink|{{{name|{{#invoke:String|replace|{{SUBPAGENAME}}|Teams/|}}}}}}}</default> | <default>{{#if: {{{no_plan|}}} | | {{OpsPlanLink|{{{name|{{#invoke:String|replace|{{SUBPAGENAME}}|Teams/|}}}}}}}}}</default> | ||
<format> | <format>{{OpsPlanLink|{{{plan_name}}}}}</format> | ||
</data> | </data> | ||
<data source="contact"> | <data source="contact"> | ||
| Line 74: | Line 74: | ||
}, | }, | ||
"plan_name": { | "plan_name": { | ||
"description": "Base filename for Ops Plan on portland.gov, if different from page name | "description": "Base filename for Ops Plan on portland.gov, if different from page name.", | ||
"example": "argay-parkrose" | "example": "argay-parkrose" | ||
}, | |||
"no_plan": { | |||
"description": "Set this if the team has no plan at all.", | |||
"example": "true", | |||
"type": "boolean" | |||
} | } | ||
}, | }, | ||
| Line 87: | Line 92: | ||
"additional", | "additional", | ||
"name", | "name", | ||
"plan_name" | "plan_name", | ||
"no_plan" | |||
] | ] | ||
} | } | ||
