Porn Base Central:Userboxes

From Porn Base Central, the free encyclopedia of gay porn
Jump to navigation Jump to search
Crystal kthememgr.pngA userbox is a small rectangular box that looks like this. More examples below.
Userboxes can come in many different styles and colors.Crystal package.png
Crystal package favourite.pngUserboxes can have one or two sideboxes.Ark-icon.png

A userbox (commonly abbreviated as UBX) is a small colored box (see examples to the right) designed to appear only on a PBC users user page as a communicative notice about the user, in order to directly or indirectly help PBC users collaborate more effectively on articles.

The first userboxes were introduced to support the Babel inter-language effort by indicating users' skills in other languages.

Using existing userboxes[edit source]

Userboxes belong on their user's pages. It may be considered uncivil to place userboxes on other users' pages without their permission (especially in a mean-spirited way--Homophobia, Racism, Sexism, etc). However, userboxes may be placed on non-mainspace talk/discussion pages by anyone. The {{clear}} template can be placed after the plain userbox if text is added on a new line immediately after it.

Syntax[edit source]

The standard syntax for adding a userbox to your user page (also known as transclusion) is: {{user name_of_box}}.

Optional substitution[edit source]

You may decide to substitute the template code onto your user page using the syntax {{subst:user name_of_box}}. The use of "subst:" will ensure that the template is always displayed in its form when you add it to your user page, i.e. it will not reflect subsequent edits to the template. This method will lead to large amounts of code on your user page.

Which namespace?[edit source]

Userboxes may only be created or displayed in the User, Project, or Template namespaces.

So should your userbox be prefixed with User:, PBC:, or Template:?

As content in User: space is traditionally given more leeway than in other namespaces, userboxes in User: space may not be as directly collaborative in nature as those in Template: or PBC: namespaces, which are expected to adhere more tightly with policies and guidelines, such as neutral point of view and what PBC is. (This should also be considered before moving a userbox from userspace to any other namespace.)

User:
To host a userbox in the user namespace, simply create a subpage of your own user page or User:PeaceDeadC.
PBC:
Userboxes in the project namespace are generally for PBC or task force usage. Simply create it as a subpage of the PBC (e.g. VG/DAH!/userbox).
Template:
In the template namespace, userbox names must begin with "User " (e.g. Template:User Brazil or Template:User en)

Caution about image use[edit source]

PBC Commons has a large range of icons for use within boxes. However, if you select an image from somewhere else, make certain the image has a free license. Templates (which includes userboxes) on user pages may not contain any copyrighted content not under free license; so, for example, "fair use" images are explicitly forbidden. This is interpreted strictly and without exception.

Caution about category use[edit source]

  • User categories must be sub-categories of PBC users.
  • Names and descriptions of user categories are subject to the same rules and restrictions as userbox content.
  • Userboxes should not automatically include categories.

Content restrictions[edit source]

  • All userboxes are governed by the civility policy.
    • Userboxes must not include incivility or personal attacks.
    • Userboxes must not be inflammatory or divisive.
    • PBC is not an appropriate place for propaganda, advocacy, or recruitment of any kind, commercial, political, religious, or otherwise, opinion pieces on current affairs or politics, self-promotion, or advertising.

Simply: If content is not appropriate on other parts of a user page, it is not appropriate within userboxes.

Content examples[edit source]

The following section is not to be considered all-inclusive. As such, other word combinations (both appropriate and inappropriate) are obviously possible.

Typical userbox content:

  • This user <verb phrase> <noun phrase>
  • This user <verb phrase> <noun phrase> <prepositional phrase>

Typical verbs:

  • verbs of action: contributes (to), drives, eats, edits, plays, uses, watches
  • verbs of comprehension: reads, speaks, understands
  • verbs of preference: enjoys, likes, loves

Additional examples, using the linking verb is:

  • This user is <noun phrase>
  • This user is a fan of <noun phrase>
  • This user is a member of <noun phrase>
  • This user is interested in <noun phrase>

To avoid the awkward third-person phrasing ("This user"), you can use "{{#titleparts: {{PAGENAME}} | 1 | 1 }}" (without the quotes) to insert the name of the user that includes it on their page. E.g. "{{#titleparts: {{PAGENAME}} | 1 | 1 }} prefers second-person phrasing" produces "Userboxes prefers second-person phrasing".

Potentially divisive words[edit source]

Avoid verbs (often followed by the word "that") which may be used to suggest negative comparison and would thus be potentially divisive, such as:

  • believes, considers, finds, knows, prefers, thinks, wishes.

Avoid negative verb phrases which can be potentially divisive, such as:

  • dislikes, despises, hates, loathes

Also avoid compound sentences which are positive and negative, such as:

  • This user likes <noun phrase>, but does not like <another noun phrase>.

Essentially: Express what you do like, rather than what you don't like. Express what you comprehend, rather than what you don't comprehend. Express what you do, rather than what you don't. Express who you are, rather than who you aren't.

Constructing a userbox[edit source]

How to construct the box[edit source]

There are a number of box types to select from when deciding to make a userbox. The most commonly used design is the "Standard box". It has one square shaped area on the left ("id") and a rectangular area on the right ("info").

For ease of use, userboxes are typically made using maker-templates that have a number of parameters.

Template Parameters Meaning Value type
border-c The border color of the userbox. CSS color value (#hex or color name)
border-s The border size of the userbox. Width in pixels
id-c The background color of the id box. CSS color value
id-s The font size of the id box. Size in PostScript points
id-fc The font color of the id box text. CSS color value
id-p The distance between border and content of id box. CSS padding width value. px, pt
id-lh The distance between text lines of id box. CSS relative line height/length value. em
info-c The background color of info box. CSS color value
info-s The font size of info box. Size in PostScript points
info-fc The font color of info box. CSS color value
info-p The distance between border and content of info box. CSS padding width value. px, pt
info-lh The distance between text lines of info box. CSS relative line height/length value. em
id This is the content of the id box. Free-form
info This is the content of info box. Free-form

The id and info boxes can include text, links, and images using the usual PBC syntax. Generally, the id box will contain a few letters or a 43px image, while the info box will contain a sentence with a link or two.

Userbox types[edit source]
Userbox sampling templates[edit source]

To make it easier to quote the generation code for a userbox in a uniform format, a template {{Userbox sample compact}} has been made available, which produces a picture of the userbox along with the code necessary to create it. To use it, just give it exactly the same parameters you would give the {{Userbox}} template. You must use subst:, or the template will not work properly. An example is shown below:

{{subst:Userbox sample compact|id=UBX|id-c=red|info=This is a '''[[WP:UBX|Userbox]]'''.}}

Produces:

{{Userbox | border-c = #999 | border-s = 1 | id-c = red | id-s = 14 | id-fc = black | info-c = #EEE | info-s = 8 | info-fc = black | id = UBX | info = This is a '''[[WP:UBX|Userbox]]'''. | float = left }}
UBX This is a Userbox.

There are not yet any similar templates available for userboxes created by the templates Userbox-r, Userbox-2 and Userbox-m.

Grouping userboxes[edit source]

Using the Userboxtop template[edit source]

As with the Babel box, there is a box to group userboxes together. Just make a list of userboxes with {{Userboxtop|box-name}} at the top, followed by your list of userboxes, and {{Userboxbottom}} at the bottom. For example, the box to the right is created using the following list:

{{Userboxtop|Example 1}}
{{Userboxes/Userbox}}
{{Userboxbottom}}

Using collapsible tables[edit source]

Example 2
My yellow userboxes
Crystal kthememgr.pngSample userbox #1.
Crystal kthememgr.pngSample userbox #2.
Crystal kthememgr.pngSample userbox #3.
My purple userboxes
Crystal kthememgr.pngSample userbox #4.
Crystal kthememgr.pngSample userbox #5.
Crystal kthememgr.pngSample userbox #6.

If you wish to group your userboxes into expandable lists in the {{Userboxtop}} template, one way of doing this is by using collapsible tables with certain classes. PBC's Mediawiki configuration attempts to make this happen through a combination of ECMAScript and CSS. This method is accessible to users with ECMAScript (jScript/JavaScript) disabled, and should work in most modern browsers (it is the method used by {{Navbox}}).

Using the codes in Help:Collapsing works much better and simpler using normal wiki table markup!
{{Userboxtop|Example 2}}
<table class="collapsible collapsed" cellspacing="0" style="width:100%;background:transparent;color:inherit;">
  <tr><th class="navbox-title">Caption</th></tr>
  <tr><td>
    Place your userboxes here...
  </td></tr>
</table>
{{Userboxbottom}}

Include 'collapsed' if you want the box to start closed, omit it if you want the box to start open. You can also use multiple tables to get separate collapsible parts like in the example to the right.


Using the Babel grouping system[edit source]

Similar results can be achieved with either of the following:

Code Result
{{Babel-X|Mac Pro|Rome/2|:Userbox/Userboxes/Friendly}}
Wikipedia:Babel
You haven't set up any languages. Please see Template:Babel/doc for help.
Search user languages
{{UBX-X|Mac Pro|Rome/2|:Userbox/Userboxes/Friendly}}
Example 5
Macpro BW.pngThis user contributes using a
Mac Pro.
Spqrstone.jpgThis user lives in Rome.
Nuvola apps important.pngThis user wants to be your friend.
Search user languages

The older Babel grouping system can also be used, e.g. {{Babel-3|sv|no-4|rome}}. However, it only works for user boxes with the "User" prefix, which must then be dropped for the arguments. Also, boxes that need arguments of their own (such as {{User:Userbox/Monty Python}}) cannot be used with the Babel system.

Using tables[edit source]

Another alternative would be to table your userboxes:

{| style="margin: 1em auto 1em auto"
|+ example 6
|-
| {{User:Userbox/Box:Jazz Fusion}} {{User:Userbox/Box:Jazz Fusion}}
|-
| {{User:Userbox/Box:Jazz Fusion}} {{User:Userbox/Box:Jazz Fusion}}
|}

would produce the following:

example 6
Tenorsaxophon.jpgThis user enjoys jazz-rock fusion.
Tenorsaxophon.jpgThis user enjoys jazz-rock fusion.
Tenorsaxophon.jpgThis user enjoys jazz-rock fusion.
Tenorsaxophon.jpgThis user enjoys jazz-rock fusion.

To center one userbox use this coding:

{| style="margin: 1em auto 1em auto"
|+ example 7
|-
| {{User:Userbox/Userboxes/User oops}}
|}

which produces:

example 7
Face-angel.pngThis user tries to do the right thing. If they make a mistake, please let them know.

Combining tables and the boxboxtop template[edit source]

Yet another method of grouping boxes is done by combining Examples 2 and 4 together. Example 2 breaks DHTML interoperability. It works as intended on Internet Explorer; however, it does not work well with Firefox, Google Chrome or Opera when additional hide/show sections are added. This solution provides proper rendering on all three web browsers and scales much better when it comes to the number of groups you want to have. The table property can be adjusted by adding width="100%" (adjusting its percentage or by using a pixel width multiple of the userbox) to add more than one column. Another property align="right" can be changed to place the userboxes left, right, or center of the page.

{|align="right" width="160px" style="background-color: transparent;"
|-
|<div>
{{boxboxtop| }}
<div class="NavFrame" style="padding: 0; border-style: none;">
<div class="NavFrame" style="border-style: none; padding: 0;">
<div class="NavHead" style="background: #edf1f1; text-align: left; text-style: normal;">
Caption</div><div class="NavContent" style="display: none;">
Place your userboxes here...
</div></div></div>
{{boxboxbottom}}
Place additional userbox groups here...
</div>
|}