Template:Character

From Edge of Darkness Wiki

Character
Jump to: navigation, search
m
m
Line 1: Line 1:
<noinclude>{{documentation}}[[Category:Character Templates|{{PAGENAME}}]]</noinclude><includeonly>
<noinclude>{{documentation}}[[Category:Character Templates|{{PAGENAME}}]]</noinclude><includeonly>
-
{{#set:forumid={{{forumid|}}}}}{{#switch:{{{Player Name|}}}
+
{{#set:forumid={{{forumid|}}}|Player=User:{{{Player Name|}}} }}{{#switch:{{{Player Name|}}}
|NPC=
|NPC=
|{{#ask: [[User:{{{Player Name|}}}]] |?forumid= |?forumname= |format=template |template=PlayerAvatar }}
|{{#ask: [[User:{{{Player Name|}}}]] |?forumid= |?forumname= |format=template |template=PlayerAvatar }}
Line 24: Line 24:
|where=userid='{{{forumid|}}}' |data={{{forumid|}}}venue=field104,{{{forumid|}}}family=field240,{{{forumid|}}}organization=field243,{{{forumid|}}}statusvenue=field247,{{{forumid|}}}statusorganization=field253,{{{forumid|}}}statusfamily=field250,{{{forumid|}}}presence=field237,{{{forumid|}}}adv=field256,{{{forumid|}}}mask=field259
|where=userid='{{{forumid|}}}' |data={{{forumid|}}}venue=field104,{{{forumid|}}}family=field240,{{{forumid|}}}organization=field243,{{{forumid|}}}statusvenue=field247,{{{forumid|}}}statusorganization=field253,{{{forumid|}}}statusfamily=field250,{{{forumid|}}}presence=field237,{{{forumid|}}}adv=field256,{{{forumid|}}}mask=field259
}}
}}
-
}}<!-- DB FROM VENUE FOR QUOTES PAGE -->{{#switch: {{#external_value:{{{forumid|}}}venue}}
+
}}<!-- SET VENUE FROM MINISHEET OR TEMPLATE DECLARATION -->{{#if:{{#external_value:{{{forumid|}}}venue}}
 +
|{{#set:Page has default form=Edit {{#external_value:{{{forumid|}}}venue}} Character|Venue={{#external_value:{{{forumid|}}}venue}}|Character Type={{#external_value:{{{forumid|}}}venue}} }}
 +
}}<!-- DB FROM VENUE FOR QUOTES PAGE -->{{#switch: {{#show: {{PAGENAME}} |?Venue# }}
|Changeling = {{#get_db_data:db=nwod
|Changeling = {{#get_db_data:db=nwod
|from=post JOIN thread ON (thread.threadid = post.threadid)
|from=post JOIN thread ON (thread.threadid = post.threadid)
Line 41: Line 43:
}}
}}
}}<!---- END DB GET ---->{{#set:  
}}<!---- END DB GET ---->{{#set:  
-
Page has default form=Edit {{#external_value:{{{forumid|}}}venue}} Character
+
Posted={{#external_value: {{{forumid|}}}lastpost }}
-
|Player=User:{{{Player Name|}}}
+
-
|Posted={{#external_value: {{{forumid|}}}lastpost }}
+
|Online={{#external_value: {{{forumid|}}}lastvisit }}
|Online={{#external_value: {{{forumid|}}}lastvisit }}
|Last Post=[http://nwod.org/forum/showpost.php?p={{#external_value:{{{forumid|}}}lastpostid}} Last Post]
|Last Post=[http://nwod.org/forum/showpost.php?p={{#external_value:{{{forumid|}}}lastpostid}} Last Post]
-
|Venue={{#external_value:{{{forumid|}}}venue}}
 
|Presence={{#external_value:{{{forumid|}}}presence}}
|Presence={{#external_value:{{{forumid|}}}presence}}
-
|Player=User:{{{Player Name|}}}
 
|Character Name={{PAGENAME}}
|Character Name={{PAGENAME}}
|Character Status={{{Status|}}}
|Character Status={{{Status|}}}
-
|Character Type={{#external_value:{{{forumid|}}}venue}}
 
|Lived In=Sacramento
|Lived In=Sacramento
|Sacramento Start={{{Inception|}}}
|Sacramento Start={{{Inception|}}}
Line 57: Line 54:
{{#expr: {{#time: xNU|{{#show: {{PAGENAME}} |?Sacramento End }}|}} - {{#time: xNU|{{#show: {{PAGENAME}} |?Sacramento Start }}|}} }} / 31536000 round 1  
{{#expr: {{#time: xNU|{{#show: {{PAGENAME}} |?Sacramento End }}|}} - {{#time: xNU|{{#show: {{PAGENAME}} |?Sacramento Start }}|}} }} / 31536000 round 1  
}}
}}
-
}}{{#if: {{{Departed|}}}|{{#set:Sacramento End={{{Departed|}}}}}|}}{{#if: {{{Venue|}}}|{{#set:Character Type={{{Venue|}}}}}|}}<!-- BEGIN VENUES --><div style="border-radius: 5px; width: 99%; position: absolute; top: 3px; text-align: center;" ><span style="margin-right: 210px; padding: 5px 20px; border-radius: 20px;" class="{{#external_value:{{{forumid|}}}venue}}back" >[[{{PAGENAME}}/Quotes|{{#ifexist: {{PAGENAME}}/Quotes|View Quotes & Extra Info|Create Quotes & Extra Info Page}}]]</span></div><div class="{{#external_value:{{{forumid|}}}venue}}page chartempwrapper {{#external_value:{{{forumid|}}}venue}}back">
+
}}{{#if: {{{Departed|}}}|{{#set:Sacramento End={{{Departed|}}}}}|}}{{#if: {{{Venue|}}}|{{#set:Character Type={{{Venue|}}}}}|}}<!-- BEGIN VENUES --><div style="border-radius: 5px; width: 99%; position: absolute; top: 3px; text-align: center;" ><span style="margin-right: 210px; padding: 5px 20px; border-radius: 20px;" class="{{#show: {{PAGENAME}} |?Venue# }}back" >[[{{PAGENAME}}/Quotes|{{#ifexist: {{PAGENAME}}/Quotes|View Quotes & Extra Info|Create Quotes & Extra Info Page}}]]</span></div><div class="{{#show: {{PAGENAME}} |?Venue# }}page chartempwrapper {{#show: {{PAGENAME}} |?Venue# }}back">
<div class="grade05 chartempheader" >
<div class="grade05 chartempheader" >
-
{{#switch: {{#external_value:{{{forumid|}}}venue}}  
+
{{#switch: {{#show: {{PAGENAME}} |?Venue# }}  
|Changeling={{#switch: {{{Status|}}}
|Changeling={{#switch: {{{Status|}}}
|Active = {{#if:{{{Freehold Titles|}}}
|Active = {{#if:{{{Freehold Titles|}}}
Line 252: Line 249:
<div class="pad5" >{{#if: {{{Avatar|}}}|{{#set:Avatar={{{Avatar|}}}}}|{{#set:Avatar=Unknown}}}}{{#if: {{{Retired Avatar|}}}|{{#set:Retired Avatar={{{Avatar|}}}}}|}}</div>
<div class="pad5" >{{#if: {{{Avatar|}}}|{{#set:Avatar={{{Avatar|}}}}}|{{#set:Avatar=Unknown}}}}{{#if: {{{Retired Avatar|}}}|{{#set:Retired Avatar={{{Avatar|}}}}}|}}</div>
<div class="grade05 pad10" >{{#switch:{{{pic2|}}}
<div class="grade05 pad10" >{{#switch:{{{pic2|}}}
-
|Yes = <div class="{{#external_value:{{{forumid|}}}venue}}bordercolor" style="float: right; margin-left: 10px;">[[Image:{{{Character Name|}}} 2.jpg|195px]]</div>
+
|Yes = <div class="{{#show: {{PAGENAME}} |?Venue# }}bordercolor" style="float: right; margin-left: 10px;">[[Image:{{{Character Name|}}} 2.jpg|195px]]</div>
|}}{{#switch:{{{Retainer Type|}}}
|}}{{#switch:{{{Retainer Type|}}}
|Ghoul = <div class="Ghoulbordercolor" style="float: right; margin-left: 10px; text-align: center;">[[Image:{{{Retainer Of|}}}.jpg|100px|alt={{{Retainer Of|}}}|link={{{Retainer Of|}}}]]</div>
|Ghoul = <div class="Ghoulbordercolor" style="float: right; margin-left: 10px; text-align: center;">[[Image:{{{Retainer Of|}}}.jpg|100px|alt={{{Retainer Of|}}}|link={{{Retainer Of|}}}]]</div>
|}}{{dontshow|{{#for_external_table:  [[{{{{{{forumid|}}}statusgiven}}}::{{{{{{forumid|}}}statusfor}}}]] }}}}</includeonly>
|}}{{dontshow|{{#for_external_table:  [[{{{{{{forumid|}}}statusgiven}}}::{{{{{{forumid|}}}statusfor}}}]] }}}}</includeonly>

Revision as of 12:34, 21 May 2016

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