Difference between revisions of "Template:UserInfo"

From SHA2017
Jump to: navigation, search
(adjust the style a bit)
(broken again)
 
(47 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<noinclude>
+
<div class="infobox" style="background-color:#FFFFFF; border:solid 1px #999999; width:368px; margin:auto; float:right;">
This is the "UserInfo" template for use on user pages.
+
{| style="padding:2px; margin:auto; font-size:85%; width:221px;" cellspacing="0"|
All parameters are optional.
+
|<div class="UserName" style="text-align: center; background-color:#ccccff;">
It should be called in the following format:
+
'''[[NickName::{{{NickName|{{PAGENAME}} }}}]]'''
<pre>
+
</div>
{{UserInfo
+
|-
|Image=
+
! colspan=2| {{#ifexist: File:user_{{PAGENAME}}_Picture.jpg | [[File:user_{{PAGENAME}}_Picture.jpg|360x360px]] | {{#ifexist:{{{Picture|}}} | [[{{{Picture|}}}|360x360px]]|[[File:Gameoflife.png|360x360px|link=File:user_{{PAGENAME}}_Picture.jpg]]}} }}
|Name=
+
{{#ifexist:{{{Picture|}}} | | {{#ifexist: File:user_{{PAGENAME}}_Picture.jpg |  | }}}}
|Team=
+
|-
}}
+
| {{#if: {{{Languages|}}} | '''Languages:''' <br>{{#arraymap:{{{Languages}}}|,|x|* [[Knows language::x]]|\n}} |}}
</pre>
+
|-
 
+
| {{#if: {{{Team|}}} | '''Team:''' {{#arraymap:{{{Team|}}}|,|x|[[Is member of team::Team:x|x]]|, }} |}}
Need a additional parameter? Either make support for it yourself or make a request on the [[Template talk:{{PAGENAME}}|talk page]].
+
|-
</noinclude>
+
| {{#if: {{{Role|}}} | '''Role:''' [[TeamRole::{{{Role}}}]] |}}
 
+
|-
<includeonly>
+
| {{#if: {{{HackerSpace|}}} | '''HackerSpace:''' [[Residential hackerspace::{{{HackerSpace}}}]] |}}
<div class="infobox" style="background-color:#FFFFFF; border:solid 1px #999999; width:225px; margin:auto; float:right;">
+
|-
{| style="padding:2px; margin:auto; font-size:85%;" cellspacing="0"|
+
| {{#if: {{{Village|}}} | '''Village:''' [[Is inhabitant of village::Village:{{{Village}}}|{{{Village}}}]] |}}
|<div class="UserName" style="text-align: center; background-color:#ccccff;" colspan="2">'''{{{Name|{{PAGENAME}}}}}'''</div>
+
|-
 +
| {{#if: {{{E-Mail|}}} | '''E-Mail:''' <br>{{#arraymap:{{{E-Mail}}}|,|x|* [[E-Mail::x]]|\n}} |}}
 +
|-
 +
| {{#if: {{{IRC|}}} | '''IRC Nick:''' {{{IRC}}} |}}
 +
|-
 +
| {{#if: {{{Jabber|}}} | '''Jabber:''' {{JabberUrl|{{{Jabber}}} }} {{#set:Jabber={{{Jabber}}} }}|}}
 +
|-
 +
| {{#if: {{{Biography|}}} | '''Biography:''' [[User Biography::{{{Biography}}}]] |}}
 
|-
 
|-
| {{#if: {{{Image|}}} | [[Image:{{{Image}}}|center|200px|{{{Name|{{PAGENAME}}}}}]] |}}
+
| {{#if: {{{Dect|}}} | '''Dect:''' [[Dect::{{{Dect}}}]] |}}
 
|-
 
|-
| {{#if: {{{Team|}}} | '''Team:''' [[Is member of team::Team:{{{Team}}}|{{{Team}}}]] |}}
+
| {{#if: {{{DriversLicenses|}}} | '''DriversLicenses:''' <br>{{#arraymap:{{{DriversLicenses}}}|,|x|* [[DrivingLicense::x]]|\n}} |}}
 +
|- style="text-align: center"
 +
| {{#formlink:form=UserInfo|link text=[edit]|target={{FULLPAGENAME}}}}
 
|}
 
|}
 +
<includeonly>
 +
[[Category:User|{{{NickName|{{PAGENAME}} }}}]]
 +
</includeonly>
 
</div>
 
</div>
</includeonly>
+
 
 +
<!-- <hack> -->
 +
<div style="display: none;">
 +
[[PageName::{{PAGENAME}}|{{{NickName|{{PAGENAME}}}}}]]
 +
{{#ifexist:{{{Picture|}}} | {{#set:User Image={{{Picture}}}|User Image String={{PAGENAME:{{{Picture}}} }} }}
 +
| {{#set:User Image=File:user_{{PAGENAME}}_Picture.jpg|User Image String=user_{{PAGENAME}}_Picture.jpg}}
 +
}}
 +
</div>
 +
<!-- </hack> -->

Latest revision as of 15:33, 2 January 2017

UserInfo

Gameoflife.png
[edit]

UserInfo