Template:Person

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
(smw maintenance)
 
m (Undo revision 22337 by Martin (talk))
 
(61 intermediate revisions by 5 users not shown)
Line 6: Line 6:
 
|Firstname=
 
|Firstname=
 
|Surname=
 
|Surname=
 +
|Avatar=<filename>
 
|Address=
 
|Address=
 
|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.
</noinclude><includeonly>
+
 
{| class="wikitable"
+
== Skills ==
! Homepage
+
See the [[Skills]] page for a list of skills per member.
| [[Has website::{{{Homepage|}}}]]
+
</noinclude><includeonly><!--
 +
--> {| class="" cellpadding="2" cellspacing="0" <!--
 +
--> style="float: right; width: 300px; margin: 0 0 1em 1em; border: 2px solid #AAAAAA; background-color: #FFFFFF"
 +
|+ '''[[Special:UserLogin|Sign up]]'''
 
|-
 
|-
! Email address
+
! colspan="2" <!-- This is the header
| [[Has email address::{{{Email|}}}]]
+
--> style="padding-top: 0.5em; color: white; background-color: #AAAAAA" <!--
 +
--> | [[Image:Person.png|link=|left|40px]] <span style="font-size: 150%;">{{PAGENAME}}</span>
 
|-
 
|-
! XMPP
+
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[Image:{{#if: {{{avatar|}}} |<!--then-->{{{avatar}}}|<!--else-->G8033.png}}|200px|link=]]
| [[Has xmpp address::{{{XMPP|}}}]]
+
 
|-
 
|-
! Callsign
+
| style="padding: 0 7px;"  | '''[[Template:Person#Name|Name]]''': || [[Has firstname::{{{Firstname|}}}]] [[Has surname::{{{Surname|}}}]]
| [[Has callsign::{{{Callsign|}}}]]
+
 
|-
 
|-
! Address
+
| style="padding: 0 7px;"  | '''[[Template:Person#Website|Website]]''': || [[Has website::{{{Website|}}}]]
| [[Has coordinates::{{{Address|}}}]]
+
{{#display_point:{{{Address|}}}~{{PAGENAME}}}}
+
 
|-
 
|-
! Member of
+
| style="padding: 0 7px;"  | '''[[Template:Person#Email|Email]]''': || [[Has email address::{{#replace:{{{Email|}}}|@|<nowiki> </nowiki>theAtSign<nowiki> </nowiki>}}]]
| <!-- implement arraymap -->
+
|-
! Plans to attend
+
| style="padding: 0 7px;"  | '''[[Template:Person#PGP|PGP]]''': || [[Has pgp keyid::{{{PGP|}}}]]
|  
+
|-
{{
+
| style="padding: 0 7px;"  | '''[[Template:Person#Xmpp|XMPP]]''': || [[Has xmpp address::{{#replace:{{{XMPP|}}}|@|<nowiki> </nowiki>theAtSign<nowiki> </nowiki>}}]]
#Ask: [[Category:Events]] [[Has end date::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}]] <q>[[Has attendee::{{PAGENAME}}]] OR [[Has presenter::{{PAGENAME}}]]</q>
+
|-
 +
| style="padding: 0 7px;" | '''[[Template:Person#Callsign|Callsign]]''':  || [[Has callsign::{{{Callsign|}}}]]
 +
|-
 +
| style="padding: 0 7px;" | '''[[Circles of Interest|Has interests]]''':  ||  {{#ask: [[Has Interest::{{FULLPAGENAME}}]] }}
 +
|-
 +
| style="padding: 0 7px;" | '''[[Template:Person#Skills|Has these skills]]''':  ||  {{#arraymap:{{{Skills|}}}|, |x|[[Has Skill::{{lc:x}}]]}}
 +
|-
 +
| style="padding: 0 7px;" | '''[[Template:Person#MemberOf|Is also a member of]]''': ||  {{#arraymap:{{{Member of|}}}|, |x|[[Is Member of ::Organisation:x|x]]}}
 +
|-
 +
| 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
 
| format=list
| sort=Has end date
+
| sort=EndDate
 
| order=desc
 
| order=desc
| limit=25
+
| limit=10
 
}}
 
}}
 
|-
 
|-
! Attended events
+
| 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>
{{
+
#Ask: [[Category:Events]] [[Has end date::<{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}]] <q>[[Has attendee::{{PAGENAME}}]] OR [[Has presenter::{{PAGENAME}}]]</q>
+
 
| format=list
 
| format=list
| sort=Has end date
+
| sort=EndDate
 
| order=desc
 
| order=desc
| limit=25
+
| 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:
 +
{{#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
 +
|height=250
 +
|geoservice=google
 +
|controls=pan, zoom
 +
}}
 +
}} <!-- end if has address -->
 
|}
 
|}
 +
<!-- Euh, what was that?
 +
! Address
 +
| [[Has coordinates::{{{Address|}}}]]
 +
{{#display_point:{{{Address|}}}~{{PAGENAME}}}}
 +
-->
  
[[Category:People]]
+
[[Category:Person]]
 
</includeonly>
 
</includeonly>

Latest revision as of 21: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