Template:Rank View history

(Corrected Close UR addition per forum)
(cityrename - rank to change the name associated with a city ID (and thus displayed in all segment and place addresses that use it))
Tag: national guidance change
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch: {{lc:{{{1|}}} }}
{{#switch: {{lc:{{{1|}}} }}
  | am
  | am
  | area manager = 3<!--Minimum rank required to receive area manager status.-->
  | area manager = 3<!-- Minimum rank required to receive area manager status.-->
  | city = 4<!--Minimum rank to create a new city (not add an existing city to an object).-->
| change street name daily = 30<!-- Number of street names that can be changed per day when editor rank is less than {{Rank|Change Street Name Unlimited}}.-->
| change street name unlimited = 2<!-- Minimum rank to change an unlimited number of street names.-->
  | city = 4<!-- Minimum rank to create a new city (not add an existing city to an object).-->
| cityrename = CM <!-- Minimum rank in US to change the name associated with a City ID (and thus the name displayed on every segment and place for that CityID -->
  | urclose
  | urclose
  | close ur = 2<!-- Minimum rank required to close an Update Request not started by self. -->
  | close ur = 2<!-- Minimum rank required to close an Update Request not started by self. -->
Line 9: Line 12:
  | segment delete
  | segment delete
  | delete segment = 2 <!-- Minimum rank to delete a segment not created by self. -->  
  | delete segment = 2 <!-- Minimum rank to delete a segment not created by self. -->  
| delete segment daily = 10<!-- Number of segments that can be deleted per day when editor rank is less than {{Rank|Delete Segment Unlimited}}.-->
| delete segment unlimited = 3<!-- Minimum editor rank to delete an unlimited number of segments not created by self.-->
  | dt
  | dt
  | difficultturn
  | difficultturn
  | difficult turn = 3 <!-- Minimum rank to set a difficult turn -->
  | difficult turn = 3 <!-- Minimum rank to set a difficult turn -->
| headlights required = 4<!-- Minimum rank required to edit the "headlights required" field of a segment. -->
  | hn
  | hn
  | force = 2<!-- Minimum rank to be able to force house numbers.-->
  | force
| headlights required = 4<!-- Minimum rank required to edit the "headlights required" field of a segment. -->
| house number force = 2<!-- Minimum rank to be able to force house numbers.-->
  | jb
  | jb
  | junction box = 5<!--Minimum rank to create or edit a junction box.-->
  | junction box = 4<!-- Minimum rank to create or edit a junction box.-->
  | mte = 1<!--Minimum rank to create or edit an MTE.-->
  | mte = 1<!-- Minimum rank to create or edit an MTE.-->
  | placeautotrust = 2<!-- Minimum rank to not require multiple edits to become trusted.-->
  | placeautotrust = 2<!-- Minimum rank to not require multiple edits to become trusted.-->
  | placeedits = an unpublished number of<!-- Number of place edits required to be trusted.-->
  | placeedits = an unpublished number of<!-- Number of place edits required to be trusted.-->
Line 23: Line 29:
  | placeflag
  | placeflag
  | placeflagapproval = 2<!-- Minimum rank required to approve flagged content.-->
  | placeflagapproval = 2<!-- Minimum rank required to approve flagged content.-->
  | routing = 4<!--Minimum rank to change preferred or unpreferred routing on a segment.-->
  | routing = 4<!-- Minimum rank to change preferred or unpreferred routing on a segment.-->
| segmentdelete = 2 <!-- Minimum rank to delete a segment not created by self. -->  
  | server = 4<!-- Minimum rank to see the server selector on the main WME display.-->
  | server = 4<!--Minimum rank to see the server selector on the main WME display.-->
  | snapshot = 4<!-- Minimum rank to enter snapshot mode.-->
  | snapshot = 4<!--Minimum rank to enter snapshot mode.-->
  | #default = {{red|Select a rank parameter listed on the template doc page}}
  | #default = {{red|Select a rank parameter listed on the template doc page}}
}}<noinclude>
}}<noinclude>

Revision as of 17:52, 6 March 2019

Select a rank parameter listed on the template doc page

Documentation icon Template documentation[view] [edit] [history] [purge]

This template is a part of a suite of subpage templates (listed below) used to manage and maintain all the key minimum editor rank numbers for the various object types and permissions used in WME to control editing restrictions.

Usage

The primary use of this template is to provide the editor rank or value associated with a restricted feature. The simple use of this template is described here. The template has additional parameters intended for the use in the documentation management, but can be used in the rest of the Wazeopedia as needed. Those advanced parameters and usage are covered later in this document.

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.


Basic parameters

The table below indicates the basic parameters and the resulting returns. The parameters are case insensitive meaning you can enter any case in the template itself. They are listed here with variable case only to help clarify the terms used. In some cases there are multiple parameters available for the same editor rank restriction. Click the black arrows in the header to change the sort order of any column.

Parameter(s)
(case insensitive)
Result Description
3 3 3.
30 30 30.
2 2 2.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
2 2 2.
3 3 3.
2 2 2.
10 10 10.
3 3 3.
3 3 3.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
4 4 4.
2 2 2.
4 4 4.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
1 1 1.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
2 2 2.
4 4 4.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.


Advanced template parameters

The {{Rank}} template uses the following unnamed parameters:

  • Parameter 1 = One of the "Rank" parameters from the first table like city.
  • Parameter 2 = One of the following values:
    • |value or no parameter returns the value of the rank parameter from the table, typically a rank number like 4.
    • |parameters returns the list of all valid parameters for that entry, like city and city new.
    • |category returns the category description of the Rank entry used in the Map editor table, like City - Add new.
    • |description returns the description of the entry without punctuation or the value, like The minimum editor rank to create a new city (not add an existing city to an object)

Usage example:

{{rank | city | description}}

Returns:

4

Maintenance

Updates to the Editor Rank dataset are done directly in the {{Rank}} template. That one location feeds all sources of that information, so Wiki editors don't need to update multiple locations as rank values change. This ensures synchronization. However, if a new row corresponding to a new WME feature is added to the rank table, a new row should also be added to

Parameter(s)
(case insensitive)
Result Description
3 3 3.
30 30 30.
2 2 2.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
2 2 2.
3 3 3.
2 2 2.
10 10 10.
3 3 3.
3 3 3.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
4 4 4.
2 2 2.
4 4 4.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
1 1 1.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
2 2 2.
4 4 4.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page Select a rank parameter listed on the template doc page.
and {Rank/Table2}} in order for this feature to appear in the rank template's documentation.

Public table view

The list of parameters is useful for Wiki editors, but mostly useless for end users. For that reason, the public view of these parameters is better presented as categories with the descriptions including the value of the parameter. For those reasons, a second table was created for use on Editing restrictions#Rank table. Expand the table below to see the public view. Click on the black arrows in the header to change the sort order.

Rank Image feature

This template suite includes a shortcut to displaying the Rank icon associated with a feature restriction. The only required (unnamed) parameter is the editing restriction name from the Rank table. Optional parameters include:

  • |image= - The two image types available as |image=big (the default with background) or |image=small (no background).
  • |pixels= - Size of the image in pixels (do not include the px unit name). It will default to 60px.
  • |alt= - The alternate hover-over text to be displayed.

Usage example:

{{Rank/Image | headlights}}

Returns:

[[File:Profile LSelect a rank parameter listed on the template doc page.png|60px|]]

Usage example:

{{Rank/Image | headlights| image = small | pixels = 40 | alt = Rank {{Rank|headlights}} editor}}

Returns:

[[File:RSelect a rank parameter listed on the template doc page_wazer.png|40px|Rank Select a rank parameter listed on the template doc page editor]]

Rank message box feature

This template suite includes an associated "important" message box for displaying the description of the rank restriction in a Wazeopedia page that is discussing that feature where it would be helpful for an editor to know in advance that they can or cannot modify that feature. It would typically be used on a page that talks about the feature, but does not get into the details of the rank restrictions. The icon in the box is associated with the rank of the restriction.

The only required (unnamed) parameter is the editing restriction name from the Rank table. One optional parameter is:

  • |As of = Date - Uses the {{As of}} template to add a date to the beginning of the message.

Usage example:

{{Rank/Mbox | headlights}}

Returns:

Select a rank parameter listed on the template doc page is Select a rank parameter listed on the template doc page.
[[File:RSelect a rank parameter listed on the template doc page_wazer.png|40px|Rank Select a rank parameter listed on the template doc page Wazer]]

Usage example:

{{Rank/Mbox | house number force | As of = November 2021}}

Returns:

As of November 2021: 2 is 2.
Rank Select a rank parameter listed on the template doc page Wazer

Features without a minimum rank

The following features previously had a minimum rank associated with them, but do not anymore:

  • Cameras

Related templates

This template suite includes the following templates:

  • {{Rank}} - The primary template used to return values from the editor Rank database
  • {{Rank/Core}} - Translates the fields of the Rank dataset into variables used in the templates
  • {{Rank/Table1}} - View of parameters for Wiki editors
  • {{Rank/Table1Row}} - Simplification for creating table1
  • {{Rank/Table2}} - View of parameters for Map editors, as used in the editing restrictions page
  • {{Rank/Table2Row}} - Simplification for creating table2
  • {{Rank/Table2Description}} - Simplification for creating table2 descriptions
  • {{Rank/Image}} - Shortcut to producing associated Wazer images
  • {{Rank/Mbox}} - Creates an "important" message box noting the restriction to the rank for the named feature


These two templates were created to avoid recursive template loops in the template suite where the value inside the template is used for another entry in the template. When making updates to values in the {{Rank}} template, there are instructions for the editor about these two entries. These templates should not be called directly outside of the {{Rank}} template. Instead, just call the main template with {{Rank| delete segment unlimited}} or {{Rank| change street name unlimited}}.

  • {{Rank/dsu}} - Special template holding the "Delete Segment Unlimited" value used inside the template suite
  • {{Rank/csnu}} - Special template holding the "Change Street Name Unlimited" value used inside the template suite

See also

  • {{Drive expiration}} - Identifies the number of days before a drive expires from a user's editable area.
  • Minimum (disambiguation) - Lists all the elements that have a minimum value associated with them. It can be a distance or a rank.
The above documentation is transcluded from Template:Rank/doc.
Please add categories to the /doc subpage.
Subpages of this template.