Template:Char

From Edge of Darkness Wiki

Char
Jump to: navigation, search
Line 47: Line 47:
}}{{#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 class="{{#external_value: {{{threadid|}}}venue}}page chartempwrapper {{#external_value: {{{threadid|}}}venue}}back" style="min-width: 600px; position: relative; margin-top: -73px; z-index: 9; border-top-right-radius: 0px !important; border-top-left-radius: 0px !important;">
}}{{#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 class="{{#external_value: {{{threadid|}}}venue}}page chartempwrapper {{#external_value: {{{threadid|}}}venue}}back" style="min-width: 600px; position: relative; margin-top: -73px; z-index: 9; border-top-right-radius: 0px !important; border-top-left-radius: 0px !important;">
{{#switch:{{{pic2|}}}
{{#switch:{{{pic2|}}}
-
|Yes=<div style="float: left;"><div style="height: 200px; overflow: hidden;">[[Image:{{#external_value: {{{threadid|}}}username}}_2.jpg|x200px|Click here to upload portrait.]]</div></div> |}}<div class="chartempquotestatus" style="float: right; right: 230px !important;" >[[Template:Char|<span title="View this template">v</span>]]&nbsp;·&nbsp;[[Template_talk:Char|<span title="Talk page">t</span>]]&nbsp;·&nbsp;[{{fullurl:{{transclude|Template:Char}}|action=edit}} <span style="text-decoration: none" title="Edit this template">e</span>]</div>
+
|Yes=<div style="float: left;"><div style="height: 200px; overflow: hidden;">[[Image:{{#external_value: {{{threadid|}}}username}}_2.jpg|x200px|Click here to upload portrait.]]</div></div> |}}<div class="chartempquotestatus" style="float: right; right: 240px !important;" >[[Template:Char|<span title="View this template">v</span>]]&nbsp;·&nbsp;[[Template_talk:Char|<span title="Talk page">t</span>]]&nbsp;·&nbsp;[{{fullurl:{{transclude|Template:Char}}|action=edit}} <span style="text-decoration: none" title="Edit this template">e</span>]</div>
<div style="float: right; width: 200px; margin-right: 3px; margin-left: 20px;" id="newcharsidebar" >
<div style="float: right; width: 200px; margin-right: 3px; margin-left: 20px;" id="newcharsidebar" >
<div style="height: 200px; overflow: hidden;">[[Image:{{#external_value: {{{threadid|}}}username}}.jpg|200px|Click here to upload portrait.]]</div>
<div style="height: 200px; overflow: hidden;">[[Image:{{#external_value: {{{threadid|}}}username}}.jpg|200px|Click here to upload portrait.]]</div>
Line 79: Line 79:
<div class="center {{#external_value: {{{threadid|}}}venue}}color font200" style="padding-top: 5px;" >{{#external_value: {{{threadid|}}}username}}</div>
<div class="center {{#external_value: {{{threadid|}}}venue}}color font200" style="padding-top: 5px;" >{{#external_value: {{{threadid|}}}username}}</div>
{{#if:{{{Quote|}}}
{{#if:{{{Quote|}}}
-
|<div class="center font150 italic">{{{Quote|}}}</div>
+
|<div class="center font150 italic" style="max-height: 45px; overflow: hidden;">{{{Quote|}}}</div>
-
|<div class="center font150 italic">{{#external_value: {{{threadid|}}}usertitle}}</div>
+
|<div class="center font150" style="max-height: 45px; overflow: hidden;">{{#external_value: {{{threadid|}}}usertitle}}</div>
}}
}}
{{#switch: {{#external_value: {{{threadid|}}}venue}}
{{#switch: {{#external_value: {{{threadid|}}}venue}}
Line 86: Line 86:
|Geist=
|Geist=
|Ghoul=
|Ghoul=
-
|Hunter=<table style="width: 100%; table-layout: fixed; text-align: center; margin-top: 10px;" id="basicinfo" >
+
|Hunter=<table style="width: 100%; table-layout: fixed; text-align: center; margin-top: -1px;" id="basicinfo" >
<tr style="font-size: 30px;">
<tr style="font-size: 30px;">
<td>
<td>

Revision as of 16:23, 26 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