Template:Char

From Edge of Darkness Wiki

Char
Jump to: navigation, search
m
 
(12 intermediate revisions not shown)
Line 1: Line 1:
-
<includeonly>{{#if: {{{Departed|}}}|{{#set:foo={{{Departed|}}}|}}<!-- DB FOR USER INFO AND CHARACTER VARIABLES -->{{#get_db_data:db=nwod
+
<includeonly><!-- DB FOR USER INFO AND CHARACTER VARIABLES -->{{#get_db_data:db=nwod
|from=characters LEFT JOIN user u1 ON u1.userid = characters.char_userid LEFT JOIN user u2 ON u2.userid = characters.userid LEFT JOIN userfield uf1 ON uf1.userid = u1.userid LEFT JOIN userfield uf2 ON uf2.userid = u2.userid LEFT JOIN customavatar ON customavatar.userid = u1.userid LEFT JOIN customprofilepic ON customprofilepic.userid = u1.userid
|from=characters LEFT JOIN user u1 ON u1.userid = characters.char_userid LEFT JOIN user u2 ON u2.userid = characters.userid LEFT JOIN userfield uf1 ON uf1.userid = u1.userid LEFT JOIN userfield uf2 ON uf2.userid = u2.userid LEFT JOIN customavatar ON customavatar.userid = u1.userid LEFT JOIN customprofilepic ON customprofilepic.userid = u1.userid
|where=characters.threadid='{{{threadid|}}}'
|where=characters.threadid='{{{threadid|}}}'
|data={{{threadid|}}}troupe=COALESCE(uf1.field263, uf2.field263),  
|data={{{threadid|}}}troupe=COALESCE(uf1.field263, uf2.field263),  
{{{threadid|}}}threadid=characters.threadid,  
{{{threadid|}}}threadid=characters.threadid,  
-
{{{threadid|}}}usertitle=COALESCE(u1.usertitle, u2.usertitle),
+
{{{threadid|}}}usertitle=COALESCE(u1.usertitle, u2.usertitle),
 +
{{{threadid|}}}orgtitle=COALESCE(uf1.field298, uf2.field298),
{{{threadid|}}}mask=COALESCE(uf1.field173, uf2.field173),
{{{threadid|}}}mask=COALESCE(uf1.field173, uf2.field173),
-
{{{threadid|}}}cunning=COALESCE(uf1.field168, uf2.field168),  
+
{{{threadid|}}}cunning=characters.statusf,  
-
{{{threadid|}}}glory=COALESCE(uf1.field169, uf2.field169),  
+
{{{threadid|}}}glory=characters.statuso,  
-
{{{threadid|}}}honor=COALESCE(uf1.field170, uf2.field170),  
+
{{{threadid|}}}honor=characters.rhonor,  
-
{{{threadid|}}}purity=COALESCE(uf1.field171, uf2.field171),  
+
{{{threadid|}}}purity=characters.rpurity,  
-
{{{threadid|}}}wisdom=COALESCE(uf1.field172, uf2.field172),
+
{{{threadid|}}}wisdom=characters.rwisdom,
-
{{{threadid|}}}statusvenue=COALESCE(uf1.field165, uf2.field165),  
+
{{{threadid|}}}statusvenue=characters.statusv,  
-
{{{threadid|}}}statusorganization=COALESCE(uf1.field166, uf2.field166),  
+
{{{threadid|}}}statusorganization=characters.statuso,  
-
{{{threadid|}}}statusfamily=COALESCE(uf1.field167, uf2.field167),  
+
{{{threadid|}}}statusfamily=characters.statusf,  
{{{threadid|}}}lastpostid=COALESCE(u1.lastpostid, u2.lastpostid),  
{{{threadid|}}}lastpostid=COALESCE(u1.lastpostid, u2.lastpostid),  
{{{threadid|}}}usergroupid=COALESCE(u1.usergroupid, u2.usergroupid),  
{{{threadid|}}}usergroupid=COALESCE(u1.usergroupid, u2.usergroupid),  
Line 48: Line 49:
|PC or NPC=PC
|PC or NPC=PC
|Lived In=Sacramento
|Lived In=Sacramento
 +
|Secondary Picture={{{pic2|}}}
|Character Status={{#external_value:{{{threadid|}}}status}}
|Character Status={{#external_value:{{{threadid|}}}status}}
|Presence={{#external_value:{{{threadid|}}}presence}}
|Presence={{#external_value:{{{threadid|}}}presence}}
Line 70: Line 72:
</div>|<div style="height: 30px; width: 200px; float: right; background: rgba(0,0,0,.5); text-align: center;">
</div>|<div style="height: 30px; width: 200px; float: right; background: rgba(0,0,0,.5); text-align: center;">
<html><a href="http://nwod.org/forum/member.php?</html>{{#external_value: {{{threadid|}}}mainid }}<html>"></html>Created By {{#external_value: {{{threadid|}}}mainname }}<html></a></html>
<html><a href="http://nwod.org/forum/member.php?</html>{{#external_value: {{{threadid|}}}mainid }}<html>"></html>Created By {{#external_value: {{{threadid|}}}mainname }}<html></a></html>
-
</div>}}{{TOC left}}{{#if: {{#external_value: {{{threadid|}}}ppic }} |<div style="width: 200px; margin-top: -20px; float: right;"><html>
+
</div>}}{{TOC left}}{{#if: {{#external_value: {{{threadid|}}}ppic }} |<div style="width: 200px; float: right; margin-top: -20px;"><html>
<a href="http://nwod.org/forum/member.php?</html>{{#external_value: {{{threadid|}}}forumid }}<html>"><img src="http://nwod.org/forum/image.php?u=</html>{{#external_value: {{{threadid|}}}forumid }}<html>&type=profile" title="View Forum Profile Page" alt="View Forum Profile Page" style="width: 200px;" /></a>
<a href="http://nwod.org/forum/member.php?</html>{{#external_value: {{{threadid|}}}forumid }}<html>"><img src="http://nwod.org/forum/image.php?u=</html>{{#external_value: {{{threadid|}}}forumid }}<html>&type=profile" title="View Forum Profile Page" alt="View Forum Profile Page" style="width: 200px;" /></a>
</html></div>|}}
</html></div>|}}
Line 88: Line 90:
{{#if:{{{Quote|}}}
{{#if:{{{Quote|}}}
|<div class="center font150 italic" style="">{{{Quote|}}}</div>
|<div class="center font150 italic" style="">{{{Quote|}}}</div>
-
|<div class="center font150" style="">{{#external_value: {{{threadid|}}}usertitle}}</div>
+
|{{#if:{{#external_value: {{{threadid|}}}orgtitle}}
 +
|<div class="center font150 italic" style="">{{#external_value: {{{threadid|}}}orgtitle}}</div>
 +
|<div class="center font150" style="">{{#external_value: {{{threadid|}}}usertitle}}</div>
 +
}}
}}
}}
<div style="text-align: center;">{{#for_external_table: <div style="display: inline; padding-left: 3px;" ><html><a href="http://nwod.org/forum/member.php?</html>{{#external_value: {{{threadid|}}}forumid }}<html>&tab=myranks" title="</html>{{{{{{threadid|}}}rankname}}}<html>"><img class="char_rankimage" src="http://nwod.org/forum/</html>{{{{{{threadid|}}}rankimage}}}<html>" /></a></html></div> }}
<div style="text-align: center;">{{#for_external_table: <div style="display: inline; padding-left: 3px;" ><html><a href="http://nwod.org/forum/member.php?</html>{{#external_value: {{{threadid|}}}forumid }}<html>&tab=myranks" title="</html>{{{{{{threadid|}}}rankname}}}<html>"><img class="char_rankimage" src="http://nwod.org/forum/</html>{{{{{{threadid|}}}rankimage}}}<html>" /></a></html></div> }}
Line 130: Line 135:
</tr>
</tr>
<tr style="text-transform: uppercase; font-weight: bold;">
<tr style="text-transform: uppercase; font-weight: bold;">
-
<td>Cunning</td>
+
<td>[[Cunning]]</td>
-
<td>Glory</td>
+
<td>[[Glory]]</td>
-
<td>Honor</td>
+
<td>[[Honor]]</td>
-
<td>Purity</td>
+
<td>[[Purity]]</td>
-
<td>Wisdom</td>
+
<td>[[Wisdom Renown|Wisdom]]</td>
</tr>
</tr>
<tr>
<tr>

Latest revision as of 14:43, 12 July 2017

[edit] [purge] Template documentation

This is the new character template that pulls information from the character database rather than being inputted manually or scraping minisheets.

It requires the character sheet number, and support flags for Avatar (Face Claim), Quote and pic2 (for Werewolves and Changelings). Three optional 'boxes' can be displayed. It should be used at the very top of the page in the following format:

{{Char
|threadid = 23
|Avatar = Gavin Rossdale
|pic2 = No
|box1 = foo
|box2 = bar
|box3 = foobar
|Quote = Lorna, smile upon your least favorite but best looking son tonight...
}}

Pages using this template should 'close' the page with the appropriate venue footer.

Example of options:

Template Char 1.jpg

Personal tools
Namespaces
Variants
Actions
Navigation
games
Toolbox