Template:Char
From Edge of Darkness Wiki
Char
Line 1: | Line 1: | ||
- | <includeonly> | + | <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|}}}' | ||
Line 202: | Line 202: | ||
</tr></table></div> | </tr></table></div> | ||
| | | | ||
- | }}<div style="padding-top:10px;" ></includeonly><noinclude>{{documentation}}[[Category:Player Use Templates]]</noinclude> | + | }}{{#if: {{{Departed|}}}|{{#set:foo={{{Departed|}}}|#default=}}<div style="padding-top:10px;" ></includeonly><noinclude>{{documentation}}[[Category:Player Use Templates]]</noinclude> |
Revision as of 03:38, 1 February 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:
|