Template:LokiCharPage: Difference between revisions

From TowersWiki

(Adding hiding mechanism for all main sections, some additional skyline theme support)
(Clearing away unnecessary empty space)
Line 157: Line 157:
<div class="{{{ bottom container class| loki-cell-bottom}}}  {{{theme| vintage}}}" style="{{#if:{{#switch:{{{introduction|left}}}|bottom=introuduction}}{{#switch:{{{portrait|right}}}|bottom=portrait}}{{#switch:{{{overview|right}}}|bottom=overview}}{{#switch:{{{hooks|left}}}|bottom=hooks}}{{#switch:{{{statistics|right}}}|bottom=statistics}}{{#switch:{{{disclaimer|left}}}|bottom=disclaimer}}{{#switch:{{{contacts|left}}}|bottom=contacts}}{{#switch:{{{soundtrack|right}}}|bottom=soundtrack}}{{#switch:{{{gallery|bottom}}}|bottom=gallery}}{{#switch:{{{custom position 1|}}}|bottom=custom1}}{{#switch:{{{custom position 2|}}}|bottom=custom2}}{{#switch:{{{custom position 3|}}}|bottom=custom3}}{{#switch:{{{custom position 4|}}}|bottom=custom4}}{{#switch:{{{custom position 5|}}}|bottom=custom5}}||display:none}}">
<div class="{{{ bottom container class| loki-cell-bottom}}}  {{{theme| vintage}}}" style="{{#if:{{#switch:{{{introduction|left}}}|bottom=introuduction}}{{#switch:{{{portrait|right}}}|bottom=portrait}}{{#switch:{{{overview|right}}}|bottom=overview}}{{#switch:{{{hooks|left}}}|bottom=hooks}}{{#switch:{{{statistics|right}}}|bottom=statistics}}{{#switch:{{{disclaimer|left}}}|bottom=disclaimer}}{{#switch:{{{contacts|left}}}|bottom=contacts}}{{#switch:{{{soundtrack|right}}}|bottom=soundtrack}}{{#switch:{{{gallery|bottom}}}|bottom=gallery}}{{#switch:{{{custom position 1|}}}|bottom=custom1}}{{#switch:{{{custom position 2|}}}|bottom=custom2}}{{#switch:{{{custom position 3|}}}|bottom=custom3}}{{#switch:{{{custom position 4|}}}|bottom=custom4}}{{#switch:{{{custom position 5|}}}|bottom=custom5}}||display:none}}">
{{ #switch: {{{ introduction | left }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ title | Introduction }}} | page = Introduction | class = {{{ introduction class | }}} | style = {{{ introduction style | }}} | glass = {{{ glass | yes }}} | container-class = {{{ introduction container class | }}} | header-class = {{{ introduction header class| }}} }} }}{{ #switch: {{{ portrait | right }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ full name | {{ PAGENAME }} }}} | page = Portrait | class = {{{ portrait class | }}} | style = {{{ portrait style | }}} | glass = {{{ glass | yes }}} | container-class = {{{ portrait container class | }}} | header-class = {{{ portrait header class| }}} }} }}{{ #switch: {{{ overview position | right }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = Overview | page = Infobox | class = {{{ overview class | }}} | style = {{{ overview style | }}} | glass = {{{ glass | yes }}} | container-class = {{{ overview container class | }}} | header-class = {{{ overview header class| }}} }} }}{{ #switch: {{{ hooks position | left }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = RP Hooks | page = Hooks | class = {{{ hooks class | }}} | style = {{{ hooks style | }}} | container-class = {{{ hooks container class | }}} | header-class = {{{ hooks header class| }}} }} }}{{ #switch: {{{ statistics position | right }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = Statistics | page = Statistics | class = {{{ statistics class | }}} | style = {{{ statistics style | }}} | container-class = {{{ statistics container class | }}} | header-class = {{{ statistics header class| }}} }} }}{{ #switch: {{{ disclaimer position | left }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = Disclaimer | page = Disclaimer | class = {{{ disclaimer class | }}} | style = {{{ disclaimer style | }}} | container-class = {{{ disclaimer container class | }}} | header-class = {{{ disclaimer header class| }}} }} }}{{ #switch: {{{ contacts position | left }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = Contacts | page = Contacts | class = {{{ contacts class | }}} | style = {{{ contacts style | }}} | glass = {{{ glass | yes }}} | container-class = {{{ contacts container class | }}} | header-class = {{{ contacts header class| }}} }} }}{{ #switch: {{{ soundtrack position | right }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = Soundtrack | page = Soundtrack | class = {{{ soundtrack class | }}} | style = {{{ soundtrack style | }}} | glass = {{{ glass | yes }}} | container-class = {{{ soundtrack container class | }}} | header-class = {{{ soundtrack header class| }}} }} }}{{ #switch: {{{ gallery position | bottom }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{gallery title|Gallery}}} | page = Gallery | class = {{{ gallery class | }}} | style = {{{ gallery style | text-align: center; }}} | container-class = {{{ gallery container class | }}} | header-class = {{{ gallery header class| }}} }} }}{{ #switch: {{{ custom position 1 | }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ custom title 1 }}} | page = {{{ custom title 1 }}} | class = {{{ custom class 1 | }}} | style = {{{ custom style 1 | }}} | container-class = {{{ custom container class 1| }}} | header-class = {{{ custom header class 1| }}} }} }}{{ #switch: {{{ custom position 2 | }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ custom title 2 }}} | page = {{{ custom title 2 }}} | class = {{{ custom class 2 | }}} | style = {{{ custom style 2 | }}} | container-class = {{{ custom container class 2| }}} | header-class = {{{ custom header class 2| }}} }} }}{{ #switch: {{{ custom position 3 | }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ custom title 3 }}} | page = {{{ custom title 3 }}} | class = {{{ custom class 3 | }}} | style = {{{ custom style 3 | }}} | container-class = {{{ custom container class 3| }}} | header-class = {{{ custom header class 3| }}} }} }}{{ #switch: {{{ custom position 4 | }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ custom title 4 }}} | page = {{{ custom title 4 }}} | class = {{{ custom class 4 | }}} | style = {{{ custom style 4 | }}} | container-class = {{{ custom container class 4| }}} | header-class = {{{ custom header class 4| }}} }} }}{{ #switch: {{{ custom position 5 | }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ custom title 5 }}} | page = {{{ custom title 5 }}} | class = {{{ custom class 5 | }}} | style = {{{ custom style 5 | }}} | container-class = {{{ custom container class 5 | }}} | header-class = {{{ custom header class 5| }}} }} }}
{{ #switch: {{{ introduction | left }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ title | Introduction }}} | page = Introduction | class = {{{ introduction class | }}} | style = {{{ introduction style | }}} | glass = {{{ glass | yes }}} | container-class = {{{ introduction container class | }}} | header-class = {{{ introduction header class| }}} }} }}{{ #switch: {{{ portrait | right }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ full name | {{ PAGENAME }} }}} | page = Portrait | class = {{{ portrait class | }}} | style = {{{ portrait style | }}} | glass = {{{ glass | yes }}} | container-class = {{{ portrait container class | }}} | header-class = {{{ portrait header class| }}} }} }}{{ #switch: {{{ overview position | right }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = Overview | page = Infobox | class = {{{ overview class | }}} | style = {{{ overview style | }}} | glass = {{{ glass | yes }}} | container-class = {{{ overview container class | }}} | header-class = {{{ overview header class| }}} }} }}{{ #switch: {{{ hooks position | left }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = RP Hooks | page = Hooks | class = {{{ hooks class | }}} | style = {{{ hooks style | }}} | container-class = {{{ hooks container class | }}} | header-class = {{{ hooks header class| }}} }} }}{{ #switch: {{{ statistics position | right }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = Statistics | page = Statistics | class = {{{ statistics class | }}} | style = {{{ statistics style | }}} | container-class = {{{ statistics container class | }}} | header-class = {{{ statistics header class| }}} }} }}{{ #switch: {{{ disclaimer position | left }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = Disclaimer | page = Disclaimer | class = {{{ disclaimer class | }}} | style = {{{ disclaimer style | }}} | container-class = {{{ disclaimer container class | }}} | header-class = {{{ disclaimer header class| }}} }} }}{{ #switch: {{{ contacts position | left }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = Contacts | page = Contacts | class = {{{ contacts class | }}} | style = {{{ contacts style | }}} | glass = {{{ glass | yes }}} | container-class = {{{ contacts container class | }}} | header-class = {{{ contacts header class| }}} }} }}{{ #switch: {{{ soundtrack position | right }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = Soundtrack | page = Soundtrack | class = {{{ soundtrack class | }}} | style = {{{ soundtrack style | }}} | glass = {{{ glass | yes }}} | container-class = {{{ soundtrack container class | }}} | header-class = {{{ soundtrack header class| }}} }} }}{{ #switch: {{{ gallery position | bottom }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{gallery title|Gallery}}} | page = Gallery | class = {{{ gallery class | }}} | style = {{{ gallery style | text-align: center; }}} | container-class = {{{ gallery container class | }}} | header-class = {{{ gallery header class| }}} }} }}{{ #switch: {{{ custom position 1 | }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ custom title 1 }}} | page = {{{ custom title 1 }}} | class = {{{ custom class 1 | }}} | style = {{{ custom style 1 | }}} | container-class = {{{ custom container class 1| }}} | header-class = {{{ custom header class 1| }}} }} }}{{ #switch: {{{ custom position 2 | }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ custom title 2 }}} | page = {{{ custom title 2 }}} | class = {{{ custom class 2 | }}} | style = {{{ custom style 2 | }}} | container-class = {{{ custom container class 2| }}} | header-class = {{{ custom header class 2| }}} }} }}{{ #switch: {{{ custom position 3 | }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ custom title 3 }}} | page = {{{ custom title 3 }}} | class = {{{ custom class 3 | }}} | style = {{{ custom style 3 | }}} | container-class = {{{ custom container class 3| }}} | header-class = {{{ custom header class 3| }}} }} }}{{ #switch: {{{ custom position 4 | }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ custom title 4 }}} | page = {{{ custom title 4 }}} | class = {{{ custom class 4 | }}} | style = {{{ custom style 4 | }}} | container-class = {{{ custom container class 4| }}} | header-class = {{{ custom header class 4| }}} }} }}{{ #switch: {{{ custom position 5 | }}} | bottom = {{ :Template:LokiCharPage/layout/cell | theme = {{{ theme| vintage}}} | title = {{{ custom title 5 }}} | page = {{{ custom title 5 }}} | class = {{{ custom class 5 | }}} | style = {{{ custom style 5 | }}} | container-class = {{{ custom container class 5 | }}} | header-class = {{{ custom header class 5| }}} }} }}
<!-- /Spanned Bottom Column //-->
</div>
</div>
<!-- /Spanned Bottom Column //-->
</div>
</div>
{{ #if: {{{ played by | }}} | <span style="float: right; font-style: italic;">'''Played By:''' {{{ played by }}} {{Played by |Character name={{{ full name | }}} |Model name={{{ played by | }}} }} }}
{{ #if: {{{ played by | }}} | <span style="float: right; font-style: italic;">'''Played By:''' {{{ played by }}} {{Played by |Character name={{{ full name | }}} |Model name={{{ played by | }}} }} }}
<!-- /Main Table //--></includeonly>
<!-- /Main Table //--></includeonly>

Revision as of 18:24, 14 May 2024

This layout page is designed to ease the creation of lovely pages without the need for extensive knowledge of CSS3 or advanced HTML practices. For those who are perfectly pleased with grey, white, and black, it can be used exactly as is with no need for any customization at all.

This layout was designed by Loki@Haunted-Memories: Vienna By Night, with heavy editing and style support by Darc

Usage

Copy the following onto your page:

{{LokiCharPage 
}}

Then click on each of the red links and fill out the information in that section.

You can use the following template parameters to customize the colours and text on the page.

For a list of colors, please visit this link.W3 Schools HTML Color Names

| full name            = 
| played by            = 

| page color           =
| page border          = 
 
| cell color           = 
| cell border          = 
| cell text            = 

| link color           = 
| link hover color     = 

| header color         = 
| header border        = 
| header text          = 

Layout

The following template parameters will change the layout and positioning of several elements on the page.

| theme                = queen OR vintage (default: vintage -- THIS IS CASE-SENSITIVE!) 
| page gradient        = yes OR no (default: yes)
| glass                = yes or no (default: yes -- applies a glass-like effect to headers)
| introduction         = left, right, top, bottom, OR off (default: left)
| portrait             = left, right, top, bottom, OR off (default: right)
| overview position    = left, right, top, bottom, OR off (default: right)
| hooks position       = left, right, top, bottom, OR off (default: left)
| statistics position  = left, right, top, bottom, OR off (default: right)
| disclaimer position  = left, right, top, bottom, OR off (default: left)
| contacts position    = left, right, top, bottom, OR off (default: left)
| soundtrack position  = left, right, top, bottom, OR off (default: right)
| gallery position     = left, right, top, bottom, OR off (default: bottom)

Themes

To see the preconstructed themes in action:

Advanced Styles

For the very advanced users, you can add your own styles and classes to the various segments (not recommended). These will be applied to the content cell for each section, not to the wrapping table and div.

| top container class          = 
| left container class         = 
| right container class        = 
| bottom container class       = 
| introduction class           = 
| introduction container class = 
| introduction header class    = 
| introduction style           = 
| portrait class               = 
| portrait container class     = 
| portrait header class        = 
| portrait style               = 
| overview class               = 
| overview container class     = 
| overview header class        = 
| overview style               = 
| hooks class                  = 
| hooks container class        = 
| hooks header class           = 
| hooks style                  = 
| statistics class             =
| statistics container class   = 
| statistics header class      = 
| statistics style             =
| disclaimer class             = 
| disclaimer container class   = 
| disclaimer header class      = 
| disclaimer style             = 
| contacts class               = 
| contacts container class     = 
| contacts header class        = 
| contacts style               = 
| soundtrack class             = 
| soundtrack container class   = 
| soundtrack header class      = 
| soundtrack style             = 
| gallery class                = 
| gallery container class      =
| gallery header class         =
| gallery style                = 

Custom Sections

Users also have the option of specifying a few custom sections. These sections are completely disabled by default, but can be placed wherever you need. You can have up to 5 custom sections, each numbered 1 through 5. Copy the following code for each custom section you want to have, and replace the pound (#) sign with the corresponding number 1 through 5.

| custom position #   = left, right, top, bottom, OR off (default: off)
| custom title #      = 

You can also specify the class and style as normal.

| custom class #           = 
| custom container class # = 
| custom header class #    = 
| custom style #           =