We've Moved! Just as Gamepedia has joined forces with Fandom, this wiki had joined forces with our Fandom equivalent. The wiki has been archived and we ask that readers and editors move to the now combined wiki on Fandom. Click to go to the new wiki.

Template:CPbox

From Don't Starve Wiki
Jump to: navigation, search
{{{title}}}
{{{content}}}


Template-info.svg Documentation The documentation below is transcluded from Template:CPbox/doc. (edit | history)
Description
A type of box containing information, mainly used in Community Portal.
Syntax
The basic use of the template is simply typing {{CPbox}}
The more advanced use is shown below:
{{CPbox
|background1=          /* change the background colour of bar on the left side of title. */
|background2=          /* change the background colour of bar on the left side of content. */
|title= 
|title-f=              /* change the font of title */
|title-ml=             /* change the margin-left of title */
|title-s=              /* change the font size of title */
|content= 
}}
Example
Input the following scripts.
{{CPbox
|title={{pic|38|Glommer}} Hello there|title-s=180%|title-ml=0.5em
|content=Welcome to my userpage, {{USERNAME}}!
}}
It gives...
Glommer.png Hello there
Welcome to my userpage, !


{{CPbox
|background1=#FC7979|background2=no
|title={{pic|38|Glommer}} Hello there|title-s=180%|title-ml=0.5em
|content=Welcome to my userpage, {{USERNAME}}!
}}
It gives...
Glommer.png Hello there
Welcome to my userpage, !