Template:Person

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m
m (Undo revision 22337 by Martin (talk))
 
(54 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" <!--
Line 27: Line 33:
 
| colspan="2" style="padding: 10px 0px; text-align:center;" |<!-- setting custom image if available-->[[Image:{{#if: {{{avatar|}}} |<!--then-->{{{avatar}}}|<!--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#Name|Name]]''': || [[Has firstname::{{{Firstname}}}]] [[Has surname::{{{Surname}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:Person#Name|Name]]''': || [[Has firstname::{{{Firstname|}}}]] [[Has surname::{{{Surname|}}}]]
 
|-
 
|-
| style="padding: 0 7px;"  | '''[[Template:Person#Website|Website]]''': || [[Has website::{{{Website}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:Person#Website|Website]]''': || [[Has website::{{{Website|}}}]]
 
|-
 
|-
| style="padding: 0 7px;"  | '''[[Template:Person#Email|Email]]''': || [[Has email address::{{{Email|}}}]]
+
| style="padding: 0 7px;"  | '''[[Template:Person#Email|Email]]''': || [[Has email address::{{#replace:{{{Email|}}}|@|<nowiki> </nowiki>theAtSign<nowiki> </nowiki>}}]]
 
|-
 
|-
| style="padding: 0 7px;"  | '''[[Template:Person#Xmpp|XMPP]]''': || [[Has xmpp address::{{{XMPP|}}}]]
+
| 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>}}]]
 
|-
 
|-
 
| style="padding: 0 7px;" | '''[[Template:Person#Callsign|Callsign]]''':  || [[Has callsign::{{{Callsign|}}}]]
 
| style="padding: 0 7px;" | '''[[Template:Person#Callsign|Callsign]]''':  || [[Has callsign::{{{Callsign|}}}]]
 
|-
 
|-
| style="padding: 0 7px;" | '''[[Template:Person#MemberOf|Is also a member of]]''':  ||  <!-- implement arraymap -->
+
| style="padding: 0 7px;" | '''[[Circles of Interest|Has interests]]''':  ||  {{#ask: [[Has Interest::{{FULLPAGENAME}}]] }}
 
|-
 
|-
| style="padding: 0 7px;" | '''[[Template:Person#Attending|Plans to attend]]''':  || {{#Ask: [[Category:Event]]
+
| style="padding: 0 7px;" | '''[[Template:Person#Skills|Has these skills]]''':  || {{#arraymap:{{{Skills|}}}|, |x|[[Has Skill::{{lc:x}}]]}}
  [[Has EndDate::>{{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}]] <q>[[Has attendee::{{PAGENAME}}]] OR [[Has presenter::{{PAGENAME}}]]</q>
+
|-
 +
| 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 EndDate
+
| sort=EndDate
 
| order=desc
 
| order=desc
| limit=25
+
| limit=10
 
}}
 
}}
 
|-
 
|-
| colspan="2" style="padding: 0.5em; color: white; background-color: #AAAAAA" | <span style="font-size: 120%;">Location</span>
+
| 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>
| style="padding: 0 7px;" | '''[[Template:Person#Where|Where]]''': || [[Has location::{{{location|}}}]] ({{Address|{{#show: {{{location|}}} | ?Has address|link=none}}|{{#show: {{{location|}}} | ?Has city}}|{{#show: {{{location|}}} | ?Has country}}}})
+
| format=list
|-
+
| sort=EndDate
| colspan="2" style="vertical-align:top; padding: 0 7px;" | '''[[Template:Person#Map|Map]]''':  
+
| order=desc
|-
+
| limit=20
| colspan="2" style="text-align:center;padding: 0 7px;" |
+
}}
 +
{{#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?
 
! Address
 
! Address
 
| [[Has coordinates::{{{Address|}}}]]
 
| [[Has coordinates::{{{Address|}}}]]
 
{{#display_point:{{{Address|}}}~{{PAGENAME}}}}
 
{{#display_point:{{{Address|}}}~{{PAGENAME}}}}
|-
 
! 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:Person]]
 
[[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