Template:User
From Edge of Darkness Wiki
User
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 | 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] []
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 =
}}
| The above documentation is transcluded from Template:User/doc. (edit | history) Editors can experiment in this template's sandbox (create). Subpages of this template:
|