Difference between revisions of "Template:PC2"

From Masq
Line 1: Line 1:
 +
<noinclude>
 +
A standard page is likely to be something like this:
 +
<pre>{{PC2
 +
| name=Full Name Here
 +
|--- Headers ---
 +
|--- Infobox ---
 +
| info_pic=Name.png
 +
| info_nationality=Nationality
 +
| info_occupation=Occupation
 +
| info_demeanor=Demeanor
 +
| info_nicknames=Nicknames
 +
| info_apparent_age=Age
 +
|--- Introduction ---
 +
| comic=NameComic.jpg
 +
| comic_text=Hover text goes here.
 +
|--- Description ---
 +
| description={{pad|3em}}A description goes here.
 +
|--- Quotes ---
 +
| quote_1=Some kinda quote.
 +
| quote_1_by=Someone
 +
| quote_2=Some kinda quote.
 +
| quote_2_by=Someone
 +
| quote_3=Some kinda quote.
 +
| quote_3_by=Someone
 +
|--- RP Hooks ---
 +
| hook_1=Something.
 +
| hook_2=Something else.
 +
|--- RP Logs ---
 +
|--- OOC ---
 +
|--- Hide ---
 +
| hide_quotes=no
 +
| hide_hooks=no
 +
| hide_logs=no
 +
| hide_description=no
 +
| hide_playlist=no
 +
| hide_allies=no
 +
| hide_gallery=no
 +
| hide_ooc=yes
 +
}}</pre>
 +
 +
===Customization===
 +
There are various adjustments which can be made.  If you want a different header, you can put something like:<tt>| allies_header=Some People</tt>in the 'Headers' section.  That would make the header for the Allies section read "Some People".  For other sections, you would use description_header, gallery_header, etc. 
 +
 +
If you want to use the standard picture (Name.jpg -- so for Bob, Bob.jpg) you don't need to include the <tt>| info_pic=Bob.jpg</tt> line; it will find that automatically.  However, if you wanted to use Bob.png, you should have <tt>| info_pic=Bob.png</tt> there.  The same is true for the comic -- the default is NameComic.jpg (so, BobComic.jpg) and you wouldn't need to include a <tt>| comic=BobComic.jpg</tt> line if you want to use that.  If you wanted to use 'Bobcomic.png', though, you would need <tt>| comic=Bobcomic.png</tt>. Capitalization does matter.
 +
 +
You can add items to the info box with lines like:
 +
<pre>| info_thing=A Thing!</pre>
 +
which would add a line to the box that said<br/>
 +
<b>Thing:</b>{{pad|3em}}A Thing!<br/>
 +
You can look at [[Jai|Jai's page]] for several examples, including Height, Build, etc.
 +
 +
If you have created a custom logs page, it will automatically be used as long as it is named Bob/AdvLogs (see [[Template:Rplogs]]).
 +
 +
If you have a page of OOC quotes named Bob/OOCQuotes, you would put <tt>| ooc_page=OOCQuotes</tt> under the ---OOC--- line.
 +
 +
Each section will automatically pick up subpages if they already exist with the proper name.  The defaults are /Infobox, /Introduction, /Quotes, /RPHooks, /AdvLogs, /Description, and /OOC; all of these can now be handled within this main page and should be when possible.  Currently, /Playlist, /Allies, and /Gallery cannot be done directly in the main page and still need to be subpages.
 +
 +
The 'Hide' section lets you hide certain sections if you don't want to display them. Just turn 'no' to 'yes' for any section you want to hide, and 'yes' to 'no' for any that you want to show.
 +
</noinclude>
 
<includeonly>
 
<includeonly>
 
<div class="pc-sidebar"><span class="pc-header">'''Name:''' {{{name}}}</span><div id="infobox">
 
<div class="pc-sidebar"><span class="pc-header">'''Name:''' {{{name}}}</span><div id="infobox">

Revision as of 13:35, 18 May 2015

A standard page is likely to be something like this:

{{PC2
| name=Full Name Here
|--- Headers ---
|--- Infobox ---
| info_pic=Name.png
| info_nationality=Nationality
| info_occupation=Occupation
| info_demeanor=Demeanor
| info_nicknames=Nicknames
| info_apparent_age=Age 
|--- Introduction ---
| comic=NameComic.jpg
| comic_text=Hover text goes here.
|--- Description ---
| description={{pad|3em}}A description goes here.
|--- Quotes ---
| quote_1=Some kinda quote.
| quote_1_by=Someone
| quote_2=Some kinda quote.
| quote_2_by=Someone
| quote_3=Some kinda quote.
| quote_3_by=Someone
|--- RP Hooks ---
| hook_1=Something.
| hook_2=Something else.
|--- RP Logs ---
|--- OOC ---
|--- Hide ---
| hide_quotes=no
| hide_hooks=no
| hide_logs=no
| hide_description=no
| hide_playlist=no
| hide_allies=no
| hide_gallery=no
| hide_ooc=yes
}}

Customization

There are various adjustments which can be made. If you want a different header, you can put something like:| allies_header=Some Peoplein the 'Headers' section. That would make the header for the Allies section read "Some People". For other sections, you would use description_header, gallery_header, etc.

If you want to use the standard picture (Name.jpg -- so for Bob, Bob.jpg) you don't need to include the | info_pic=Bob.jpg line; it will find that automatically. However, if you wanted to use Bob.png, you should have | info_pic=Bob.png there. The same is true for the comic -- the default is NameComic.jpg (so, BobComic.jpg) and you wouldn't need to include a | comic=BobComic.jpg line if you want to use that. If you wanted to use 'Bobcomic.png', though, you would need | comic=Bobcomic.png. Capitalization does matter.

You can add items to the info box with lines like:

| info_thing=A Thing!

which would add a line to the box that said
Thing: A Thing!
You can look at Jai's page for several examples, including Height, Build, etc.

If you have created a custom logs page, it will automatically be used as long as it is named Bob/AdvLogs (see Template:Rplogs).

If you have a page of OOC quotes named Bob/OOCQuotes, you would put | ooc_page=OOCQuotes under the ---OOC--- line.

Each section will automatically pick up subpages if they already exist with the proper name. The defaults are /Infobox, /Introduction, /Quotes, /RPHooks, /AdvLogs, /Description, and /OOC; all of these can now be handled within this main page and should be when possible. Currently, /Playlist, /Allies, and /Gallery cannot be done directly in the main page and still need to be subpages.

The 'Hide' section lets you hide certain sections if you don't want to display them. Just turn 'no' to 'yes' for any section you want to hide, and 'yes' to 'no' for any that you want to show.