Template:Uir/adoc: Difference between revisions
(New Create Template) |
|||
(One intermediate revision by the same user not shown) | |||
Line 34: | Line 34: | ||
{|border=1 cellpadding=2 | {|border=1 cellpadding=2 | ||
!width=51|option | !width=51|option | ||
![[ | ![[Bharatpedia:Userboxes|userbox]] | ||
![[Help:Category|default user categories]] | ![[Help:Category|default user categories]] | ||
|- | |- | ||
Line 295: | Line 295: | ||
===Restriction=== | ===Restriction=== | ||
This template should be placed on your [[ | This template should be placed on your [[Bharatpedia:user page|user page]]. This template will only declare user categories from the [[user namespace]]. | ||
{{clear}} | {{clear}} | ||
===Example=== | ===Example=== | ||
Placing the following [[Wiki markup]] on your [[ | Placing the following [[Wiki markup]] on your [[Bharatpedia:user page|user page]]: | ||
:'''<code><nowiki>{{</nowiki>{{#if:{{{tem|}}}|{{{tem|}}}|User in {{#if:{{{the|}}}|the }}{{{simple|{{{region|}}}}}}}}<nowiki>}}</nowiki></code>''' | :'''<code><nowiki>{{</nowiki>{{#if:{{{tem|}}}|{{{tem|}}}|User in {{#if:{{{the|}}}|the }}{{{simple|{{{region|}}}}}}}}<nowiki>}}</nowiki></code>''' | ||
creates the following [[ | creates the following [[Bharatpedia:Userboxes|userbox]]: | ||
{{{{#if:{{{tem|}}}|{{{tem|}}}|User in {{#if:{{{the|}}}|the }}{{{simple|{{{region|}}}}}}}}|nocat=true}} | {{{{#if:{{{tem|}}}|{{{tem|}}}|User in {{#if:{{{the|}}}|the }}{{{simple|{{{region|}}}}}}}}|nocat=true}} | ||
{{clear}} | {{clear}} |
Latest revision as of 13:38, 17 October 2024
This multiuse regional user template creates a userbox that describes your association with [[|]] and declares your membership in appropriate regional user categories when placed on your user page.
Use
To use this userbox template, place the following line of Wikitext on your user page:
{{Uir|option|color=|float=|align=|nocat=}}
where:
option
is the template option number (default=1
, see the Options table below)
color=
an optional userbox background color (default=white
, see web colors)float=
an optional horizontal float of the userbox:float=left
(default)float=right
float=none
align=
an optional horizontal alignment of the userbox text:align=left
align=center
(default)align=right
align=justify
nocat=
an optional user category inhibitor:nocat=true
do not declare any user categoriesnocat=false
declare user categories (default)
Options table
option | userbox | default user categories | |
---|---|---|---|
0 | none | Option 0 allows user categories to be declared without displaying a userbox | |
1 | |||
2 | |||
3 | |||
4 | |||
5 | |||
6 | |||
7 | |||
8 | |||
9 | |||
10 | |||
11 | |||
12 | |||
13 | |||
14 | |||
15 | |||
16 | |||
17 | |||
18 | |||
19 | |||
31 | |||
32 | |||
33 | |||
34 | |||
35 | |||
36 | |||
37 | |||
38 | |||
51 | |||
52 | |||
53 | |||
54 | |||
55 | |||
56 | |||
61 | none | ||
62 | |||
63 | |||
64 | |||
65 | |||
66 | |||
67 | |||
68 | |||
69 | |||
72 | |||
73 | |||
74 | |||
75 | |||
76 | |||
77 | |||
78 | |||
79 | |||
80 | |||
81 | |||
82 | |||
83 | |||
84 | |||
85 | |||
86 | |||
90 | |||
91 | |||
92 | |||
93 | |||
94 | |||
99 |
Restriction
This template should be placed on your user page. This template will only declare user categories from the user namespace.
Example
Placing the following Wiki markup on your user page:
{{User in}}
creates the following userbox:
and adds your user page to the following category:
See also
- This template invokes Template:User in region.