注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Template:Person"

From Funtoo
Jump to navigation Jump to search
 
(43 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>
{{#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>
</noinclude><includeonly>{{#vardefine:username|{{#lowercase:{{PAGENAME}}}}}}
{{#vardefine:username|{{#lowercase:{{PAGENAME}}}}}}
__NOTOC__
pagename {{PAGENAME}}
__NOEDITSECTION__
username: {{#var:username}}
<div style="float:right; width: 400px; border-radius: 20px; background-color: #eeeeee; padding: 20px; margin-left: 40px; margin-bottom: 20px; font-family: Helvetica;">
{{#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>
{{#if:{{{Full name|}}}|== [[Full name::{{#external_value:fullname}} ]]==}}
{{#if:{{{Roles|}}}|{{{Roles}}}|{{#if:{{{Geoloc|}}}|{{Role|Role type=User}}|}}}}
== Contact ==
{|
|{{#if:{{{Nick|}}}|freenode: <tt>[[Nick::{{{Nick}}}]]</tt>}}
|-
|{{#if:{{{Email|}}}|[[Email::{{#external_value:email}}]]}}
|}
{{#if:{{{Geoloc|}}}|
{{#if:{{{Geoloc|}}}|
== Location ==
== Location ==
Line 37: Line 34:
| 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>{{{Blogs|}}}
</div>
[[Category:People]]
[[Category:People]]
__NOTOC__
</includeonly>
__NOEDITSECTION__
__NOTITLE__</includeonly>

Latest revision as of 03:16, September 9, 2018

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.