(fixed error) |
m (55 revisions imported from usa:Template:AM/Editor) |
||
(21 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
--> | {{#ifexpr: {{{2|}}} < 7 <!-- is rank under 7 | --> | {{#ifexpr: {{{2|}}} < 7 <!-- is rank under 7 | ||
--> | ({{{2|}}})<!-- display rank | --> | ({{{2|}}})<!-- display rank | ||
--> | --> | (?)<!-- rank is too high | ||
--> }}| (?)<!-- rank is too low | |||
-->}} | (?) <!-- error triggered | |||
-->}}}}<!-- 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 | ||
--> {{#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; <!-- | |||
-->background: {{#switch:{{padleft:|1|{{{gho|John D}}}}} | |||
|a|A|i|I|q|Q|y|Y|6 = #f16364 | |||
|b|B|j|J|r|R|z|Z|7 = #f58559 | |||
|c|C|k|K|s|S|0|8 = #f9a43e | |||
|d|D|l|L|t|T|1|9 = #e4c62e | |||
|e|E|m|M|u|U|2|0 = #67bf74 | |||
|f|F|n|N|v|V|3 = #59a2be | |||
|g|G|o|O|w|W|4 = #2093cd | |||
|h|H|p|P|x|X|5 = #ad62a7 | |||
|#59a2be}};<!-- choose color based on first character --> color: white; zoom: 1"><!-- | |||
--><div style="padding: 0.3em 0.7em; ">{{uc:{{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}}}}}<!-- display up to | -->|| {{AM/Badge|{{{badge1|}}}}}{{AM/Badge|{{{badge2}}}}}{{AM/Badge|{{{badge3}}}}}{{AM/Badge|{{{badge4}}}}}{{AM/Badge|{{{badge5}}}}}<!-- display up to five badges | ||
-->{{#if: {{{badge1|}}}|<br/>|}}<!-- insert a break if there was a badge; requires first badge always | -->{{#if: {{{badge1|}}}|<br/>|}}<!-- insert a break if there was a badge; requires first badge always | ||
-->{{{4|}}}<!-- display rest of comment text (if exists) below badge (if exists) | -->{{{4|}}}<!-- display rest of comment text (if exists) below badge (if exists) | ||
--></includeonly><noinclude>{{documentation}}</noinclude>< | --></includeonly><noinclude>{{documentation}}</noinclude><noinclude> This page uses its own documentation to simplify use by entry level editors. More complex documentation is covered on the [[Template:AM/doc]] page. | ||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Username", | |||
"description": "The username you use to login to Waze", | |||
"type": "wiki-user-name", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Rank", | |||
"description": "Your map editing level", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"3": { | |||
"label": "Area managed, or editing area", | |||
"description": "Assigned area of responsibility, or regular editing area on the map", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"4": { | |||
"label": "Comments", | |||
"description": "Open text field for anything appropriate related to Area Management.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"badge1": { | |||
"label": "Badge 1", | |||
"description": "First badge to be displayed for senior editors. The color of the row depends on this badge type. See AM/Badge", | |||
"type": "string" | |||
}, | |||
"gho": { | |||
"label": "GHO/Slack Display Name", | |||
"description": "The name others will see in external communication platforms, put here so other editors can match the name in chat to your username. When used it will display this name in gray on a new line below the username.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"pic": { | |||
"label": "Avatar filename", | |||
"description": "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).", | |||
"default": "File:Avatar USERNAME.png", | |||
"suggested": true, | |||
"type": "wiki-page-name" | |||
}, | |||
"badge2": { | |||
"label": "Badge 2", | |||
"description": "Second badge to be displayed for senior editors. See AM/Badge", | |||
"type": "string" | |||
}, | |||
"badge3": { | |||
"label": "Badge 3", | |||
"description": "Third badge to be displayed for senior editors. See AM/Badge", | |||
"type": "string" | |||
}, | |||
"badge4": { | |||
"label": "Badge 4", | |||
"description": "Fourth badge to be displayed for senior editors. See AM/Badge", | |||
"type": "string" | |||
}, | |||
"badge5": { | |||
"label": "Badge 5", | |||
"description": "Fifth badge to be displayed for senior editors. See AM/Badge", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "This template is part of a suite of templates that build an Area Manager table.\nIt is used for each individual editor to be listed in the table. It has options for username, rank, GHO/Slack display name, avatar, editing area, comments, and badges.", | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3", | |||
"4", | |||
"gho", | |||
"pic", | |||
"badge1", | |||
"badge2", | |||
"badge3", | |||
"badge4", | |||
"badge5" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 16:36, 14 May 2020
Please add categories to the /doc subpage. Subpages of this template. |
This page uses its own documentation to simplify use by entry level editors. More complex documentation is covered on the Template:AM/doc page.
This template is part of a suite of templates that build an Area Manager table. It is used for each individual editor to be listed in the table. It has options for username, rank, GHO/Slack display name, avatar, editing area, comments, and badges.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Username | 1 | The username you use to login to Waze | User | required |
Rank | 2 | Your map editing level | Number | suggested |
Area managed, or editing area | 3 | Assigned area of responsibility, or regular editing area on the map | String | suggested |
Comments | 4 | Open text field for anything appropriate related to Area Management. | String | suggested |
GHO/Slack Display Name | gho | The name others will see in external communication platforms, put here so other editors can match the name in chat to your username. When used it will display this name in gray on a new line below the username. | String | suggested |
Avatar filename | pic | 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).
| Page name | suggested |
Badge 1 | badge1 | First badge to be displayed for senior editors. The color of the row depends on this badge type. See AM/Badge | String | optional |
Badge 2 | badge2 | Second badge to be displayed for senior editors. See AM/Badge | String | optional |
Badge 3 | badge3 | Third badge to be displayed for senior editors. See AM/Badge | String | optional |
Badge 4 | badge4 | Fourth badge to be displayed for senior editors. See AM/Badge | String | optional |
Badge 5 | badge5 | Fifth badge to be displayed for senior editors. See AM/Badge | String | optional |