Template:Charpage: Difference between revisions

From Ascension Sojourns
(Created page with "{{#tag:css| {{:User:Charpage.css | page color = {{{page color|#000}}} | page border = {{{page border|#666}}} | cell color = {{{cell color|#FFF}}} | cell border = {{{cell border|#999}}} | cell text = {{{cell text|#000}}} | link color = {{{link color|#00F}}} | link hover = {{{link hover color|#00F}}} | header color = {{{header color|#333}}} | header border = {{{header border|#999}}} | header text = {{{header text|#FFF}}} | page...")
 
No edit summary
Line 1: Line 1:
{{#tag:css|
+
{{#css
 
{{:User:Charpage.css
 
{{:User:Charpage.css
 
| page color = {{{page color|#000}}}
 
| page color = {{{page color|#000}}}

Revision as of 14:57, 8 April 2023

{{#css

  1. loki-table

{

   background-color: #000;
   border: 1px solid #666;
   -border-radius: 7px;
   -moz-border-radius: 7px;
   -webkit-border-radius: 7px;

}

  1. loki-table .loki-table

{ background: -webkit-gradient(linear, 48% top, 52% bottom, from(rgba(128, 128, 128, .3)), to(rgba(0, 0, 0, .3)));

   background: -moz-linear-gradient(-80deg, rgba(128, 128, 128, .3), rgba(0, 0, 0, .3));
   width: 100%;
   padding: 5px;
   margin: 0px;

}

.loki-cell {

   border: 1px solid #999;
   -border-radius: 5px;
   -moz-border-radius: 5px;
   -webkit-border-radius: 5px;
   background: #FFF;
   margin-bottom: 0.5em; 
   width: 100%;

}


.loki-cell-table { background: -webkit-gradient(linear, 48% top, 52% bottom, from(rgba(255, 255, 255, .3)), to(rgba(160, 160, 160, .3)));

   background: -moz-linear-gradient(-80deg, rgba(255, 255, 255, .3), rgba(160, 160, 160, .3));
   -border-radius: 4px;
   -moz-border-radius: 4px;
   -webkit-border-radius: 4px;
   color: #000;
   width: 100%;

} .loki-cell-table table td, .loki-cell-table table th {

   color: #000;

}

.loki-cell a, .loki-cell a:visited, #content .loki-cell a.external, #content .loki-cell a.external:visited { color: #00F; } .loki-cell a:hover, #content .loki-cell a.external:hover { color: {{{link hover color}}}; } .loki-cell a.new, .loki-cell a.new:visited { color: red; }

.loki-header {

   background: #333;
   border-top-left-radius: 4px;
   -moz-border-radius-topleft: 4px;
   -webkit-border-top-left-radius: 4px;
   border-top-right-radius: 4px;
   -moz-border-radius-topright: 4px;
   -webkit-border-top-right-radius: 4px;
   border: 1px solid #999;
   color: #FFF;
   font-weight: bold;
   text-align: center;

}

.loki-glass {

   background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, .5)), color-stop(50%, rgba(255, 255, 255, .2)), color-stop(50%, rgba(0, 0, 0, .2)), to(rgba(255, 255, 255, .1)));
   background: -moz-linear-gradient(top, rgba(255, 255, 255, .5), rgba(255, 255, 255, .2) 50%, rgba(0, 0, 0, .2) 50%, rgba(255, 255, 255, .1));
   display: block;
   text-outline: 1px 1px #000;
   text-shadow: 0 -1px 1px rgba(0, 0, 0, .7);
   width: 100%;

}

.loki-2columns {

   -moz-column-count: 2;
   -webkit-column-count: 2;
   column-count: 2;

}

.loki-3columns {

   -moz-column-count: 3;
   -webkit-column-count: 3;
   column-count: 3;

}

.loki-italic { font-style: italic; }

  1. loki-table table.gallery, #loki-table table.gallery td { background-color: transparent; border: 0px; }
  2. loki-table h2

{

   color: {{{red}}};
   font-family: Palatino Linotype, Book Antiqua, Palatino, serif;
   font-size: 125%;
   font-style: italic;
   font-weight: bold;
   padding-right: 2em;
   text-align: right;

}

.loki-quote {

   color: #333;
   font-family: Palatino Linotype, Book Antiqua, Palatino, serif;
   margin-left: auto;
   margin-right: auto;
   text-align: center;
   text-outline: 1px 1px #000;
   text-shadow: 0 -1px 1px rgba(0, 0, 0, .7);
   width: 50%;

}

.loki-shadowtext {

   font-family: Palatino Linotype, Book Antiqua, Palatino, serif;
   text-outline: 1px 1px #000;
   text-shadow: 0 -1px 1px rgba( 0, 0, 0, .7 );

}

.loki-rounded img {

   border-radius: 15px;
   -moz-border-radius: 15px;
   -webkit-border-radius: 15px;

}

.infobox td {

   vertical-align: top;

} }}


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 is guaranteed to work in Internet Explorer 9, Firefox 3.5, Chrome 10, and Safari 5. It will gracefully degrade across older browsers.

This layout was designed by Loki@Haunted-Memories: Vienna By Night

Usage

Copy the following onto your page:

[[Category:PCs]][[Category:Active PCs]]
{{ :Template:Charpage 
}}

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.

| 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.

| page gradient        = yes OR no (default: yes)
| introduction         = yes OR no (default: yes)
| portrait             = yes OR no (default: yes)
| overview position    = left, right, bottom, OR off (default: right)
| stereotypes position = left, right, bottom, OR off (default: left)
| hooks position       = left, right, bottom, OR off (default: right)
| contacts position    = left, right, bottom, OR off (default: yes)
| logs position        = left, right, bottom, OR off (default: left)
| gallery position     = left, right, bottom, OR off (default: bottom)
| disclaimer position  = left, right, bottom, OR off (default: right)

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.

| introduction class   = 
| introduction style   = 
| stereotypes class    = 
| stereotypes style    = 
| contacts class       = 
| contacts style       = 
| hooks class          = 
| hooks style          = 
| logs class           = 
| logs style           = 
| gallery class        = 
| gallery style        = 
| disclaimer class     = 
| disclaimer style     = 
| portrait class       = 
| portrait style       = 
| overview class       = 
| overview 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, bottom, OR off (default: off)
| custom title #      = 

You can also specify the class and style as normal.

| custom class #      = 
| custom style #      =