×
Create a new article
Write your page title here:
We currently have 2,522 articles on Polcompball Wiki. Type your article name above or click on one of the titles below and start writing!



Polcompball Wiki

Template:Userbox/doc: Difference between revisions

imported>Aycee Lovelace
(Created page with "== Description == Userboxes are small notices on users' profile pages that contain information about a user. Rather than creating a new template for every custom userbox, new...")
imported>TheGhostOfInky
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Description ==
== Description ==
Userboxes are small notices on users' profile pages that contain information about a user. Rather than creating a new template for every custom userbox, new userboxes should be subpages of the Userbox template, which can be created by navigating to <code>Template:Userbox/NameOfUserbox</code>.
Userboxes are small notices on users' profile pages that contain information about a user. Rather than creating a new template for every custom userbox, new userboxes should be subpages of the Userbox template, which can be created by navigating to <code>Userbox:NameOfUserbox</code>.


== Syntax ==
== Syntax ==
Line 21: Line 21:
Userboxes are highly customizable. Users can implement infoboxes for personal use by inserting the template into their profile pages and filling out each field, or save widely-used customizations on subpages to allow for standardized premade userboxes.
Userboxes are highly customizable. Users can implement infoboxes for personal use by inserting the template into their profile pages and filling out each field, or save widely-used customizations on subpages to allow for standardized premade userboxes.


{{Userbox/Egoist}}
{{Userbox:Egoist}}
In this example, a userbox named ''Egoist'' is created at [[Template:Userbox/Egoist]], as a subpage of the Userbox template. Others who wish to use the userbox on their profiles can simply add <code><nowiki>{{Userbox/Egoist}}</nowiki></code> to their profile pages.
 
In this example, a userbox named ''Egoist'' is created at [[Userbox:Egoist]], as a subpage of the Userbox template. Others who wish to use the userbox on their profiles can simply add <code><nowiki>{{Userbox:Egoist}}</nowiki></code> to their profile pages.
<pre>
<pre>
{{Userbox
{{Userbox

Latest revision as of 16:53, 24 March 2023

Description

Userboxes are small notices on users' profile pages that contain information about a user. Rather than creating a new template for every custom userbox, new userboxes should be subpages of the Userbox template, which can be created by navigating to Userbox:NameOfUserbox.

Syntax

{{Userbox
| borderwidth =
| width       =
| bgcolor     =
| fgcolor     =
| imcolor     =
| textcolor   =
| image       =
| imagewidth  =
| text        =
| quote       =
}}

Making a userbox

Userboxes are highly customizable. Users can implement infoboxes for personal use by inserting the template into their profile pages and filling out each field, or save widely-used customizations on subpages to allow for standardized premade userboxes.

Template:Userbox:Egoist

In this example, a userbox named Egoist is created at Userbox:Egoist, as a subpage of the Userbox template. Others who wish to use the userbox on their profiles can simply add {{Userbox:Egoist}} to their profile pages.

{{Userbox
| borderwidth = 2px //Thickness of the colored border around the userbox
| width       = 248px //Horizontal length of the userbox, matches length of text field when unset
| bgcolor     = #006A66 //Color of userbox's border
| fgcolor     = #141414 //Color of internal text area
| imcolor     = #003F3D //Background color of image region
| textcolor   = #FFFFFF //Color of text
| image       = Ego and its own.png //Image in userbox
| imagewidth  = 45px //Maximum width of image
| text        = This user is an '''[[Egoism|Egoist]]'''. //Text in userbox
| quote       = The people is dead! Good-day, Self! //Optional quote, does not appear when unset
}}