Template:Team: Difference between revisions

From Portland NET Wiki
Jump to navigation Jump to search
handle empty plan_name param for missing Ops Plans
fix template syntax?
Line 16: Line 16:
     <label>Operations Plan</label>
     <label>Operations Plan</label>
     <default>{{OpsPlanLink|{{{name|{{#invoke:String|replace|{{SUBPAGENAME}}|Teams/|}} }} }}}</default>
     <default>{{OpsPlanLink|{{{name|{{#invoke:String|replace|{{SUBPAGENAME}}|Teams/|}} }} }}}</default>
     <format>{{#if: {{{plan_name}}} | {{OpsPlanLink|{{{plan_name}}} }} }}</format>
     <format>{{#if: {{{plan_name}}} | {{OpsPlanLink|{{{plan_name}}}}}}}</format>
   </data>
   </data>
   <data source="contact">
   <data source="contact">

Revision as of 11:35, 30 May 2025

Example:

{{Team
|tl=
First Person<br>
Second Person<br>
|atl=
Third Person<br>
|aro=
Fourth Person<br>
|contact=
{{EmailLink|''email@address.com''}}<br>
{{GroupsLink|''group-name''}}<br>
{{SignalLink|#''link''}}<br>
}}

Displays an infobox with the basic team stats.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
contactcontact

Content for How To Contact Us section

Example
{{EmailLink|team@somewhere.com}}
Contentoptional
tltl

Team Leader(s)

Example
First Person<br> Second Person<br>
Contentoptional
atlatl

Assistant Team Leader(s)

Example
First Person<br> Second Person<br>
Contentoptional
aroaro

Amateur Radio Operators

Example
First Person<br> Second Person<br>
Contentoptional
additionaladditional

Additional content to append

Contentoptional
namename

Team name, if it's different than the page name

Example
TaborVilla
Stringoptional
plan_nameplan_name

Base filename for Ops Plan on portland.gov, if different from page name. May be empty.

Example
argay-parkrose
Unknownoptional