Template:Rank View history

Revision as of 13:15, 26 January 2018 by Voludu2 (talk | contribs) (dt, difficult turn, URClose)

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.
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.
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.
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.
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.
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.
5 5 5.
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.
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 is 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. This ensures synchronization.

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 2021Select 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]]

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.