Template:User

From Edge of Darkness Wiki

User
Jump to: navigation, search
m
 
(6 intermediate revisions not shown)
Line 1: Line 1:
-
<includeonly>{{#get_db_data:
+
<includeonly>{{#get_db_data:db=nwod
 +
|from=rank_user JOIN rank ON rank.rank_id = rank_user.rank_id JOIN user on user.userid = rank_user.userid
 +
|where=user.username='{{BASEPAGENAME}}'
 +
|data={{PAGENAMEE}}rankname=rank_name,{{PAGENAMEE}}rankimage=rank_img_url,{{PAGENAMEE}}userid=user.userid
 +
}}<div style="position: absolute; right: 0px; top: -25px;">
 +
{{#for_external_table: <div style="display: inline; padding-left: 3px;" ><html><a href="http://nwod.org/forum/member.php?</html>{{#external_value: {{PAGENAMEE}}userid }}<html>&tab=myranks" title="</html>{{{{{PAGENAMEE}}rankname}}}<html>"><img src="http://nwod.org/forum/</html>{{{{{PAGENAMEE}}rankimage}}}<html>" /></a></html></div> }}
 +
</div>{{#get_db_data:
db=nwod
db=nwod
|from=user
|from=user
|where=username='{{BASEPAGENAME}}'
|where=username='{{BASEPAGENAME}}'
|data={{PAGENAMEE}}forumid=userid,{{PAGENAMEE}}usergroup=membergroupids,{{PAGENAMEE}}primaryusergroup=usergroupid,{{PAGENAMEE}}usertitle=usertitle,{{PAGENAMEE}}posts=posts,{{PAGENAMEE}}lastactivity=lastactivity,{{PAGENAMEE}}accounts=psi_qas
|data={{PAGENAMEE}}forumid=userid,{{PAGENAMEE}}usergroup=membergroupids,{{PAGENAMEE}}primaryusergroup=usergroupid,{{PAGENAMEE}}usertitle=usertitle,{{PAGENAMEE}}posts=posts,{{PAGENAMEE}}lastactivity=lastactivity,{{PAGENAMEE}}accounts=psi_qas
-
}}{{#set:forumid={{#external_value:{{PAGENAMEE}}forumid}}}}{{#get_db_data:
+
}}{{#set:forumid={{#external_value:{{PAGENAMEE}}forumid}}}}{{#set:forumname={{PAGENAMEE}}}}<div style="float: right;" id="infobox-user">{{Infobox
-
db=nwod
+
-
|from=userfield
+
-
|where=userid='{{#external_value:{{PAGENAMEE}}forumid}}'
+
-
|limit=50
+
-
|data={{PAGENAMEE}}m1-name=field109,{{PAGENAMEE}}m2-name=field110,{{PAGENAMEE}}m3-name=field111,m4-name=field112
+
-
}}{{#ifexist:{{#external_value:{{PAGENAMEE}}m1-name}}|{{#set:Minisheet1={{#external_value:{{PAGENAMEE}}m1-name}}}}{{#set:Has Minisheet={{#external_value:{{PAGENAMEE}}m1-name}}}}|}}{{#ifexist:{{#external_value:{{PAGENAMEE}}m2-name}}|{{#set:Minisheet2={{#external_value:{{PAGENAMEE}}m2-name}}}}{{#set:Has Minisheet={{#external_value:{{PAGENAMEE}}m2-name}}}}|}}{{#ifexist:{{#external_value:{{PAGENAMEE}}m3-name}}|{{#set:Minisheet3={{#external_value:{{PAGENAMEE}}m3-name}}}}{{#set:Has Minisheet={{#external_value:{{PAGENAMEE}}m3-name}}}}|}}{{#ifexist:{{#external_value:{{PAGENAMEE}}m3-name}}|{{#set:Minisheet4={{#external_value:m4-name}}}}{{#set:Has Minisheet={{#external_value:m4-name}}}}|}}{{#set:forumname={{PAGENAMEE}}}}<div style="float: right;" id="infobox-user">{{Infobox
+
|name        = User
|name        = User
|bodystyle  = margin-left: 10px; background: #191919;
|bodystyle  = margin-left: 10px; background: #191919;
Line 24: Line 24:
|caption    = Wiki: [[User_talk:{{BASEPAGENAME}}|Talk]] {{dot1}} [[Special:Contributions/{{BASEPAGENAME}}|Contributions]]
|caption    = Wiki: [[User_talk:{{BASEPAGENAME}}|Talk]] {{dot1}} [[Special:Contributions/{{BASEPAGENAME}}|Contributions]]
-
 
|headerstyle =  
|headerstyle =  
-
 
+
|header1    =  
-
|header1    = <div style="position: absolute; white-space: nowrap; text-align: center; right: 0px; top: -25px;">{{#get_db_data:
+
-
db=nwod
+
-
|from=rank_user
+
-
|where=userid={{#external_value: {{PAGENAMEE}}forumid }}
+
-
|data={{PAGENAMEE}}user=userid,{{PAGENAMEE}}award=rank_id,{{PAGENAMEE}}awardreason=issue_reason
+
-
}}{{#arraymap:{{#for_external_table: {{{{{PAGENAMEE}}award}}}, }}|,|zz|{{#switch:zz
+
-
|9=[[File:6mosbig.png|x45px|link=Achievements#Tenure|This member has been playing here for over six months.]]{{#set:Achievement=Six Months}}
+
-
|10=[[File:12mosbig.png|x45px|link=Achievements#Tenure|This member has been playing here for over one year.]]{{#set:Achievement=One Year}}
+
-
|11=[[File:24mosbig.png|x45px|link=Achievements#Tenure|This member has been playing here for over two years.]]{{#set:Achievement=Two Year}}
+
-
|13=[[File:36mosbig.png|x45px|link=Achievements#Tenure|This member has been playing here for over three years.]]{{#set:Achievement=Three Year}}
+
-
|15=[[File:48mosbig.png|x45px|link=Achievements#Tenure|This member has been playing here for over four years.]]{{#set:Achievement=Four Year}}
+
-
|19=[[File:5ybig.png|x45px|link=Achievements#Tenure|This member has been playing here for over five years.]]{{#set:Achievement=Five Year}}
+
-
|12=[[File:Donorbig.png|x45px|link=Achievements#Player_Achievements|This member contributed to the site financially.]]{{#set:Achievement=Angel}}
+
-
|5=[[File:Wikibig.png|x50px|Significant Wiki Contributor]]{{#set:Achievement=Wiki Contributor}}
+
-
|6=[[File:PKbig.png|x45px|link=Achievements#Player_Achievements|This member killed another member's character.]]{{#set:Achievement=Deadly Player}}
+
-
|4=[[File:Pcdeathbig.png|x45px|link=Achievements#Player_Achievements|This member had a character die.]]{{#set:Achievement=Deadly Experience}}
+
-
|23=[[File:Prpbig.png|x45px|link=Achievements#Player_Achievements|This member ran a Player Run Plot.]]{{#set:Achievement=PRP}}
+
-
|8=[[File:POTM.png|x45px|link=Player of the Month|This won Player of the Month.]]{{#set:Achievement=Player of the Month}}
+
-
|24=[[File:POTM3.png|x45px|link=Player of the Month|This won Player of the Month three times (or more).]]{{#set:Achievement=Player of the Month|Player of the Month={{{{{PAGENAMEE}}awardreason}}}}}
+
-
|26=[[File:Custom Content.png|x45px|link=Achievements#Player_Achievements|This member has contributed custom content which has been approved for play.]]{{#set:Achievement=Custom Content}}
+
-
|}}
+
-
|&nbsp;}}{{#arraymap:{{#for_external_table: {{{{{PAGENAMEE}}usergroup}}}, }}|,|zz|{{#switch:zz
+
-
|9=[[File:POTM.png|x50px|link=Player of the Month|This member has been selected Player of the Month previously]]{{#set:Achievement=Player of the Month}}
+
-
|11=[[File:Current_Storyteller_For_Changeling.png|x45px|link=Achievements#Player_Achievements|This is a Storyteller for Changeling.]][[Category:Staff|{{PAGENAME}}]]{{#set:Storyteller=Changeling}}
+
-
|12=[[File:Current_Storyteller_For_Mage.png|x45px|link=Achievements#Player_Achievements|This is a Storyteller for Mage.]][[Category:Staff|{{PAGENAME}}]]{{#set:Storyteller=Mage}}
+
-
|13=[[File:Current_Storyteller_For_Vampire.png|x45px|link=Achievements#Player_Achievements|This is a Storyteller for Vampire.]][[Category:Staff|{{PAGENAME}}]]{{#set:Storyteller=Vampire}}
+
-
|}}|&nbsp;}}{{#arraymap:{{#for_external_table: {{{{{PAGENAMEE}}primaryusergroup}}}, }}|,|zz|{{#switch:zz
+
-
|11=[[File:Current_Storyteller_For_Changeling.png|x45px|link=Achievements#Player_Achievements|This is a Storyteller for Changeling.]][[Category:Staff|{{PAGENAME}}]]{{#set:Storyteller=Changeling}}
+
-
|12=[[File:Current_Storyteller_For_Mage.png|x45px|link=Achievements#Player_Achievements|This is a Storyteller for Mage.]][[Category:Staff|{{PAGENAME}}]]{{#set:Storyteller=Mage}}
+
-
|13=[[File:Current_Storyteller_For_Vampire.png|x45px|link=Achievements#Player_Achievements|This is a Storyteller for Vampire.]][[Category:Staff|{{PAGENAME}}]]{{#set:Storyteller=Vampire}}
+
-
|}}|&nbsp;}}{{#switch: {{{Former Storyteller|}}}|Yes=&nbsp;[[File:{{{Former Storyteller For|}}}.png|x45px|link=Achievements#Player_Achievements|This member once ST'ed for {{{Former Storyteller For|}}}.]][[Category:Former Staff|{{PAGENAME}}]]{{#set:Storyteller For={{{Former Storyteller For|}}}}}&nbsp;|No=&nbsp;}}</div>
+
|header3    = <span style="font-style:bold; color: #ff9933; white-space: nowrap; font-size: 120%;">Forums</span>
|header3    = <span style="font-style:bold; color: #ff9933; white-space: nowrap; font-size: 120%;">Forums</span>
Line 68: Line 36:
|belowstyle  =  
|belowstyle  =  
-
|below      = <span style="font-style:bold; color: #ff9933; white-space: nowrap; font-size: 120%;">Community</span><br /><span style="white-space: nowrap;">[[:Category:Players|Players]] • [[Staff]] • [[Achievements]]</span>
+
|below      = <span style="font-style:bold; color: #ff9933; white-space: nowrap; font-size: 120%;">Community</span><br /><span style="white-space: nowrap;">[http://nwod.org/forum/memberlist.php Players] • [http://nwod.org/forum/ranks.php Achievements]</span>
-
}}</div>[[Category:Players|{{PAGENAME}}]]{{#switch: {{{POTM1|}}}|Yes={{#set:Achievement=Player of the Month|Player of the Month={{{POTM1Month|}}} {{{POTM1Year|}}}}} }}{{#switch: {{{POTM2|}}}|Yes={{#set:Achievement=Player of the Month|Player of the Month={{{POTM2Month|}}} {{{POTM2Year|}}} }} }}{{#switch: {{{POTM3|}}}|Yes={{#set:Achievement=Player of the Month|Player of the Month={{{POTM3Month|}}} {{{POTM3Year|}}} }} }}</includeonly>
+
}}</div>[[Category:Players|{{PAGENAME}}]]</includeonly>
<noinclude>{{Documentation}}[[Category:Player Use Templates‎]]</noinclude>
<noinclude>{{Documentation}}[[Category:Player Use Templates‎]]</noinclude>

Latest revision as of 20:11, 25 January 2017

[edit] [purge] Template documentation

Usage:

{{User}}

This should be automated by the Edit button, calling up the Form:Edit User

There is also a Notes field for more advanced use (such as adding Achievement icons). The full template is:

{{User
|Show             =
}}
Personal tools
Namespaces
Variants
Actions
Navigation
games
Toolbox