Difference between revisions of "Template:UserInfo"

From SHA2017
Jump to: navigation, search
(broken again)
 
(27 intermediate revisions by 4 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.
 
'''All parameters are optional'''.
 
It should be called in something like the following format:
 
<pre>
 
{{UserInfo
 
|NickName=
 
|Languages=
 
|Team=
 
|Role=
 
|HackerSpace=
 
|Village=
 
|E-Mail=
 
|IRC=
 
|Jabber=
 
|Dect=
 
}}
 
</pre>
 
 
 
Need a additional parameter? Either make support for it yourself or make a request on the [[Template talk:{{PAGENAME}}|talk page]].
 
</noinclude>
 
 
 
<includeonly>
 
<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%; width:221px;" cellspacing="0"|
 
{| style="padding:2px; margin:auto; font-size:85%; width:221px;" cellspacing="0"|
 
|<div class="UserName" style="text-align: center; background-color:#ccccff;">
 
|<div class="UserName" style="text-align: center; background-color:#ccccff;">
Line 28: Line 5:
 
</div>
 
</div>
 
|-
 
|-
| {{#if: {{{Languages|}}} | ''''Languages:''' <br>{{#arraymap:{{{Languages}}}|,|x|* [[Knows language::x]]|\n}} |}}
+
! 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]]}} }}
 +
{{#ifexist:{{{Picture|}}} | | {{#ifexist: File:user_{{PAGENAME}}_Picture.jpg |  | }}}}
 
|-
 
|-
| {{#if: {{{Team|}}} | '''Team:''' [[Is member of team::Team:{{{Team}}}|{{{Team}}}]] |}}
+
| {{#if: {{{Languages|}}} | '''Languages:''' <br>{{#arraymap:{{{Languages}}}|,|x|* [[Knows language::x]]|\n}} |}}
 +
|-
 +
| {{#if: {{{Team|}}} | '''Team:''' {{#arraymap:{{{Team|}}}|,|x|[[Is member of team::Team:x|x]]|, }} |}}
 
|-
 
|-
 
| {{#if: {{{Role|}}} | '''Role:''' [[TeamRole::{{{Role}}}]] |}}
 
| {{#if: {{{Role|}}} | '''Role:''' [[TeamRole::{{{Role}}}]] |}}
Line 43: Line 23:
 
|-
 
|-
 
| {{#if: {{{Jabber|}}} | '''Jabber:''' {{JabberUrl|{{{Jabber}}} }} {{#set:Jabber={{{Jabber}}} }}|}}
 
| {{#if: {{{Jabber|}}} | '''Jabber:''' {{JabberUrl|{{{Jabber}}} }} {{#set:Jabber={{{Jabber}}} }}|}}
 +
|-
 +
| {{#if: {{{Biography|}}} | '''Biography:''' [[User Biography::{{{Biography}}}]] |}}
 
|-
 
|-
 
| {{#if: {{{Dect|}}} | '''Dect:''' [[Dect::{{{Dect}}}]] |}}
 
| {{#if: {{{Dect|}}} | '''Dect:''' [[Dect::{{{Dect}}}]] |}}
 +
|-
 +
| {{#if: {{{DriversLicenses|}}} | '''DriversLicenses:''' <br>{{#arraymap:{{{DriversLicenses}}}|,|x|* [[DrivingLicense::x]]|\n}} |}}
 
|- style="text-align: center"
 
|- style="text-align: center"
 
| {{#formlink:form=UserInfo|link text=[edit]|target={{FULLPAGENAME}}}}
 
| {{#formlink:form=UserInfo|link text=[edit]|target={{FULLPAGENAME}}}}
 
|}
 
|}
 +
<includeonly>
 
[[Category:User|{{{NickName|{{PAGENAME}} }}}]]
 
[[Category:User|{{{NickName|{{PAGENAME}} }}}]]
 +
</includeonly>
 +
</div>
 +
 +
<!-- <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>
 
</div>
</includeonly>
+
<!-- </hack> -->

Latest revision as of 15:33, 2 January 2017

UserInfo

Gameoflife.png
[edit]

UserInfo