Template:Char
From Edge of Darkness Wiki
Char
Line 45: | Line 45: | ||
|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}}}} }}|}}{{#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 | + | }}{{#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; 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: 240px !important;" >[[Template:Char|<span title="View this template">v</span>]] · [[Template_talk:Char|<span title="Talk page">t</span>]] · [{{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>]] · [[Template_talk:Char|<span title="Talk page">t</span>]] · [{{fullurl:{{transclude|Template:Char}}|action=edit}} <span style="text-decoration: none" title="Edit this template">e</span>]</div> |
Revision as of 03:27, 29 January 2017
[edit] [ ]
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.
- Template:Changeling Character
- Template:Mage Character
- Template:Vampire Character
- Template:Werewolf Character
Example of options:
The above documentation is transcluded from Template:Char/doc. (edit | history) Editors can experiment in this template's sandbox (create). Subpages of this template:
|