Difference between revisions of "Template:Person"

Line 15: Line 15:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
{{#vardefine:username|{{#lowercase:{{PAGENAME}}}}}}
+
{{#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}},email=/members/user[@username='{{#var:username}}']/email}}<div style="float:right; width: 400px; border-radius: 20px; background-color: #eeeeee; padding: 20px; margin: 40px; font-family: Helvetica;">
pagename {{PAGENAME}}
+
username: {{#var:username}}
+
{{#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}}
+
<div style="float:right; width: 400px; border-radius: 20px; background-color: #eeeeee; padding: 20px; margin: 40px; font-family: Helvetica;">
+
 
<div float="left">{{#gravatar_img:{{#show:{{FULLPAGENAME}}|{{#external_value:email}}|link=none}}}}</div>
 
<div float="left">{{#gravatar_img:{{#show:{{FULLPAGENAME}}|{{#external_value:email}}|link=none}}}}</div>
{{#if:{{{Full name|}}}|== [[Full name::{{#external_value:fullname}} ]]==}}
+
[[Full name::{{#external_value:fullname}} ]]
{{#if:{{{Roles|}}}|{{{Roles}}}|{{#if:{{{Geoloc|}}}|{{Role|Role type=User}}|}}}}
+
[[Role::{{#external_value:role}} ]]
 
== Contact ==
 
== Contact ==
 
{|
 
{|
|{{#if:{{{Nick|}}}|freenode: <tt>[[Nick::{{{Nick}}}]]</tt>}}
+
|{{#if:{{#external_value:ircnick}}|freenode: <tt>[[Nick::{{#external_value:ircnick}}]]</tt>}}
 
|-
 
|-
|{{#if:{{{Email|}}}|[[Email::{{#external_value:email}}]]}}
+
[[Email::{{#external_value:email}}]]
 
|}
 
|}
 
{{#if:{{{Geoloc|}}}|
 
{{#if:{{{Geoloc|}}}|

Revision as of 21:04, June 18, 2014

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

{{Person
|Full name=
|Email=
|Nick=
|Geoloc=
|Location name=
|Roles=
|Blogs=
}}

Edit the page to see the template text.