Template:User
From Edge of Darkness Wiki
User
m |
|||
(29 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}}}} | + | }}{{#set:forumid={{#external_value:{{PAGENAMEE}}forumid}}}}{{#set:forumname={{PAGENAMEE}}}}<div style="float: right;" id="infobox-user">{{Infobox |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
|name = User | |name = User | ||
- | |bodystyle = margin-left: 10px; | + | |bodystyle = margin-left: 10px; background: #191919; |
|labelstyle = text-align: right; font-weight: bold; | |labelstyle = text-align: right; font-weight: bold; | ||
|datastyle = padding-left: 3px; | |datastyle = padding-left: 3px; | ||
- | |titlestyle = | + | |titlestyle = background: #191919;padding-top: 3px; |
|title = {{#external_value:{{PAGENAMEE}}usertitle}} | |title = {{#external_value:{{PAGENAMEE}}usertitle}} | ||
Line 30: | 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 = | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
|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> | ||
|label4 = Posts | |label4 = Posts | ||
|data4 = [http://nwod.org/forum/search.php?do=finduser&userid={{#external_value: {{PAGENAMEE}}forumid }}&contenttype=vBForum_Post&showposts=1 {{#external_value: {{PAGENAMEE}}posts }}] | |data4 = [http://nwod.org/forum/search.php?do=finduser&userid={{#external_value: {{PAGENAMEE}}forumid }}&contenttype=vBForum_Post&showposts=1 {{#external_value: {{PAGENAMEE}}posts }}] | ||
- | |label5 = | + | |label5 = Online |
- | |data5 = [http://nwod.org/forum/member.php?{{#external_value: {{PAGENAMEE}}forumid }} {{#time: D M d, Y |@{{#external_value: {{PAGENAMEE}}lastactivity }}}}] | + | |data5 = [http://nwod.org/forum/member.php?{{#external_value: {{PAGENAMEE}}forumid }} {{#time: D M d, Y |@{{#external_value: {{PAGENAMEE}}lastactivity }}}}]{{#set:Last Activity={{#time: M d Y |@{{#external_value: {{PAGENAMEE}}lastactivity }}}}}} |
|header8 = <span style="font-style:bold; color: #ff9933; white-space: nowrap; font-size: 120%;">Characters</span><br />{{#ask: [[Player::User:{{BASEPAGENAME}}]]| link=none| ?Venue| ?Character Status| ?Character Name| format=template| template=User/PC |sort=Character Status,Character Name }} | |header8 = <span style="font-style:bold; color: #ff9933; white-space: nowrap; font-size: 120%;">Characters</span><br />{{#ask: [[Player::User:{{BASEPAGENAME}}]]| link=none| ?Venue| ?Character Status| ?Character Name| format=template| template=User/PC |sort=Character Status,Character Name }} | ||
|belowstyle = | |belowstyle = | ||
- | |below = <span style="font-style:bold; color: #ff9933; white-space: nowrap; font-size: 120%;">Community</span><br /><span style="white-space: nowrap;">[ | + | |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> |
- | }}[[Category:Players|{{PAGENAME}}]] | + | }}</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] [ ]
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:
|