Difference between revisions of "Template:AllowedEditors"

From Team Fortress Wiki
Jump to: navigation, search
m
m (+ notice)
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
| image = Pictogram info.png
 
| image = Pictogram info.png
 
| contents = '''This user page is allowed to be edited by the following user(s)''':<br>
 
| contents = '''This user page is allowed to be edited by the following user(s)''':<br>
* {{#if: {{{any|Anyone}}}}}
+
* {{#ifeq: {{{any}}}| yes | Anyone |}}
 
* {{#if: {{{user-1|}}}|[[User:{{{user-1|}}}|{{{user-1}}}]]}}
 
* {{#if: {{{user-1|}}}|[[User:{{{user-1|}}}|{{{user-1}}}]]}}
 
* {{#if: {{{user-2|}}}|[[User:{{{user-2|}}}|{{{user-2}}}]]}}
 
* {{#if: {{{user-2|}}}|[[User:{{{user-2|}}}|{{{user-2}}}]]}}
Line 9: Line 9:
 
* {{#if: {{{user-4|}}}|[[User:{{{user-4|}}}|{{{user-4}}}]]}}
 
* {{#if: {{{user-4|}}}|[[User:{{{user-4|}}}|{{{user-4}}}]]}}
 
* {{#if: {{{user-5|}}}|[[User:{{{user-5|}}}|{{{user-5}}}]]}}
 
* {{#if: {{{user-5|}}}|[[User:{{{user-5|}}}|{{{user-5}}}]]}}
 +
{{#if: {{{notice|}}}|'''Additional instructions:''' {{{notice}}}|}}
 
}}<noinclude>
 
}}<noinclude>
 
{{Doc begin}}
 
{{Doc begin}}
This template should be used on "User:" pages only, it is used to indicate a list of Users allowed to edit your User space page. It is not necessary to include yourself in this list.
+
This template should be used on {{code|User:}} space pages only, it is used to indicate a list of Users allowed to edit your User space page. It is not necessary to include yourself in this list.
  
 
== Arguments ==
 
== Arguments ==
Line 18: Line 19:
  
 
; any
 
; any
: Accepts any parameter, if included will add "Anyone".
+
: If yes, will add "Anyone".
 +
 
 +
; notice
 +
: Adds additional instructions at the bottom, can be used to add limitations or instructions to Users that are allowed to edit.
  
 
<pre>
 
<pre>
Line 28: Line 32:
 
| user-4 =
 
| user-4 =
 
| user-5 =
 
| user-5 =
 +
| notice =
 
}}
 
}}
 
</pre>
 
</pre>
Line 38: Line 43:
 
| user-2 = Ivan
 
| user-2 = Ivan
 
| user-3 = Supergamer24
 
| user-3 = Supergamer24
 +
| notice = Please only edit the table!
 
}}
 
}}
 
</pre>
 
</pre>
 
Generates:
 
Generates:
  
{{User:GrampaSwood/Template:AllowedEditors
+
{{AllowedEditors
 
| any = yes
 
| any = yes
 
| user-1= Jimmy
 
| user-1= Jimmy
 
| user-2 = Ivan
 
| user-2 = Ivan
 
| user-3 = Supergamer24
 
| user-3 = Supergamer24
 +
| notice = Please only edit the table!
 
}}
 
}}

Latest revision as of 19:09, 11 January 2024

Documentation for AllowedEditors

This template should be used on User: space pages only, it is used to indicate a list of Users allowed to edit your User space page. It is not necessary to include yourself in this list.

Arguments

user-#
Supports user-1 through user-5.
any
If yes, will add "Anyone".
notice
Adds additional instructions at the bottom, can be used to add limitations or instructions to Users that are allowed to edit.
{{AllowedEditors
| any    =
| user-1 =
| user-2 =
| user-3 =
| user-4 =
| user-5 =
| notice =
}}

Examples

{{AllowedEditors
| any = yes
| user-1 = Jimmy
| user-2 = Ivan
| user-3 = Supergamer24
| notice = Please only edit the table!
}}

Generates: