Template:User

From Edge of Darkness Wiki

User
Jump to: navigation, search
m
m
Line 30: Line 30:
|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;">[[:Category:Players|Players]] • [[Staff]] • [[Achievements]]</span>
}}[[Category:Players|{{PAGENAME}}]]{{#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|}}} }} }}{{#get_db_data:
}}[[Category:Players|{{PAGENAME}}]]{{#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|}}} }} }}{{#get_db_data:
-
db=nwod
 
-
|from=rank_user
 
-
|where=userid='{{#show:{{PAGENAME}}|?forumid|link=none}}'
 
-
|data=awards=rank-id
 
-
}}{{#set:awards={{#external_value:awards}}}}{{#get_db_data:
 
db=nwod
db=nwod
|from=user
|from=user
|where=username='{{BASEPAGENAME}}'
|where=username='{{BASEPAGENAME}}'
|data=forumid=userid
|data=forumid=userid
-
}}{{#set:forumid={{#external_value:forumid}}}}{{#set:forumname={{BASEPAGENAME}}}}</includeonly>
+
}}{{#get_db_data:
 +
db=nwod
 +
|from=rank_user
 +
|where=userid='{{#external_value:forumid}}'
 +
|data=awards=rank-id
 +
}}{{#set:awards={{#external_value:awards}}}}{{#set:forumid={{#external_value:forumid}}}}{{#set:forumname={{BASEPAGENAME}}}}</includeonly>
<noinclude>{{Documentation}}[[Category:Player Use Templates‎]]</noinclude>
<noinclude>{{Documentation}}[[Category:Player Use Templates‎]]</noinclude>

Revision as of 23:57, 29 March 2016

[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