Template:Person: Difference between revisions

From OpenCommons
Jump to navigation Jump to search
No edit summary
No edit summary
 
(57 intermediate revisions by the same user not shown)
Line 12: Line 12:
| location      = City, State
| location      = City, State
| country      = Country
| country      = Country
| skills        = Skills
| skill        = Skill(s)
| active        = Active
| active        = Active
| sector        = Sectors of interest
| sector        = Sectors of interest
| linkedin      = Linkedin Page
| linkedin      = Linkedin Page
| experience    = Experiance
| bio          = Biography
}}
}}
</pre>
</pre>
Line 24: Line 24:
__NOEDITSECTION__
__NOEDITSECTION__
{{#default_form:Person}}
{{#default_form:Person}}
{|style="float:right; margin-left: 10px;"
|-{{#ifeq: {{{active|}}} | No | style="display: none;" | {{#if: {{{resume|}}} |  | style="display: none;"}} }}
|'''Resume'''
|-{{#ifeq: {{{active|}}} | No | style="display: none;" | {{#if: {{{resume|}}} |  | style="display: none;"}} }}
|[[File:{{{resume|}}}|190px]]
|}
{| class="wikitable" style="margin-left: 40px;"
{| class="wikitable" style="margin-left: 40px;"
|rowspan="7"|[[File:{{{portrait}}}|200px|{{{firstname}}} {{{lastname}}}]] {{#set: Portrait=File:{{{portrait}}}}}
|rowspan="7"|[[File:{{{portrait}}}|200px|{{{firstname}}} {{{lastname}}}]] {{#set: Portrait=File:{{{portrait}}}}}
Line 32: Line 40:
| <font size="5" > Name </font>
| <font size="5" > Name </font>
| <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}}}}}
| <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}}}}}
{{#if: {{{skill|}}} | {{#set: Has caption=<center><b>[[{{{firstname}}} {{{lastname}}}]]</b></br>{{{skill}}}</center> |}}}}
|-
|-
| Company
| Company
Line 40: Line 49:
|-
|-
| City, State
| City, State
| [[From location::{{{location|}}}]]
| <!--[[From location::{{{location|}}}]]--> {{{location|}}} {{#set: From location={{{location|}}} }}
|-
|-
| Country
| Country
| [[From country::{{{country|}}}]] {{#if: {{{skills|}}} | {{#arraymap:{{{skills|}}}|,|x|{{#set: Has skill=x}} | }}}} {{#if: {{{active|}}} | {{#arraymap:{{{active|}}}|,|x|{{#set: Is active=x}} | }}}} {{#if: {{{resume|}}} | {{#set: Has resume=x}} | }}
| [[From country::{{{country|}}}]] {{#if: {{{skill|}}} | {{#arraymap:{{{skill|}}}|,|x|{{#set: Has skill=x}} | }}}} {{#if: {{{active|}}} | {{#arraymap:{{{active|}}}|,|x|{{#set: Is active=x}} | }}}} {{#if: {{{resume|}}} | {{#set: Has resume=x}} | }}
|-
|-
| Sectors
| Sectors
| {{#arraymap:{{{sector|}}}|,|x|[[Has sector::x]]|<br>}}
| {{#arraymap:{{{sector|}}}|,|x|[[Has sector::x]]|<br>}}
|-{{#ifeq: {{{active|}}} | Yes | | style="display: none;" }}
|colspan="3" style="background-color:#dddddd;" |'''Consulting:''' {{{skill}}}
|}
|}
{{#if: {{{bio|}}} |'''Biography:''' </br> [[Has bio::{{{bio|}}}]]| }}
[[Category:Person]]
[[Category:Person]]



Latest revision as of 04:38, January 22, 2024

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

{{person
| portrait      = image
| firstname     = First Name
| middlename    = Middle Names
| lastname      = Last Name
| company       = Company Name
| position      = Position in Company
| location      = City, State
| country       = Country
| skill         = Skill(s)
| active        = Active
| sector        = Sectors of interest
| linkedin      = Linkedin Page
| bio           = Biography
}}

Edit the page to see the template text.