Template:Rank/doc View history

(Initial doc page creation)
(Template doc update)
Line 12: Line 12:
Returns:
Returns:
:{{rank | closure}}
:{{rank | closure}}


And would be used in a statement like:<br />
And would be used in a statement like:<br />


<code>
Usage example:
<pre>
The minimum rank to create or edit a road closure is {{rank | closure}}.
The minimum rank to create or edit a road closure is {{rank | closure}}.
</code>
</pre>
 
Returns:
:The minimum rank to create or edit a road closure is {{rank | closure}}.
 
 
To describe a range using the template, simply change the phrase around the number.
 
Usage example:
<pre>
The editor must be rank {{rank | closure}} or higher to create or edit a road closure.
</pre>
 
Returns:
:The editor must be rank {{rank | closure}} or higher to create or edit a road closure.
 




== Parameters ==
== Parameters ==
closure = 3<!-- Minimum rank to create or edit a road closure including adding it to an MTE.-->
 
jb
The table below indicates the accepted parameters and the resulting returns. The parameters are case insensitive. They are listed here with variable case only to help clarify the terms used.
JB
 
junction box = 5<!--Minimum rank to create or edit a junction box.-->
{| Class="wikitable"
PlaceAutoTrust = 2<!-- Minimum rank to not require multiple edits to become trusted-->
|-
PlaceEdits - unpublished<!-- Number of place edits required to be trusted-->
! Parameter<br />{{small|(case insensitive)}}
PlaceExternal - 3<!-- Minimum rank to add an external provider to a place-->
! Result
MTE - 1<!--Minimum rank to create or edit an MTE-->
! Description
Routing - 4<!--Minimum rank to change preferred or unpreferred routing on a segment.-->
|-
City - 4<!--Minimum rank to create a new city (not add an existing city to an object).-->
| Closure
Snapshot - 4<!--Minimum rank to enter snapshot mode.-->
| style="text-align: center;" | {{Rank|closure}}
Server - 4<!--Minimum rank to see the server selector on the main WME display.-->
| Minimum [[editor rank]] to create or edit a road closure including adding it to an MTE.
|-
| JB<br />Junction box
| style="text-align: center;" | {{Rank|jb}}
| Minimum editor rank to create or edit a junction box.
|-
| PlaceAutoTrust
| style="text-align: center;" | {{Rank|placeautotrust}}
| Minimum editor rank not requiring multiple edits to become trusted.
|-
| PlaceEdits
| style="text-align: center;" | {{Rank|placeedits}}
| Number of place edits required to be trusted.
|-
| PlaceExternal
| style="text-align: center;" | {{Rank|placeexternal}}
| Minimum editor rank to add an external provider to a place.
|-
| MTE
| style="text-align: center;" | {{Rank|mte}}
| Minimum editor rank to create or edit an MTE.
|-
| Routing
| style="text-align: center;" | {{Rank|routing}}
| Minimum editor rank to change preferred or unpreferred routing on a segment.
|-
| City
| style="text-align: center;" | {{Rank|city}}
| Minimum editor rank to create a new city (not add an existing city to an object).
|-
| Snapshot
| style="text-align: center;" | {{Rank|snapshot}}
| Minimum editor rank to enter snapshot mode.
|-
| Server
| style="text-align: center;" | {{Rank|server}}
| Minimum editor rank to see the server selector on the main WME display.
|-
|}


<includeonly>
<includeonly>

Revision as of 17:33, 29 May 2017

This is a documentation subpage for Template:Rank.
It contains usage information, categories and other content that is not part of the original template page.

This template is built to maintain all the key minimum rank numbers for the various object types.

Usage

Usage example:

{{rank | closure}}

Returns:

3


And would be used in a statement like:

Usage example:

The minimum rank to create or edit a road closure is {{rank | closure}}.

Returns:

The minimum rank to create or edit a road closure is 3.


To describe a range using the template, simply change the phrase around the number.

Usage example:

The editor must be rank {{rank | closure}} or higher to create or edit a road closure.

Returns:

The editor must be rank 3 or higher to create or edit a road closure.


Parameters

The table below indicates the accepted parameters and the resulting returns. The parameters are case insensitive. They are listed here with variable case only to help clarify the terms used.

Parameter
(case insensitive)
Result Description
Closure 3 Minimum editor rank to create or edit a road closure including adding it to an MTE.
JB
Junction box
4 Minimum editor rank to create or edit a junction box.
PlaceAutoTrust 2 Minimum editor rank not requiring multiple edits to become trusted.
PlaceEdits currently unpublished Number of place edits required to be trusted.
PlaceExternal 2 Minimum editor rank to add an external provider to a place.
MTE 2 Minimum editor rank to create or edit an MTE.
Routing 4 Minimum editor rank to change preferred or unpreferred routing on a segment.
City 4 Minimum editor rank to create a new city (not add an existing city to an object).
Snapshot An invalid parameter was passed to the {{Rank}} template. Minimum editor rank to enter snapshot mode.
Server An invalid parameter was passed to the {{Rank}} template. Minimum editor rank to see the server selector on the main WME display.