Template:Char

From Edge of Darkness Wiki

Char
Jump to: navigation, search
Line 46: Line 46:
|Player=User:{{#external_value:{{{threadid|}}}mainname}}
|Player=User:{{#external_value:{{{threadid|}}}mainname}}
|{{#external_value:{{{threadid|}}}familylabel}}={{#external_value:{{{threadid|}}}family}}
|{{#external_value:{{{threadid|}}}familylabel}}={{#external_value:{{{threadid|}}}family}}
-
}}{{#if: {{#external_value: {{{threadid|}}}troupe }} |{{#set: {{#external_value:{{{threadid|}}}troupelabel}}={{#external_value:{{{threadid|}}}troupe}} }} | }}{{#if: {{#external_value: {{{threadid|}}}lastpost }} |{{#set:Sacramento End={{#time: M-d-Y|@{{#external_value: {{{threadid|}}}lastpost }}}} }} | }}{{#if: {{#external_value: {{{threadid|}}}lastpost }} |{{#set:Posted={{#time: Y-m-d|@{{#external_value: {{{threadid|}}}lastpost }}}}  }}|}}{{#if: {{#external_value: {{{threadid|}}}lastvisit }} |{{#set:Online={{#time: Y-m-d|@{{#external_value: {{{threadid|}}}lastvisit }}}}  }}|}}{{#if: {{#external_value: {{{threadid|}}}joindate }} |{{#set:Sacramento Start={{#time: Y-m-d|@{{#external_value:{{{threadid|}}}joindate}}}}  }}|}}<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: {{{threadid|}}}forumid }}<html>&tab=myranks" title="</html>{{{{{{threadid|}}}rankname}}}<html>"><img src="http://nwod.org/forum/</html>{{{{{{threadid|}}}rankimage}}}<html>" /></a></html></div> }}
+
}}{{#if: {{#external_value: {{{threadid|}}}troupe }} |{{#set: {{#external_value:{{{threadid|}}}troupelabel}}={{#external_value:{{{threadid|}}}troupe}} }} | }}{{#if: {{#external_value: {{{threadid|}}}lastpost }} |{{#set:Sacramento End={{#time: M-d-Y|@{{#external_value: {{{threadid|}}}lastpost }}}} }} | }}{{#if: {{#external_value: {{{threadid|}}}lastpost }} |{{#set:Posted={{#time: Y-m-d|@{{#external_value: {{{threadid|}}}lastpost }}}}  }}|}}{{#if: {{#external_value: {{{threadid|}}}lastvisit }} |{{#set:Online={{#time: Y-m-d|@{{#external_value: {{{threadid|}}}lastvisit }}}}  }}|}}{{#if: {{#external_value: {{{threadid|}}}joindate }} |{{#set:Sacramento Start={{#time: Y-m-d|@{{#external_value:{{{threadid|}}}joindate}}}}  }}|}}{{#if: {{#external_value: {{{threadid|}}}joindate }} |{{#set:Tenure={{#expr: {{#expr: {{#external_value: {{{threadid|}}}lastpost }}-{{#external_value: {{{threadid|}}}joindate }} }} / 31556926 round 1 }} }} | }}<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: {{{threadid|}}}forumid }}<html>&tab=myranks" title="</html>{{{{{{threadid|}}}rankname}}}<html>"><img src="http://nwod.org/forum/</html>{{{{{{threadid|}}}rankimage}}}<html>" /></a></html></div> }}
</div><div class="{{#external_value: {{{threadid|}}}venue}}page chartempwrapper {{#external_value: {{{threadid|}}}venue}}back" style="min-width: 600px;">
</div><div class="{{#external_value: {{{threadid|}}}venue}}page chartempwrapper {{#external_value: {{{threadid|}}}venue}}back" style="min-width: 600px;">
{{#switch:{{{pic2|}}}
{{#switch:{{{pic2|}}}
Line 162: Line 162:
</td>
</td>
</tr>
</tr>
-
</table>
+
</table>{{#ifexpr: {{#if: {{{box1|}}} |1|0 }} + {{#if: {{{box2|}}} |1|0 }} + {{#if: {{{box3|}}} |1|0 }} > 0
-
{{#ifexpr: {{#if: {{{box1|}}} |1|0 }} + {{#if: {{{box2|}}} |1|0 }} + {{#if: {{{box3|}}} |1|0 }} > 0
+
|<div style="width: calc(100% - 223px); padding-top: 5px;" ><table cellpadding="0" cellspacing="0" style="height: 100%; width: 100%; table-layout: fixed; text-align: center;"><tr>
|<div style="width: calc(100% - 223px); padding-top: 5px;" ><table cellpadding="0" cellspacing="0" style="height: 100%; width: 100%; table-layout: fixed; text-align: center;"><tr>
{{#if: {{{box1|}}} |<td><div style="height: 100%; background: rgba(0,0,0,.5); padding: 5px 0px; margin-right: 4px;">{{{box1|}}}</div></td>|}}
{{#if: {{{box1|}}} |<td><div style="height: 100%; background: rgba(0,0,0,.5); padding: 5px 0px; margin-right: 4px;">{{{box1|}}}</div></td>|}}
Line 170: Line 169:
</tr></table></div>
</tr></table></div>
|
|
-
}}
+
}}<div style="padding-top:10px;" ></includeonly><noinclude>{{documentation}}[[Category:Player Use Templates]]</noinclude>
-
 
+
-
{{#if: {{#external_value: {{{threadid|}}}joindate }} |{{#set:Tenure={{#expr: ceil{{#expr: {{#external_value: {{{threadid|}}}lastpost }}-{{#external_value: {{{threadid|}}}joindate }} }} / 31556926 }} }} | }}
+
-
 
+
-
<div style="padding-top:10px;" ></includeonly><noinclude>{{documentation}}[[Category:Player Use Templates]]</noinclude>
+

Revision as of 15:22, 25 January 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