Difference between revisions of "Template:Charpage"

From City of Hope MUSH
Jump to navigation Jump to search
imported>MayaCoH
m
imported>MayaCoH
Line 39: Line 39:
 
| style="font-size: 0.9em; vertical-align: top;" |
 
| style="font-size: 0.9em; vertical-align: top;" |
 
{{ #dpl:
 
{{ #dpl:
   | uses            = User:Loki/layout
+
   | uses            = Charpage/layout
 
   | category        = PC
 
   | category        = PC
 
   | notcategory      = Active PC
 
   | notcategory      = Active PC
Line 56: Line 56:
 
| style="font-size: 0.9em; vertical-align: top;" |
 
| style="font-size: 0.9em; vertical-align: top;" |
 
{{ #dpl:
 
{{ #dpl:
   | uses            = User:Loki/layout
+
   | uses            = Charpage/layout
 
   | notcategory      = PC
 
   | notcategory      = PC
 
   | noresultsheader  = ''No users found.''
 
   | noresultsheader  = ''No users found.''
Line 156: Line 156:
 
<!-- Left Column //-->
 
<!-- Left Column //-->
 
| style="vertical-align: top; width: 75%;" |  
 
| style="vertical-align: top; width: 75%;" |  
{{ #switch: {{{ introduction | yes }}} | yes = {{ :User:Loki/layout/cell | title = {{{ title | Introduction }}} | page = Introduction | class = {{{ introduction class | }}} | style = {{{ introduction style | }}} }} }}{{ #switch: {{{ overview position | right }}} | left = {{ :User:Loki/layout/cell | title = Overview | page = Infobox | class = {{{ overview class | }}} | style = {{{ overview style | }}} }} }}{{ #switch: {{{ stereotypes position | left }}} | left = {{ :User:Loki/layout/cell | title = Stereotypes | page = Stereotypes | class = {{{ stereotypes class | }}} | style = {{{ stereotypes style | }}} }} }}{{ #switch: {{{ contacts position | left }}} | left = {{ #switch: {{{ contacts | yes }}} | yes = {{ :User:Loki/layout/cell | title = Contacts | page = Contacts | class = {{{ contacts class | }}} | style = {{{ contacts style | }}} }} }} }}{{ #switch: {{{ hooks position | right }}} | left = {{ :User:Loki/layout/cell | title = RP Hooks | page = Hooks | class = {{{ hooks class | }}} | style = {{{ hooks style | }}} }} }}{{ #switch: {{{ logs position | left }}} | left = {{ :User:Loki/layout/logs | plots = yes }} }}{{ #switch: {{{ gallery position | bottom }}} | left = {{ :User:Loki/layout/cell | title = {{{gallery title|Gallery}}} | page = Gallery | style = {{{ gallery style | text-align: center; }}} }} }}{{ #switch: {{{ disclaimer position | left }}} | left = {{ :User:Loki/layout/cell | title = Disclaimer | page = Disclaimer | class = {{{ disclaimer class | }}} | style = {{{ disclaimer style | }}} }} }}{{ #switch: {{{ custom position 1 | }}} | left = {{ :User:Loki/layout/cell | title = {{{ custom title 1 }}} | page = {{{ custom title 1 }}} | class = {{{ custom class 1 | }}} | style = {{{ custom style 1 | }}} }} }}{{ #switch: {{{ custom position 2 | }}} | left = {{ :User:Loki/layout/cell | title = {{{ custom title 2 }}} | page = {{{ custom title 2 }}} | class = {{{ custom class 2 | }}} | style = {{{ custom style 2 | }}} }} }}{{ #switch: {{{ custom position 3 | }}} | left = {{ :User:Loki/layout/cell | title = {{{ custom title 3 }}} | page = {{{ custom title 3 }}} | class = {{{ custom class 3 | }}} | style = {{{ custom style 3 | }}} }} }}{{ #switch: {{{ custom position 4 | }}} | left = {{ :User:Loki/layout/cell | title = {{{ custom title 4 }}} | page = {{{ custom title 4 }}} | class = {{{ custom class 4 | }}} | style = {{{ custom style 4 | }}} }} }}{{ #switch: {{{ custom position 5 | }}} | left = {{ :User:Loki/layout/cell | title = {{{ custom title 5 }}} | page = {{{ custom title 5 }}} | class = {{{ custom class 5 | }}} | style = {{{ custom style 5 | }}} }} }}
+
{{ #switch: {{{ introduction | yes }}} | yes = {{ :Charpage/layout/cell | title = {{{ title | Introduction }}} | page = Introduction | class = {{{ introduction class | }}} | style = {{{ introduction style | }}} }} }}{{ #switch: {{{ overview position | right }}} | left = {{ :Charpage/layout/cell | title = Overview | page = Infobox | class = {{{ overview class | }}} | style = {{{ overview style | }}} }} }}{{ #switch: {{{ stereotypes position | left }}} | left = {{ :Charpage/layout/cell | title = Stereotypes | page = Stereotypes | class = {{{ stereotypes class | }}} | style = {{{ stereotypes style | }}} }} }}{{ #switch: {{{ contacts position | left }}} | left = {{ #switch: {{{ contacts | yes }}} | yes = {{ :Charpage/layout/cell | title = Contacts | page = Contacts | class = {{{ contacts class | }}} | style = {{{ contacts style | }}} }} }} }}{{ #switch: {{{ hooks position | right }}} | left = {{ :Charpage/layout/cell | title = RP Hooks | page = Hooks | class = {{{ hooks class | }}} | style = {{{ hooks style | }}} }} }}{{ #switch: {{{ logs position | left }}} | left = {{ :Charpage/layout/logs | plots = yes }} }}{{ #switch: {{{ gallery position | bottom }}} | left = {{ :Charpage/layout/cell | title = {{{gallery title|Gallery}}} | page = Gallery | style = {{{ gallery style | text-align: center; }}} }} }}{{ #switch: {{{ disclaimer position | left }}} | left = {{ :Charpage/layout/cell | title = Disclaimer | page = Disclaimer | class = {{{ disclaimer class | }}} | style = {{{ disclaimer style | }}} }} }}{{ #switch: {{{ custom position 1 | }}} | left = {{ :Charpage/layout/cell | title = {{{ custom title 1 }}} | page = {{{ custom title 1 }}} | class = {{{ custom class 1 | }}} | style = {{{ custom style 1 | }}} }} }}{{ #switch: {{{ custom position 2 | }}} | left = {{ :Charpage/layout/cell | title = {{{ custom title 2 }}} | page = {{{ custom title 2 }}} | class = {{{ custom class 2 | }}} | style = {{{ custom style 2 | }}} }} }}{{ #switch: {{{ custom position 3 | }}} | left = {{ :Charpage/layout/cell | title = {{{ custom title 3 }}} | page = {{{ custom title 3 }}} | class = {{{ custom class 3 | }}} | style = {{{ custom style 3 | }}} }} }}{{ #switch: {{{ custom position 4 | }}} | left = {{ :Charpage/layout/cell | title = {{{ custom title 4 }}} | page = {{{ custom title 4 }}} | class = {{{ custom class 4 | }}} | style = {{{ custom style 4 | }}} }} }}{{ #switch: {{{ custom position 5 | }}} | left = {{ :Charpage/layout/cell | title = {{{ custom title 5 }}} | page = {{{ custom title 5 }}} | class = {{{ custom class 5 | }}} | style = {{{ custom style 5 | }}} }} }}
 
<!-- /Left Column //-->
 
<!-- /Left Column //-->
  
 
<!-- Right Column //-->
 
<!-- Right Column //-->
 
| style="vertical-align: top; width: 25%;" |  
 
| style="vertical-align: top; width: 25%;" |  
{{ #switch: {{{ portrait | yes }}} | yes = {{ :User:Loki/layout/cell | title = {{{ full name | {{ PAGENAME }} }}} | page = Portrait | class = {{{ portrait class | }}} | style = {{{ portrait style | }}} }} }}{{ #switch: {{{ overview position | right }}} | right = {{ :User:Loki/layout/cell | title = Overview | page = Infobox | class = {{{ overview class | }}} | style = {{{ overview style | }}} }} }}{{ #switch: {{{ stereotypes position | left }}} | right = {{ :User:Loki/layout/cell | title = Stereotypes | page = Stereotypes | class = {{{ stereotypes class | }}} | style = {{{ stereotypes style | }}} }} }}{{ #switch: {{{ contacts position | left }}} | right = {{ #switch: {{{ contacts | yes }}} | yes = {{ :User:Loki/layout/cell | title = Contacts | page = Contacts | class = {{{ contacts class | }}} | style = {{{ contacts style | }}} }} }} }}{{ #switch: {{{ hooks position | right }}} | right = {{ :User:Loki/layout/cell | title = RP Hooks | page = Hooks | class = {{{ hooks class | }}} | style = {{{ hooks style | }}} }} }}{{ #switch: {{{ logs position | left }}} | right = {{ :User:Loki/layout/logs | plots = yes }} }}{{ #switch: {{{ gallery position | bottom }}} | right = {{ :User:Loki/layout/cell | title = {{{gallery title|Gallery}}}| page = Gallery | style = {{{ gallery style | text-align: center; }}} }} }}{{ #switch: {{{ disclaimer position | left }}} | right = {{ :User:Loki/layout/cell | title = Disclaimer | page = Disclaimer | class = {{{ disclaimer class | }}} | style = {{{ disclaimer style | }}} }} }}{{ #switch: {{{ custom position 1 | }}} | right = {{ :User:Loki/layout/cell | title = {{{ custom title 1 }}} | page = {{{ custom title 1 }}} | class = {{{ custom class 1 | }}} | style = {{{ custom style 1 | }}} }} }}{{ #switch: {{{ custom position 2 | }}} | right = {{ :User:Loki/layout/cell | title = {{{ custom title 2 }}} | page = {{{ custom title 2 }}} | class = {{{ custom class 2 | }}} | style = {{{ custom style 2 | }}} }} }}{{ #switch: {{{ custom position 3 | }}} | right = {{ :User:Loki/layout/cell | title = {{{ custom title 3 }}} | page = {{{ custom title 3 }}} | class = {{{ custom class 3 | }}} | style = {{{ custom style 3 | }}} }} }}{{ #switch: {{{ custom position 4 | }}} | right = {{ :User:Loki/layout/cell | title = {{{ custom title 4 }}} | page = {{{ custom title 4 }}} | class = {{{ custom class 4 | }}} | style = {{{ custom style 4 | }}} }} }}{{ #switch: {{{ custom position 5 | }}} | right = {{ :User:Loki/layout/cell | title = {{{ custom title 5 }}} | page = {{{ custom title 5 }}} | class = {{{ custom class 5 | }}} | style = {{{ custom style 5 | }}} }} }}
+
{{ #switch: {{{ portrait | yes }}} | yes = {{ :Charpage/layout/cell | title = {{{ full name | {{ PAGENAME }} }}} | page = Portrait | class = {{{ portrait class | }}} | style = {{{ portrait style | }}} }} }}{{ #switch: {{{ overview position | right }}} | right = {{ :Charpage/layout/cell | title = Overview | page = Infobox | class = {{{ overview class | }}} | style = {{{ overview style | }}} }} }}{{ #switch: {{{ stereotypes position | left }}} | right = {{ :Charpage/layout/cell | title = Stereotypes | page = Stereotypes | class = {{{ stereotypes class | }}} | style = {{{ stereotypes style | }}} }} }}{{ #switch: {{{ contacts position | left }}} | right = {{ #switch: {{{ contacts | yes }}} | yes = {{ :Charpage/layout/cell | title = Contacts | page = Contacts | class = {{{ contacts class | }}} | style = {{{ contacts style | }}} }} }} }}{{ #switch: {{{ hooks position | right }}} | right = {{ :Charpage/layout/cell | title = RP Hooks | page = Hooks | class = {{{ hooks class | }}} | style = {{{ hooks style | }}} }} }}{{ #switch: {{{ logs position | left }}} | right = {{ :Charpage/layout/logs | plots = yes }} }}{{ #switch: {{{ gallery position | bottom }}} | right = {{ :Charpage/layout/cell | title = {{{gallery title|Gallery}}}| page = Gallery | style = {{{ gallery style | text-align: center; }}} }} }}{{ #switch: {{{ disclaimer position | left }}} | right = {{ :Charpage/layout/cell | title = Disclaimer | page = Disclaimer | class = {{{ disclaimer class | }}} | style = {{{ disclaimer style | }}} }} }}{{ #switch: {{{ custom position 1 | }}} | right = {{ :Charpage/layout/cell | title = {{{ custom title 1 }}} | page = {{{ custom title 1 }}} | class = {{{ custom class 1 | }}} | style = {{{ custom style 1 | }}} }} }}{{ #switch: {{{ custom position 2 | }}} | right = {{ :Charpage/layout/cell | title = {{{ custom title 2 }}} | page = {{{ custom title 2 }}} | class = {{{ custom class 2 | }}} | style = {{{ custom style 2 | }}} }} }}{{ #switch: {{{ custom position 3 | }}} | right = {{ :Charpage/layout/cell | title = {{{ custom title 3 }}} | page = {{{ custom title 3 }}} | class = {{{ custom class 3 | }}} | style = {{{ custom style 3 | }}} }} }}{{ #switch: {{{ custom position 4 | }}} | right = {{ :Charpage/layout/cell | title = {{{ custom title 4 }}} | page = {{{ custom title 4 }}} | class = {{{ custom class 4 | }}} | style = {{{ custom style 4 | }}} }} }}{{ #switch: {{{ custom position 5 | }}} | right = {{ :Charpage/layout/cell | title = {{{ custom title 5 }}} | page = {{{ custom title 5 }}} | class = {{{ custom class 5 | }}} | style = {{{ custom style 5 | }}} }} }}
  
 
<!-- /Right Column //-->
 
<!-- /Right Column //-->
Line 168: Line 168:
 
<!-- Spanned Column //-->
 
<!-- Spanned Column //-->
 
| colspan="2" |  
 
| colspan="2" |  
{{ #switch: {{{ overview position | right }}} | bottom = {{ :User:Loki/layout/cell | title = Overview | page = Infobox | class = {{{ overview class | }}} | style = {{{ overview style | }}} }} }}{{ #switch: {{{ stereotypes position | left }}} | bottom = {{ :User:Loki/layout/cell | title = Stereotypes | page = Stereotypes | class = {{{ stereotypes class | }}} | style = {{{ stereotypes style | }}} }} }}{{ #switch: {{{ contacts position | left }}} | bottom = {{ #switch: {{{ contacts | yes }}} | yes = {{ :User:Loki/layout/cell | title = Contacts | page = Contacts | class = {{{ contacts class | }}} | style = {{{ contacts style | }}} }} }} }}{{ #switch: {{{ hooks position | right }}} | bottom = {{ :User:Loki/layout/cell | title = RP Hooks | page = Hooks | class = {{{ hooks class | }}} | style = {{{ hooks style | }}} }} }}{{ #switch: {{{ logs position | left }}} | bottom = {{ :User:Loki/layout/logs | plots = yes }} }}{{ #switch: {{{ gallery position | bottom }}} | bottom = {{ :User:Loki/layout/cell | title = {{{gallery title|Gallery}}} | page = Gallery | style = {{{ gallery style | text-align: center; }}} }} }}{{ #switch: {{{ disclaimer position | left }}} | bottom = {{ :User:Loki/layout/cell | title = Disclaimer | page = Disclaimer | class = {{{ disclaimer class | }}} | style = {{{ disclaimer style | }}} }} }}{{ #switch: {{{ custom position 1 | }}} | bottom = {{ :User:Loki/layout/cell | title = {{{ custom title 1 }}} | page = {{{ custom title 1 }}} | class = {{{ custom class 1 | }}} | style = {{{ custom style 1 | }}} }} }}{{ #switch: {{{ custom position 2 | }}} | bottom = {{ :User:Loki/layout/cell | title = {{{ custom title 2 }}} | page = {{{ custom title 2 }}} | class = {{{ custom class 2 | }}} | style = {{{ custom style 2 | }}} }} }}{{ #switch: {{{ custom position 3 | }}} | bottom = {{ :User:Loki/layout/cell | title = {{{ custom title 3 }}} | page = {{{ custom title 3 }}} | class = {{{ custom class 3 | }}} | style = {{{ custom style 3 | }}} }} }}{{ #switch: {{{ custom position 4 | }}} | bottom = {{ :User:Loki/layout/cell | title = {{{ custom title 4 }}} | page = {{{ custom title 4 }}} | class = {{{ custom class 4 | }}} | style = {{{ custom style 4 | }}} }} }}{{ #switch: {{{ custom position 5 | }}} | bottom = {{ :User:Loki/layout/cell | title = {{{ custom title 5 }}} | page = {{{ custom title 5 }}} | class = {{{ custom class 5 | }}} | style = {{{ custom style 5 | }}} }} }}
+
{{ #switch: {{{ overview position | right }}} | bottom = {{ :Charpage/layout/cell | title = Overview | page = Infobox | class = {{{ overview class | }}} | style = {{{ overview style | }}} }} }}{{ #switch: {{{ stereotypes position | left }}} | bottom = {{ :Charpage/layout/cell | title = Stereotypes | page = Stereotypes | class = {{{ stereotypes class | }}} | style = {{{ stereotypes style | }}} }} }}{{ #switch: {{{ contacts position | left }}} | bottom = {{ #switch: {{{ contacts | yes }}} | yes = {{ :Charpage/layout/cell | title = Contacts | page = Contacts | class = {{{ contacts class | }}} | style = {{{ contacts style | }}} }} }} }}{{ #switch: {{{ hooks position | right }}} | bottom = {{ :Charpage/layout/cell | title = RP Hooks | page = Hooks | class = {{{ hooks class | }}} | style = {{{ hooks style | }}} }} }}{{ #switch: {{{ logs position | left }}} | bottom = {{ :Charpage/layout/logs | plots = yes }} }}{{ #switch: {{{ gallery position | bottom }}} | bottom = {{ :Charpage/layout/cell | title = {{{gallery title|Gallery}}} | page = Gallery | style = {{{ gallery style | text-align: center; }}} }} }}{{ #switch: {{{ disclaimer position | left }}} | bottom = {{ :Charpage/layout/cell | title = Disclaimer | page = Disclaimer | class = {{{ disclaimer class | }}} | style = {{{ disclaimer style | }}} }} }}{{ #switch: {{{ custom position 1 | }}} | bottom = {{ :Charpage/layout/cell | title = {{{ custom title 1 }}} | page = {{{ custom title 1 }}} | class = {{{ custom class 1 | }}} | style = {{{ custom style 1 | }}} }} }}{{ #switch: {{{ custom position 2 | }}} | bottom = {{ :Charpage/layout/cell | title = {{{ custom title 2 }}} | page = {{{ custom title 2 }}} | class = {{{ custom class 2 | }}} | style = {{{ custom style 2 | }}} }} }}{{ #switch: {{{ custom position 3 | }}} | bottom = {{ :Charpage/layout/cell | title = {{{ custom title 3 }}} | page = {{{ custom title 3 }}} | class = {{{ custom class 3 | }}} | style = {{{ custom style 3 | }}} }} }}{{ #switch: {{{ custom position 4 | }}} | bottom = {{ :Charpage/layout/cell | title = {{{ custom title 4 }}} | page = {{{ custom title 4 }}} | class = {{{ custom class 4 | }}} | style = {{{ custom style 4 | }}} }} }}{{ #switch: {{{ custom position 5 | }}} | bottom = {{ :Charpage/layout/cell | title = {{{ custom title 5 }}} | page = {{{ custom title 5 }}} | class = {{{ custom class 5 | }}} | style = {{{ custom style 5 | }}} }} }}
 
|-
 
|-
 
|}
 
|}

Revision as of 15:41, 25 April 2012


Active PCs

{{ #dpl:

uses = Charpage category = Active PC noresultsheader = No users found. notnamespace = Talk columns = 3

}}

Inactive PCs

{{ #dpl:

uses = Charpage/layout category = PC notcategory = Active PC noresultsheader = No users found. notnamespace = Talk columns = 3

}}

Other

{{ #dpl:

uses = Charpage/layout notcategory = PC noresultsheader = No users found. notnamespace = Talk columns = 2

}}

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.

Usage

Copy the following onto your page:

[[Category:PC]][[Category:Active PC]]
{{ :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)
| contacts position    = left, right, bottom, OR off (default: yes)
| hooks position       = left, right, bottom, OR off (default: right)
| 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          = 
| 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 #      =