Note
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Template:Person"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
}} | }} | ||
</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>{{#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 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}}}} | </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 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}}}} | ||
Line 30: | Line 41: | ||
</div> | </div> | ||
[[Category:People]] | [[Category:People]] | ||
{{#set:Bio={{{Bio|}}}}} | {{#set:Bio={{{Bio|}}}}}{{#cargo_store: | ||
_table=people | |||
|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}}}} | |||
}} | |||
__NOTOC__ | __NOTOC__ | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
__NOTITLE__</includeonly> | __NOTITLE__</includeonly> |
Revision as of 07:30, June 23, 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.