m (add left margin to color tile) |
m (typo and increase size to 25 px for profile pic) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
-->}}}}<!-- close iferror and if | -->}}}}<!-- close iferror and if | ||
--> {{small|[{{PM|{{{1|UserName}}}|PM}}]}}<!-- build PM link with default | --> {{small|[{{PM|{{{1|UserName}}}|PM}}]}}<!-- build PM link with default | ||
-->{{#if:{{{gho|}}}|<!-- If GHO name is given add a new line for avatar and name --><br>{{#if:{{{pic|}}}|[[{{{pic}}}|30px]]<!-- If a pic link is provided use that at 30px --> | --> {{#switch: {{{2|}}} | ||
| 1 = [[File:Profile_L1.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]] | |||
| 3 = [[File:Profile_L3.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]] | |||
| 4 = [[File:Profile_L4.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]] | |||
| 5 = [[File:Profile_L5.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]] | |||
| 6 = [[File:Profile_L6.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]] | |||
| [[File:Profile_L2.png|25px|link=https://www.waze.com/user/editor/{{{1}}}]]}}<!-- add user profile link with image | |||
-->{{#if:{{{gho|}}}|<!-- If GHO name is given add a new line for avatar and name --><br>{{#if:{{{pic|}}}|<div style="float:left; margin-left: 1em;">[[{{{pic}}}|30px]]</div><!-- If a pic link is provided use that at 30px --> | |||
|<div style="float:left; margin-left: 1em; width: 2em; height: 2em; border-radius: 20px; <!-- | |<div style="float:left; margin-left: 1em; width: 2em; height: 2em; border-radius: 20px; <!-- | ||
-->background: {{#switch:{{padleft:|1|{{{gho|John D}}}}} | -->background: {{#switch:{{padleft:|1|{{{gho|John D}}}}} | ||
Line 24: | Line 31: | ||
|h|H|p|P|x|X|5 = #ad62a7 | |h|H|p|P|x|X|5 = #ad62a7 | ||
|#59a2be}};<!-- choose color based on first character --> color: white; zoom: 1"><!-- | |#59a2be}};<!-- choose color based on first character --> color: white; zoom: 1"><!-- | ||
--><div style="padding: 0.3em 0.7em; ">{{padleft:|1|{{{gho|John D}}}}}<!-- end if pic -->}}<!-- If no pic, generate color tile with initial -- | --><div style="padding: 0.3em 0.7em; ">{{padleft:|1|{{{gho|John D}}}}}</div></div><!-- end if pic -->}}<!-- If no pic, generate color tile with initial --><div style="float:left; padding: 0.3em; color: DimGray;"> {{{gho|John D}}}</div><!-- end if gho -->}}<!-- add GHO avatar and name if supplied | ||
-->|| {{{3|}}} <!-- Area covered | -->|| {{{3|}}} <!-- Area covered | ||
-->|| {{AM/Badge|{{{badge1|}}}}}{{AM/Badge|{{{badge2}}}}}{{AM/Badge|{{{badge3}}}}}{{AM/Badge|{{{badge4}}}}}{{AM/Badge|{{{badge5}}}}}<!-- display up to five badges | -->|| {{AM/Badge|{{{badge1|}}}}}{{AM/Badge|{{{badge2}}}}}{{AM/Badge|{{{badge3}}}}}{{AM/Badge|{{{badge4}}}}}{{AM/Badge|{{{badge5}}}}}<!-- display up to five badges |
Latest revision as of 17:05, 19 January 2016
This template is part of a suite of templates that build an Area Manager table.
Usage
The {{AM/Editor}}
template has four unnamed parameters in the following order:
- Editor name - Username used to login
- Editor rank - Map editing rank established based on overall points earned
- Area managed - Assigned area of responsibility on the map
- Comments - Open text field for anything appropriate related to Area Management. Also supports adding the {{AM/Badge}} templates held by senior editors.
Any field (besides the Editor name) can be skipped, but the pipe character(s) (|) must be present (four of them).
There are two optional named parameters for displaying a Google Hangout avatar, and nickname.
|gho=GHO DISPLAY NAME
- When used it will display this name in gray on a new line below the username. It can be placed after the comments or badge parameters.|pic=File:Avatar USERNAME.png
- When used will display the image you provide to the left of your GHO name. If not used a default Google style color tile with your initial will be shown instead.
- You will have to upload your avatar to the Waze wiki, and use the file name here. When uploading please use the filename format of
Avatar YOUR USERNAME.xxx
(xxx = file type extension).
- You will have to upload your avatar to the Waze wiki, and use the file name here. When uploading please use the filename format of
Example:
{{AM/Editor|WazingTime|6|Statewide|Native CA|badge1=gc}} {{AM/Editor|TimeWazer|4|Statewide|}} {{AM/Editor|Wazzzzzz|3|Statewide|Mostly Southern California|gho=John D}} {{AM/Editor|BigCheeze|||Mostly Central California|gho=Chee Z}}
Produces:
Username | Area Managed | Comments |
---|---|---|
WazingTime(6) [PM] | Statewide | Native CA |
TimeWazer(4) [PM] | Statewide | |
Wazzzzzz(3) [PM] J John D |
Statewide | Mostly Southern California |
BigCheeze [PM] Chee Z |
Mostly Central California |
NOTE: The image after the [PM] link is a link to the users' profile. It uses the respective image for that users' rank if listed, otherwise the rank 2 image is used.
Other Area Manager templates
This template will not work on a page on its own. It is always part of a larger array of templates or directly entered table wiki code. The Area Manager tables set up on the State pages are organized such that normal updates and changes for editors can be done without worrying about the other template elements.
If you want to learn about the other templates and to see the more advanced capabilities of {{AM/Editor}}
, see the documentation for the {{AM}} template.
The above documentation is transcluded from Template:AM/Editor/doc. Please add categories to the /doc subpage. Subpages of this template. |