Template:Character
From Edge of Darkness Wiki
Character
m |
m |
||
| Line 6: | Line 6: | ||
|where=userid='{{{forumid|}}}' | |where=userid='{{{forumid|}}}' | ||
|data={{{forumid|}}}forumid=userid,{{{forumid|}}}posts=posts,{{{forumid|}}}lastactivity=lastpost | |data={{{forumid|}}}forumid=userid,{{{forumid|}}}posts=posts,{{{forumid|}}}lastactivity=lastpost | ||
| - | }}{{#get_db_data:db=nwod | + | }}{{#if:{{{Character Status|}}}|Active={{#get_db_data:db=nwod |
|from=userlist | |from=userlist | ||
|where=userid='{{{forumid|}}}' and type='buddy' and friend='yes' | |where=userid='{{{forumid|}}}' and type='buddy' and friend='yes' | ||
| Line 14: | Line 14: | ||
|where=userid='{{{forumid|}}}' and type='buddy' and friend='no' | |where=userid='{{{forumid|}}}' and type='buddy' and friend='no' | ||
|data={{{forumid|}}}contact=relationid | |data={{{forumid|}}}contact=relationid | ||
| - | }}{{#arraymap:{{#for_external_table: {{{{{{forumid|}}}friend}}}, }}|,|xxx|{{#set:Friend To={{#ask: [[forumid::xxx]] [[Category:Characters]] |link=none}}}}}}{{#arraymap:{{#for_external_table: {{{{{{forumid|}}}contact}}}, }}|,|yyy|{{#set:Connected To={{#ask: [[forumid::yyy]] [[Category:Characters]] |link=none}}}}}}{{#switch: {{{minisheet|}}} | + | }}{{#arraymap:{{#for_external_table: {{{{{{forumid|}}}friend}}}, }}|,|xxx|{{#set:Friend To={{#ask: [[forumid::xxx]] [[Category:Characters]] |link=none}}}}}}{{#arraymap:{{#for_external_table: {{{{{{forumid|}}}contact}}}, }}|,|yyy|{{#set:Connected To={{#ask: [[forumid::yyy]] [[Category:Characters]] |link=none}}}}}}|}}{{#switch: {{{minisheet|}}} |
|1={{#get_db_data:db=nwod | |1={{#get_db_data:db=nwod | ||
|from=userfield | |from=userfield | ||
Revision as of 22:45, 9 May 2016
[create]
Template documentation
| Editors can experiment in this template's sandbox (create). Subpages of this template: |