Template:Person

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m (smw maintenance in progress)
m (Undo revision 22337 by Martin (talk))
 
(60 intermediate revisions by 5 users not shown)
Line 10: Line 10:
 
|Website=
 
|Website=
 
|Email=
 
|Email=
 +
|PGP=
 
|XMPP=
 
|XMPP=
|Callsign=
+
|Callsign=<this is for radio amateurs>
|Member of=<comma separated list of other organisations>
+
|Skills=
 +
|Member of=
 
}}
 
}}
 
</pre>
 
</pre>
 +
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 +
 +
== Skills ==
 +
See the [[Skills]] page for a list of skills per member.
 
</noinclude><includeonly><!--
 
</noinclude><includeonly><!--
 
--> {| class="" cellpadding="2" cellspacing="0" <!--
 
--> {| class="" cellpadding="2" cellspacing="0" <!--
 
--> style="float: right; width: 300px; margin: 0 0 1em 1em; border: 2px solid #AAAAAA; background-color: #FFFFFF"
 
--> style="float: right; width: 300px; margin: 0 0 1em 1em; border: 2px solid #AAAAAA; background-color: #FFFFFF"
|+ '''[[Special:Login|Sign up]]'''
+
|+ '''[[Special:UserLogin|Sign up]]'''
 
|-
 
|-
 
! colspan="2" <!-- This is the header
 
! colspan="2" <!-- This is the header
Line 25: Line 31:
 
--> | [[Image:Person.png|link=|left|40px]] <span style="font-size: 150%;">{{PAGENAME}}</span>
 
--> | [[Image:Person.png|link=|left|40px]] <span style="font-size: 150%;">{{PAGENAME}}</span>
 
|-
 
|-
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[Image:{{#if: {{{logo|}}} |<!--then-->{{{logo}}}|<!--else-->G8033.png}}|200px|link=]]
+
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[Image:{{#if: {{{avatar|}}} |<!--then-->{{{avatar}}}|<!--else-->G8033.png}}|200px|link=]]
 
|-
 
|-
| style="padding: 0 7px;"  | '''[[Template:Person#Website|Website]]''': || [[Has website::{{{Website}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:Person#Name|Name]]''': || [[Has firstname::{{{Firstname|}}}]] [[Has surname::{{{Surname|}}}]]
 
|-
 
|-
| style="padding: 0 7px;"  | '''[[Template:Person#Email|Email]]''': || [[Has email address::{{{Email|}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:Person#Website|Website]]''': || [[Has website::{{{Website|}}}]]
 
|-
 
|-
| style="padding: 0 7px;"  | '''[[Template:Meeting#Recurring|Recurring]]''': || [[Is Recurring::{{{recurring|}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:Person#Email|Email]]''': || [[Has email address::{{#replace:{{{Email|}}}|@|<nowiki> </nowiki>theAtSign<nowiki> </nowiki>}}]]
 
|-
 
|-
| style="padding: 0 7px;" | '''[[Template:Meeting#Homepage|Homepage]]''': || [[url::{{{url|}}}]]
+
| style="padding: 0 7px;" | '''[[Template:Person#PGP|PGP]]''': || [[Has pgp keyid::{{{PGP|}}}]]
 
|-
 
|-
| style="padding: 0 7px;" | '''[[Template:Meeting#Attendees|Attendees]]''': || | [[Attendees::{{{attendees|}}}]]
+
| style="padding: 0 7px;" | '''[[Template:Person#Xmpp|XMPP]]''': || [[Has xmpp address::{{#replace:{{{XMPP|}}}|@|<nowiki> </nowiki>theAtSign<nowiki> </nowiki>}}]]
 
|-
 
|-
| style="padding: 0 7px;" | '''[[Template:Meeting#Contact Person|Contact Person(s)]]''': || {{#arraymap:{{{contact|}}}|,|x|[[Has Contact::User:x|x]] ([[Special:EmailUser/x|mail]]) |, }}
+
| style="padding: 0 7px;" | '''[[Template:Person#Callsign|Callsign]]''': || [[Has callsign::{{{Callsign|}}}]]
 
|-
 
|-
| colspan="2" style="padding: 0.5em; color: white; background-color: #AAAAAA" | <span style="font-size: 120%;">Location</span>
+
| style="padding: 0 7px;" | '''[[Circles of Interest|Has interests]]''': ||  {{#ask: [[Has Interest::{{FULLPAGENAME}}]] }}
 
|-
 
|-
| style="padding: 0 7px;" | '''[[Template:Event#Venue|Venue]]''':  || [[At Venue::{{{venue|}}}]]
+
| style="padding: 0 7px;" | '''[[Template:Person#Skills|Has these skills]]''':  || {{#arraymap:{{{Skills|}}}|, |x|[[Has Skill::{{lc:x}}]]}}
 
|-
 
|-
| style="padding: 0 7px;" | '''[[Template:Event#Where|Where]]''': || [[Has location::{{{location|}}}]] ({{Address|{{#show: {{{location|}}} | ?Has address|link=none}}|{{#show: {{{location|}}} | ?Has city}}|{{#show: {{{location|}}} | ?Has country}}}})
+
| style="padding: 0 7px;" | '''[[Template:Person#MemberOf|Is also a member of]]''': ||  {{#arraymap:{{{Member of|}}}|, |x|[[Is Member of ::Organisation:x|x]]}}
 
|-
 
|-
| colspan="2" style="vertical-align:top; padding: 0 7px;" | '''[[Template:Meeting#Map|Map]]''':  
+
| style="padding: 0 7px;vertical-align:top;" | '''[[Template:Person#Attending|Plans to attend]]''': || {{#Ask:  [[EndDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}]] <q>[[Has attendee::{{FULLPAGENAME}}]] OR [[Has presenter::{{FULLPAGENAME}}]]</q>
 +
| format=list
 +
| sort=EndDate
 +
| order=desc
 +
| limit=10
 +
}}
 
|-
 
|-
| colspan="2" style="text-align:center;padding: 0 7px;" |  
+
| style="padding: 0 7px;vertical-align:top;" | '''[[Template:Person#Attended|Attended]]''':  || {{#Ask:
 +
[[EndDate::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}]] <q>[[Has attendee::{{FULLPAGENAME}}]] OR [[Has presenter::{{FULLPAGENAME}}]]</q>
 +
| format=list
 +
| sort=EndDate
 +
| order=desc
 +
| limit=20
 +
}}
 +
{{#if: {{#show: {{{location|}}}  |?Has address }} |
 +
{{!-}}
 +
{{!}} colspan="2" style="padding: 0.5em; color: white; background-color: #AAAAAA" {{!}} <span style="font-size: 120%;">Location</span>
 +
{{!-}}
 +
{{!}} style="padding: 0 7px;" {{!}} '''[[Template:Person#Where|Where]]''': {{!!}} [[Has location::{{{location|}}}]]<br/><!--
 +
-->({{Address|{{#show: {{{location|}}}|?Has address|link=none}}|{{#show:{{{location|}}}|?Has city}}|{{#show:{{{location|}}}|?Has country}}}})
 +
{{!-}}
 +
{{!}} colspan="2" style="vertical-align:top; padding: 0 7px;" {{!}} '''[[Template:Person#Map|Map]]''':
 +
{{!-}}
 +
{{!}}{{!!}} style="text-align:center;padding: 5px;" {{!}} <!-- using location~title~label syntax -->
 
{{
 
{{
 
#display_point:
 
#display_point:
{{#show: {{{location|}}} | ?Has address}} {{#show: {{{location|}}} | ?Has city}}~{{Address|{{#show: {{{location|}}} | ?Has address}}|{{#show: {{{location|}}} | ?Has city}}|{{#show: {{{location|}}} | ?Has country}}}}
+
{{#show: {{{location|}}} | ?Has address}} {{#show: {{{location|}}} | ?Has city}}~{{Address|{{#show: {{{location|}}} | ?Has address}}|{{#show: {{{location|}}} | ?Has city}}|{{#show: {{{location|}}} | ?Has country}}~This is where {{PAGENAME}} lives.;
 +
}}
 
|width=250
 
|width=250
 
|height=250
 
|height=250
|service=googlemaps
+
|geoservice=google
|controls=small
+
|controls=pan, zoom
 
}}
 
}}
 +
}} <!-- end if has address -->
 
|}
 
|}
<!-- -->
+
<!-- Euh, what was that?
! XMPP
+
| [[Has xmpp address::{{{XMPP|}}}]]
+
|-
+
! Callsign
+
| [[Has callsign::{{{Callsign|}}}]]
+
|-
+
 
! Address
 
! Address
 
| [[Has coordinates::{{{Address|}}}]]
 
| [[Has coordinates::{{{Address|}}}]]
 
{{#display_point:{{{Address|}}}~{{PAGENAME}}}}
 
{{#display_point:{{{Address|}}}~{{PAGENAME}}}}
|-
+
-->
! Member of
+
| <!-- implement arraymap -->
+
! Plans to attend
+
|
+
{{
+
#Ask: [[Category:Events]] [[Has end date::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}]] <q>[[Has attendee::{{PAGENAME}}]] OR [[Has presenter::{{PAGENAME}}]]</q>
+
| format=list
+
| sort=Has end date
+
| order=desc
+
| limit=25
+
}}
+
|-
+
! Attended events
+
|
+
{{
+
#Ask: [[Category:Events]] [[Has end date::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}]] <q>[[Has attendee::{{PAGENAME}}]] OR [[Has presenter::{{PAGENAME}}]]</q>
+
| format=list
+
| sort=Has end date
+
| order=desc
+
| limit=25
+
}}
+
|}
+
  
[[Category:People]]
+
[[Category:Person]]
 
</includeonly>
 
</includeonly>

Latest revision as of 20:06, 14 March 2015

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

{{Person
|Firstname=
|Surname=
|Avatar=<filename>
|Address=
|Website=
|Email=
|PGP=
|XMPP=
|Callsign=<this is for radio amateurs>
|Skills=
|Member of=
}}

Edit the page to see the template text.

[edit] Skills

See the Skills page for a list of skills per member.

Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools