Template:Character

From Edge of Darkness Wiki

Character
Jump to: navigation, search
m
m
Line 224: Line 224:
|}}{{#clear_external_data:}}{{#get_db_data:db=nwod
|}}{{#clear_external_data:}}{{#get_db_data:db=nwod
  |from=post JOIN thread ON (thread.threadid = post.threadid)
  |from=post JOIN thread ON (thread.threadid = post.threadid)
-
  |where=thread.forumid IN ({{#switch:{{#show: {{BASEPAGENAME}} |?Venue#= }}|Changeling=98|Mage=258|Vampire=61|61,258,98}}) AND
+
  |where=thread.forumid IN ({{#switch:{{#show: {{BASEPAGENAME}} |?Venue#= }}|Changeling=98|Mage=258|Vampire=61|61,258,98}}) AND post.iconid IN (50,51,52,53,54) AND post.userid = '{{{forumid|}}}' AND thread.prefixid IN ('City','consilium','freehold_status') AND thread.lastpost >= UNIX_TIMESTAMP()-10000000
-
post.iconid IN (50,51,52,53,54) AND
+
-
post.userid = '{{{forumid|}}}' AND
+
-
thread.prefixid IN ('City','consilium','freehold_status') AND
+
-
thread.lastpost >= UNIX_TIMESTAMP()-10000000
+
  |data={{{forumid|}}}statusfor=thread.title,{{{forumid|}}}statusgiven=(case when post.iconid = 50 then 'Acknowledges' when post.iconid = 51 then 'Recognizes' when post.iconid = 52 then 'Values' when post.iconid = 53 then 'Respects' when post.iconid = 54 then 'Admires' end),{{{forumid|}}}venue=(case when thread.forumid = 61 then 'Vampire' when thread.forumid = 258 then 'Mage' when thread.forumid = 98 then 'Changeling' end)}}{{dontshow|{{#for_external_table:  [[{{{{{{forumid|}}}statusgiven}}}::{{{{{{forumid|}}}statusfor}}}]] }}}}</includeonly>
  |data={{{forumid|}}}statusfor=thread.title,{{{forumid|}}}statusgiven=(case when post.iconid = 50 then 'Acknowledges' when post.iconid = 51 then 'Recognizes' when post.iconid = 52 then 'Values' when post.iconid = 53 then 'Respects' when post.iconid = 54 then 'Admires' end),{{{forumid|}}}venue=(case when thread.forumid = 61 then 'Vampire' when thread.forumid = 258 then 'Mage' when thread.forumid = 98 then 'Changeling' end)}}{{dontshow|{{#for_external_table:  [[{{{{{{forumid|}}}statusgiven}}}::{{{{{{forumid|}}}statusfor}}}]] }}}}</includeonly>

Revision as of 17:56, 18 May 2016

[create] Template documentation
Personal tools
Namespaces
Variants
Actions
Navigation
games
Toolbox