Actions

Template

Person: Difference between revisions

From clcwiki

Created page with "<noinclude> This is the "Person" template. It should be called in the following format: <pre> {{person | portrait = upload portrait image | logo = upload image of company logo | fullname = First Last | company = Company Name | position = Position in Company | location = City, State | country = Country | linkedin = Linkedin Page | companyurl = the company URL | role = Leadership or Administrative }} </pre> Edit the..."
 
No edit summary
 
Line 4: Line 4:
<pre>
<pre>
{{person
{{person
| portrait      = upload portrait image
| portrait      = image
| logo          = upload image of company logo
| firstname    = First Name
| fullname     = First Last
| middlename    = Middle Names
| lastname     = Last Name
| company      = Company Name
| company      = Company Name
| position      = Position in Company
| position      = Position in Company
| location      = City, State
| location      = City, State
| country      = Country
| country      = Country
| skill        = Skill(s)
| active        = Active
| sector        = Sectors of interest
| linkedin      = Linkedin Page
| linkedin      = Linkedin Page
| companyurl    = the company URL
| bio          = Biography
| role          = Leadership or Administrative
}}
}}
</pre>
</pre>
Line 19: Line 22:
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{| class="wikitable"
__NOEDITSECTION__
|rowspan="7"|[[File:{{{portrait}}}|link={{{linkedin|}}}|200px|{{{fullname}}}]] {{#set: Has linkedin={{{linkedin|}}}}} {{#set: Has companyurl={{{companyurl|}}}}}
{{#default_form:Person}}
|rowspan="7"|[[File:{{{logo}}}|200px|]]
 
| '''User Name
{|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;"
|rowspan="7"|[[File:{{{portrait}}}|200px|{{{firstname}}} {{{lastname}}}]] {{#set: Portrait=File:{{{portrait}}}}}
<!--| '''User Name'''
| '''[[Has user name::{{PAGENAME}}]]'''
| '''[[Has user name::{{PAGENAME}}]]'''
| '''[https://opencommons.org/Special:FormEdit/Member/User:{{PAGENAME}} {{PAGENAME}}]''' {{#set: Has user name={{PAGENAME}}}}-->
|-
|-
| <font size="5" > Name </font>
| <font size="5" > Name </font>
| <font size="5" > [[Has full name::{{{fullname|}}}]]</font> {{#set: Has image={{{portrait|}}}}} {{#set: Has logo={{{logo|}}}}} {{#set: Has role={{{role|}}}}}
| <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
| {{{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
| {{#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]]
{{#ifexpr: {{#ask: [[Category:Activity]]  [[Has contact::{{PAGENAME}}]] |format=count}}>0 | <hr>'''Activities''' | }}
{{#ask:
[[Category:Activity]]
[[Has contact::{{PAGENAME}}]]
|?=#
|?Has image#=2
|?Has description#=3
|format=plainlist
|named args=yes
|introtemplate=Show image Header
|template=Show image
|outrotemplate=Show link Footer
}}
{{#ifexpr: {{#ask: [[Category:Chapter]]  [[Has contact::{{PAGENAME}}]] |format=count}}>0 | <hr>'''Blueprint Chapters''' | }}
{{#ask:
[[Category:Chapter]]
[[Has author::{{PAGENAME}}]]
|?=#
|?Has image#=2
|?Has description#=3
|format=plainlist
|named args=yes
|introtemplate=Show image Header
|template=Show image
|outrotemplate=Show link Footer
}}
{{#ifexpr: {{#ask: [[Category:Webinar]]  [[Has contact::{{PAGENAME}}]] |format=count}}>0 | <hr>'''Webinars''' | }}
{{#ask:
[[Category:Webinar]]
[[Has contact::{{PAGENAME}}]]
|?=#
|?Has image#=2
|?Has description#=3
|format=plainlist
|named args=yes
|introtemplate=Show image Header
|template=Show image
|outrotemplate=Show link Footer
}}
{{#ifexpr: {{#ask: [[Category:News]]  [[Has contact::{{PAGENAME}}]] | |format=count}} > 0 | <hr>'''Press''' | }}
{{#ask:
[[Category:News]]
[[Has contact::{{PAGENAME}}]]
|?=#
|?Has image#=2
|?Has summary#=3
|format=plainlist
|named args=yes
|introtemplate=Show image Header
|template=Show image
|outrotemplate=Show link Footer
}}
</includeonly>
</includeonly>

Latest revision as of 21:12, June 30, 2025

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.