Template:Uif

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Uif/doc.

A very simple template to check a user name whether it must be treated specially

Usage

{{Uif |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1user name, in any format, or emptyemptysuggested
2any text to be displayed instead of the user nameparam1optional
3any text to be displayed after or instead of the user nameemptyoptional
4"+" for a linked, "-" for a not-linked namespace prefix (only English)emptyoptional
lan ISO 639 language code if the user is in another Wikipediaemptyoptional
ma possible modificationemptyoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Relies on:
Template:U; Module:Igenmod anly when prefixed

Examples

{{ Uif }} missing parameter, does nothing
{{ UifExample }} Example this is the standard
{{ Uifplain text }} ​plain text only parameter 3
{{ UifExampleparameter 3 }}> Example​ parameter 3 parameter 3 is always possible
{{ UifExampletalk:{{Ut|Example|}} }} Example​ talk:Example 3rd parameter contains a link
{{ UifExamplel = de }} Example language code for interwiki link
{{ UifExamplem = wt }} Example template modification (see below)
{{ Uif&&Example }} Example​ prefixed (see below)
{{ UifExampledistext }} distext with a display text
{{ UifExample+ }} User:Example parameter 2 is "+"
{{ UifExample- }} User:Example parameter 3 is "-"
{{ UifExampledistextaddtext-l = enm = t }}0 User:distext​ addtext with all options
{{ Uif{{Creator|Wikidata=Q9068}} }}
Voltaire  (1694–1778)  wikidata:Q9068 s:en:Author:Voltaire q:en:Voltaire
 
Voltaire
Alternative names
Birth name: François-Marie Arouet; pseudonym: Bénédictin; Francois Marie Arouet de Voltaire; Francois Marie Arouet; Dictator of Letters
Description French philosopher, poet, historian, essayist, playwright and autobiographer
Date of birth/death 21 November 1694 Edit this at Wikidata 30 May 1778 Edit this at Wikidata
Location of birth/death Paris Paris
Authority file
creator QS:P170,Q9068
0

Modification

Template:U can be modified to Uc, Ud, Ul, Un, Ut, Uv, Uw, Uwt, Uif, Ult or any other username template with a value of parameter m=

Namespace

± ("+" or "-" sign) to precede the user name with the namespace User:

+ ("plus" sign) to make User: a part of the link
- ("minus" sign) to precede User: as plain text

(if both signs are specified, "+" is used and "-" is ignored)
The +/- parameter can as well be specified with parameter 2, 3 or 4.

Prefixing

With a special prefix the value of parameter 1 can be flagged that it is textual instead of a user name. This prefix is removed before the text is displayed.
Such a prefix consists of 2 characters, either (), <>, [] or {} can be used, or ((, &&, << (easy on German keyboards), ~~, .. (easy on most keyboards).