Difference between revisions of "Template:Person"

From Funtoo
Jump to navigation Jump to search
 
(48 intermediate revisions by 3 users not shown)
Line 4: Line 4:
<pre>
<pre>
{{Person
{{Person
|Full name=
|Bio=
|Email=
|Nick=
|Geoloc=
|Geoloc=
|Maintains=
|Location name=
|Location name=
|Roles=
|Blogs=
}}
}}
</pre>
</pre>
{{#cargo_declare:
_table=people
|Full_Name=Text
|IRCNick=Text
|Bio=WikiText
|Geoloc=Coordinates
|Location_Name=Text
|Gravatar_MD5=Text
|Role=Text
|SimpleRole=Text
}}
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly><div style="float:right; width: 400px; border-radius: 20px; background-color: #eeeeee; padding: 20px; margin: 40px; font-family: Helvetica;">
</noinclude><includeonly>{{#vardefine:username|{{#lowercase:{{PAGENAME}}}}}}{{#get_web_data:url=http://127.0.0.1:8888/users.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 float="left">{{#gravatar_img:{{#show:{{FULLPAGENAME}}|?Email|link=none}}}}</div>
__NOTOC__
{{#if:{{{Full name|}}}|== [[Full name::{{{Full name|}}} ]]==}}  
__NOEDITSECTION__
{{#if:{{{Roles|}}}|{{{Roles}}}|{{#if:{{{Geoloc|}}}|{{Role|Role type=User}}|}}}}
__NOTITLE__
<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}}}}
<div float="left">{{#gravatar_img:{{#var:email}}}}</div>
 
== Contact ==
== Contact ==
{|
{|
|{{#if:{{{Nick|}}}|freenode: <tt>[[Nick::{{{Nick}}}]]</tt>}}
|{{#if:{{#external_value:ircnick}}|freenode: <tt>{{#external_value:ircnick}}</tt>}}
|-
|{{#if:{{{Email|}}}|[[Email::{{{Email}}}]]}}
|}
|}
{{#if:{{{Geoloc|}}}|
{{#if:{{{Geoloc|}}}|
Line 33: Line 41:
| width=100%
| width=100%
| height=350
| height=350
}} <span style="font-size: 8pt;">[[Location name::{{{Location name|}}}]] ([[Geoloc::{{{Geoloc}}}]]|}})</span>
}} <span style="font-size: 8pt;">{{{Location name|}}}</span>}}
</div>{{{Maintains|}}}{{{Blogs|}}}
</div>
[[Category:People]]
[[Category:People]]
__NOTOC__
{{#cargo_store:
__NOEDITSECTION__
_table=people
__NOTITLE__</includeonly>
|Full_Name={{#external_value:fullname}}
|IRCNick={{#external_value:ircnick}}
|Bio={{{Bio|}}}
|Geoloc={{{Geoloc|}}}
|Location_Name={{{Location name|}}}
|Gravatar_MD5={{#gravatar_md5:{{#var:email}}}}
|Role={{#external_value:role}}
|SimpleRole={{#ifeq:{{#external_value:role}}|bdfl|dev}}{{#ifeq:{{#external_value:role}}|staff|dev}}{{#ifeq:{{#external_value:role}}|dev|dev}}
}}
</includeonly>

Revision as of 07:20, June 28, 2015

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

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

This template defines the table "people". View table. Edit the page to see the template text.