Template:Person: Difference between revisions

From OpenCommons
Jump to navigation Jump to search
No edit summary
No edit summary
 
(80 intermediate revisions by the same user not shown)
Line 12: Line 12:
| location      = City, State
| location      = City, State
| country      = Country
| country      = Country
| skill        = Skill(s)
| active        = Active
| sector        = Sectors of interest
| sector        = Sectors of interest
| linkedin      = Linkedin Page
| linkedin      = Linkedin Page
| bio          = Biography
}}
}}
</pre>
</pre>
Line 19: Line 22:
</noinclude>
</noinclude>
<includeonly>
<includeonly>
__NOEDITSECTION__
{{#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="8"|[[File:{{{portrait}}}|200px|{{{firstname}}} {{{lastname}}}]]
|rowspan="7"|[[File:{{{portrait}}}|200px|{{{firstname}}} {{{lastname}}}]] {{#set: Portrait=File:{{{portrait}}}}}
<!--| '''User Name'''
<!--| '''User Name'''
| '''[[Has user name::{{PAGENAME}}]]'''
| '''[[Has user name::{{PAGENAME}}]]'''
Line 27: 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 35: Line 49:
|-
|-
| City, State
| City, State
| [[From location::{{{location|}}}]]
| <!--[[From location::{{{location|}}}]]--> {{{location|}}} {{#set: From location={{{location|}}} }}
|-
|-
| Country
| Country
| [[From country::{{{country|}}}]]
| [[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]]


;Activities
{{#ifexpr: {{#ask: [[Category:Activity]]  [[Has contact::{{PAGENAME}}]] |format=count}}>0 | <hr>'''Activities''' | }}
<includeonly>
{{#ask:  
{{#ask:  
  [[Category:Activity]]
  [[Category:Activity]]
Line 59: Line 75:
  |outrotemplate=Show link Footer
  |outrotemplate=Show link Footer
}}
}}
<hr>
{{#ifexpr: {{#ask: [[Category:Chapter]]  [[Has contact::{{PAGENAME}}]] |format=count}}>0 | <hr>'''Blueprint Chapters''' | }}
{{#ask:  
{{#ask:  
  [[Category:Chapter]]
  [[Category:Chapter]]
Line 72: Line 88:
  |outrotemplate=Show link Footer
  |outrotemplate=Show link Footer
}}
}}
<hr>
{{#ifexpr: {{#ask: [[Category:Webinar]]  [[Has contact::{{PAGENAME}}]] |format=count}}>0 | <hr>'''Webinars''' | }}
{{#ask:  
{{#ask:  
  [[Category:Webinar]]
  [[Category:Webinar]]
Line 85: Line 101:
  |outrotemplate=Show link Footer
  |outrotemplate=Show link Footer
}}
}}
<hr>
{{#ifexpr: {{#ask: [[Category:News]]  [[Has contact::{{PAGENAME}}]] | |format=count}} > 0 | <hr>'''Press''' | }}
{{#ask:  
{{#ask:  
  [[Category:News]]
  [[Category:News]]

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.