Template:Person: Difference between revisions

From OpenCommons
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
{{person
{{person
| portrait      = image
| portrait      = image
| fullname     = First Last
| firstname    = First name
| middlename    = Middle name
| lastname     = Last name
| company      = Company Name
| company      = Company Name
| position      = Position in Company
| position      = Position in Company
Line 12: Line 14:
| sector        = Sector
| sector        = Sector
| linkedin      = Linkedin Page
| linkedin      = Linkedin Page
| membership    = Membership Level
}}
}}
</pre>
</pre>
Line 24: Line 25:
|-
|-
| <font size="5" > Name </font>
| <font size="5" > Name </font>
| <font size="5" > [{{{linkedin}}} {{{firstname}}} {{{lastname}}}]</font> {{#set: Has image=File:{{{portrait|}}}}} {{#set: Has full name={{{firstname}}} {{{lastname}}}}} {{#set: Has linkedin={{{linkedin}}}}} {{#set: Has first name={{{firstname}}}}} {{#set: Has middle names={{{middlename}}}}} {{#set: Has last name={{{lastname}}}}}
| <font size="5" > [{{{linkedin}}} {{{firstname}}} {{{lastname}}}]</font> {{#set: Has image={{{portrait|}}}}} {{#set: Has full name={{{firstname}}} {{{lastname}}}}} {{#set: Has linkedin={{{linkedin}}}}} {{#set: Has first name={{{firstname}}}}} {{#set: Has middle names={{{middlename}}}}} {{#set: Has last name={{{lastname}}}}}
|-
|-
| Company
| Company
Line 39: Line 40:
|-
|-
| style="width:150px" | Sector
| style="width:150px" | Sector
| {{#arraymap:{{{sector|}}}|,|x|[[Has sector::x]]|<br>}}
| {{#arraymap:{{{sector|}}}|,|x|[[Has sector::x]]|<br>}}  
|-
|-
| Membership Level
| Membership Level
| [[Is member::{{{membership|}}}]]
| {{#if: {{{membership}}}| {{{membership|}}}| [[Is member::Affiliate]]}}
|}
|}
[[Category:Person]]
[[Category:Person]]
</includeonly>
</includeonly>

Revision as of 05:22, November 16, 2021

This is the "Person" template. It should be called in the following format:

{{person
| portrait      = image
| firstname     = First name
| middlename    = Middle name
| lastname      = Last name
| company       = Company Name
| position      = Position in Company
| location      = City, State
| country       = Country
| sector        = Sector
| linkedin      = Linkedin Page
}}

Edit the page to see the template text.