Difference between revisions of "Template:Book"
From sureai
Codered999 (Talk | contribs) (Complete restructure for smart Spell Tome handling) |
(Fix rounded corners for newer Firefox versions) |
||
Line 1: | Line 1: | ||
{| style = "float: right; border-collapse: collapse; margin: 5px 5px 10px 20px; width: 300px; max-width: 400px; clear: right; " | {| style = "float: right; border-collapse: collapse; margin: 5px 5px 10px 20px; width: 300px; max-width: 400px; clear: right; " | ||
− | | colspan = "4" style = " | + | | colspan = "4" style = "text-align: center; color: white; font-weight: bold; " | <div style = "background: RGB(147, 56, 56); border-radius: 5px; " ><div style = "font-size: 150%; padding: 0 10px;">{{{name|{{PAGENAME}}}}}{{#ifeq: {{{type|}}} | Spell Tome | <nowiki> [Book]</nowiki> | |}}</div> {{#if: {{{formid|}}} | (FormID: {{{formid}}}) |}}</div> |
|-{{#ifeq: {{{type|}}} | Spell Tome | style="display: none;" |}} | |-{{#ifeq: {{{type|}}} | Spell Tome | style="display: none;" |}} | ||
| style = "text-align: right; padding-right: 10px; width: 35%; " | '''Editor Name''' | | style = "text-align: right; padding-right: 10px; width: 35%; " | '''Editor Name''' | ||
Line 52: | Line 52: | ||
| style = "text-align: right; padding: 0 15px 0 5px; " | {{{r6cost|}}} | | style = "text-align: right; padding: 0 15px 0 5px; " | {{{r6cost|}}} | ||
|- | |- | ||
− | | colspan = "4" style = " | + | | colspan = "4" style = "text-align: center; color: white; font-weight: bold; " | <div style = "background: RGB(147, 56, 56); border-radius: 5px; ">Locations</div> |
|- {{#ifeq: {{{type|}}} | Spell Tome | style="display: none;" | |}} | |- {{#ifeq: {{{type|}}} | Spell Tome | style="display: none;" | |}} | ||
| colspan = "4" style = "text-align: justify; width: 100%; " | | | colspan = "4" style = "text-align: justify; width: 100%; " | |
Latest revision as of 15:34, 25 June 2017
Book | |||
Editor Name | - | ||
Type | - | FormID | - |
- | - | ||
Locations
| |||
Usage
Parameters
Required
- Text Parameters: type, rank*
Optional
- Text Parameters: name, editorname, formid, value, weight, locations, r#editorname*, r#formid*, r#cost*, r#locations*
Where the prefix r# determines the rank that value represents, between r1 and r6. (i.e. r1level describes the level requirement for the Rank I version of the spell, r2level describes the level requirement for Rank II, etc.)
If the parameter "name" is not set, the template will use the current page's name (without the namespace) as a name.
*Only if parameter "type" is set to "Spell Tome".
Examples
{{Book |name = Flame Bite |type = Spell Tome |weight = 1 |rank = 6 |r1editorname = _00E_SpellFlammenbiss |r2editorname = _09E_SpellFlammenbiss |r3editorname = _16E_SpellFlammenbiss |r4editorname = _24E_SpellFlammenbiss |r5editorname = _32E_SpellFlammenbiss |r6editorname = _42E_SpellFlammenbiss |r1formid = 00044F13 |r2formid = 00085658 |r3formid = 0012E139 |r4formid = 0012E13A |r5formid = 0012E13B |r6formid = 0012E13C |r1cost = 28 |r2cost = 48 |r3cost = 60 |r4cost = 120 |r5cost = 200 |r6cost = 300 |r1locations = * Abandoned Tower |r2locations = * Old Dothûlgrad, Workshop |r3locations = |r4locations = * Duneville's Crypt * Monastery |r5locations = * Vyn - Enderal (-37, 26) @ Z: 2150.131348 |r6locations = }}
{{Book |name = The Wiki Book |type = Lore |editorname =__00_wiki_book_01 |formid = D34DB33F |value = 200 |weight = 2.5 |locations = * The Internet * SureAI Headquarters * Holomay's Talk Page }}
The Wiki Book (FormID: D34DB33F) | |||
Editor Name | __00_wiki_book_01 | ||
Type | Lore | FormID | D34DB33F |
200 | 2.5 | ||
Locations
| |||
|
{{Book}}