Difference between revisions of "Template:Person"

From Funtoo
Jump to navigation Jump to search
 
(31 intermediate revisions by 2 users not shown)
Line 4: Line 4:
<pre>
<pre>
{{Person
{{Person
|Full name=
|Bio=
|Email=
|Nick=
|Geoloc=
|Geoloc=
|Location name=
|Location name=
|Roles=
|Blogs=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>{{#vardefine:username|{{#lowercase:{{PAGENAME}}}}}}{{#get_web_data:url=http://auth.funtoo.org:9093/static/members.xml|format=xml|use xpath|data=fullname=/members/user[@username='{{#var:username}}']/fullname,ircnick=/members/user[@username='{{#var:username}}']/ircnick,role=/members/user[@username='{{#var:username}}']/role,email=/members/user[@username='{{#var:username}}']/email}}<div style="float:right; width: 400px; border-radius: 20px; background-color: #eeeeee; padding: 20px; margin-left: 40px; margin-bottom: 20px; font-family: Helvetica;">{{#vardefine:email|{{#external_value:email}}}}
{{#vardefine:username|{{#lowercase:{{PAGENAME}}}}}}
<div float="left">{{#gravatar_img:{{#var:email}}}}</div>{{#if:{{#var:email}}|{{#set:Gravatar MD5={{#gravatar_md5:{{#var:email}}}}}}}}
{{#get_web_data:url=http://auth.funtoo.org:9093/static/members.xml|format=xml|use xpath|data=fullname=/members/user[@username='{{#var:username}}']/fullname,ircnick=/members/user[@username='{{#var:username}}']/ircnick,role=/members/user[@username='{{#var:username}}']/role}}
{{#if:{{#external_value:fullname}}|[[Full name::{{#external_value:fullname}}]]}}
<div style="float:right; width: 400px; border-radius: 20px; background-color: #eeeeee; padding: 20px; margin: 40px; font-family: Helvetica;">
{{#set:Role={{#external_value:role}}
<div float="left">{{#gravatar_img:{{#show:{{FULLPAGENAME}}|{{#external_value:email}}|link=none}}}}</div>
|SimpleRole={{#ifeq:{{#external_value:role}}|bdfl|dev}}{{#ifeq:{{#external_value:role}}|staff|dev}}{{#ifeq:{{#external_value:role}}|dev|dev}}}}
{{#if:{{{Full name|}}}|== [[Full name::{{#external_value:fullname}} ]]==}}  
{{#if:{{{Roles|}}}|{{{Roles}}}|{{#if:{{{Geoloc|}}}|{{Role|Role type=User}}|}}}}
== Contact ==
== Contact ==
{|
{|
|{{#if:{{{Nick|}}}|freenode: <tt>[[Nick::{{{Nick}}}]]</tt>}}
|{{#if:{{#external_value:ircnick}}|freenode: <tt>[[Ircnick::{{#external_value:ircnick}}]]</tt>}}
|-
|{{#if:{{{Email|}}}|[[Email::{{#external_value:email}}]]}}
|}
|}
{{#if:{{{Geoloc|}}}|
{{#if:{{{Geoloc|}}}|
Line 36: Line 28:
| height=350
| height=350
}} <span style="font-size: 8pt;">[[Location name::{{{Location name|}}}]] ([[Geoloc::{{{Geoloc|}}}]])</span>}}
}} <span style="font-size: 8pt;">[[Location name::{{{Location name|}}}]] ([[Geoloc::{{{Geoloc|}}}]])</span>}}
</div>{{{Blogs|}}}
</div>
[[Category:People]]
[[Category:People]]
{{#set:Bio={{{Bio|}}}}}
__NOTOC__
__NOTOC__
__NOEDITSECTION__
__NOEDITSECTION__
__NOTITLE__</includeonly>
__NOTITLE__</includeonly>

Revision as of 04:17, October 20, 2014

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

{{Person
|Bio=
|Geoloc=
|Location name=
}}

Edit the page to see the template text.