Template:User WP/doc

Safer nicotine wiki Tobacco Harm Reduction
Revision as of 02:01, 2 April 2022 by imported>Est. 2021 (TemplateData)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lua error: Internal error: The interpreter exited with status 1. This template creates a userbox that identifies you as a member of a Wikipedia project, for example:
Lua error: Internal error: The interpreter exited with status 1.

Usage

This template invokes Template:Userbox, automatically adding multiple parameters, including appropriate text, links and categories. If the project name is listed in the switch subtemplate, this template will also automatically display the right image and colors for the given project, otherwise you can set them using the named parameters.

The code is formatted according to recommendations in Lua error: Internal error: The interpreter exited with status 1..

Parameters

Unnamed parameters

To use this userbox template, place the following line of Wikitext on your user page:

{{User WP|1|2|3}}

where:

  • 1 is the required project base name (without the "Wikipedia:WikiProject" prefix, nor the "work group" or "task force" postfix)
  • 2 the optional text alignment:
    • center or left (default).
  • 3 for additional parameters:
    • break to display a line break between the "WikiProject" prefix and the base name;
    • list to display additional links to the project talk, articles and stubs, if the appropriate categories exist.

For examples, see the appropriate section below.

Named parameters

  • imageExpression error: Unexpected < operator. the optional image base name (without the "File:" prefix).
  • sizeExpression error: Unexpected < operator. the optional image size (without the "px" suffix): default is size=39x39.
  • id-cExpression error: Unexpected < operator. the optional background color for the image: default is id-c=#DEFExpression error: Unexpected < operator..
  • info-cExpression error: Unexpected < operator. the optional background color for the info: default is info-c=#FFFFFDExpression error: Unexpected < operator..
  • info-fcExpression error: Unexpected < operator. the optional font color for the info, including links.
  • border-cExpression error: Unexpected < operator. the optional border color: default is border-c=<span style="background:transparent;Lua error: Internal error: The interpreter exited with status 1." title="transparent">gray.
  • ucatExpression error: Unexpected < operator. the optional user category (without the "Category:" prefix).
  • nocatExpression error: Unexpected < operator. the optional user category inhibitor:
    • nocat=true do not declare the membership category;
    • nocat=false declare the membership category (default in User namespace).

Other parameters

Other optional parameters for userboxes with text instead of the image:

  • idExpression error: Unexpected < operator.: the id text;
  • id-fcExpression error: Unexpected < operator.: the id text font color;
  • id-opExpression error: Unexpected < operator.: the id text other CSS parameters;
  • id-sExpression error: Unexpected < operator.: the id text size in points (default=14).

Examples

Examples with three parameters

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:User WP in articles based on its TemplateData.

TemplateData for User WP

Lua error: Internal error: The interpreter exited with status 1.Lua error: Internal error: The interpreter exited with status 1.

Redirects

See also

View related userboxes at: