Template:Person: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(95 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
{{person | {{person | ||
| portrait = image | | portrait = image | ||
| | | firstname = First Name | ||
| 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 | ||
| bio = Biography | |||
}} | }} | ||
</pre> | </pre> | ||
Line 16: | Line 22: | ||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
{| class="wikitable" | __NOEDITSECTION__ | ||
|rowspan=" | {{#default_form:Person}} | ||
| '''User Name''' | |||
{|style="float:right; margin-left: 10px;" | |||
| '''[https://opencommons.org/Special:FormEdit/Member/User:{{PAGENAME}} {{PAGENAME}}]''' {{#set: Has user name={{PAGENAME}}}} | |-{{#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}}]]''' | |||
| '''[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" > [{{{linkedin}}} {{{firstname}}} {{{lastname}}}]</font> {{#set: Has image= | | <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 32: | 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]] | ||
{{#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 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.