Changes

From Wazeopedia

Template:AM/doc

4,909 bytes added, 2 years ago
AM/Badge
The following subpages are used to build an Area Manager table.
* {{tl|AM/Top}} - Top of the template: controls column headings/widths and top colors; also automatically includes the Regional Coordinators.* {{tl|AM/6Country}} - Rank 6 (Country Managers) heading with optional State Name as first parameter* {{tl|AM/5State}} - Rank 5 (Statewide Area Managers) heading with optional State Name as first parameter* {{tl|AM/4Area}} - Rank 4 (Area Managers) heading* {{tl|AM/3AreaLink}} - Rank 3 (Area Managers) headingw/link to edit <small><code><nowiki>{{{{RootPage}}/AM/Editor/Area}}</nowiki></code></small>* {{tl|AM/Area2Link}} - Other Area manager table heading w/link to edit <small><code><nowiki>{{{{RootPage}}/AM/Editor/Area2}}</nowiki></code></small>
* {{tl|AM/Bottom}} - Bottom the the template
* {{tl|AM/Colspan}} - Variable used to span columns for headers
* {{tl|AM/Editor}} - Area/Country Manager template
* {{tl|AM/Badge}} - Badges for Area Manager table with color coding; details below
 
The automatic pagename elements in the table uses {{tl|RootPage2}} to ensure the correct pagename is determined, so the template must be built on a page that has a valid state or territory (or USA) as the base pagename.
 
Valid examples:
* USA/CommonState
* Arizona
* Arizona/Test
* Puerto Rico
 
=== AM/Top ===
 
When using the AM table to also display Google Hangouts avatars, and display names, you can modify the header row accordingly.
The {{Tl|AM/Top}} accepts two ''optional'' named parameters, which modify it to support GHO avatars and names.
*{{para|gho|yes}} = Will add a new line under "Username" with a Google Hangouts lookalike icon, and the default text "GHO Display Name".
*{{para|ghoName|DISPLAY TEXT}} = Can be used to change the default text shown next to the icon. This is only applied if {{para|gho|yes}} is also used.
 
For example {{tlx|AM/Top|gho{{=}}yes}} will produce:
{{AM/TopExample|gho=yes}}
{{AM/Editor|GoogleMapMakerKing|6|Statewide|Silicon Valley, Mountainview, New York|badge1=gc|gho=Royal GMM}}
{{AM/Bottom}}
 
For a custom text {{tlx|AM/Top|gho{{=}}yes|ghoName{{=}}Nickname}} will produce:
{{AM/TopExample|gho=yes|ghoName=Nickname}}
{{AM/Bottom}}
 
 
=== AM/Editor ===
The {{tlx|AM/Editor}} has four unnamed parameters in the following order:
* Editor name
* Editor rank
* Area Managed
* Comments
 
Any field (besides the Editor name) can be skipped, but the pipe character must be present.
 
There are two '''optional''' named parameters for displaying a Google Hangout avatar, and nickname.
* {{Para|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.
* {{Para|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.
 
Example:
 
{{Pre2|<nowiki>{{AM/Editor|WazingTime||Statewide|}}</nowiki>}}
Produces:
{{AM/TopExample}}
{{AM/Editor|WazingTime||Statewide|}}
{{AM/Bottom}}
 
==== AM/Badge ====
The {{tl|AM/Badge}} templates are added to the {{tl|AM/Editor}} template lines. A senior editor can also display one of the following [[Your_Rank_and_Points#Forum_badges|forum badges]] in the comments section (up to three) with the first badge providing the color background for the editor's entry. The named parameters ({{para|badge1}} {{para|badge2}} {{para|badge3}} {{para|badge4}} {{para|badge5}}) should follow the unnamed parameters (e.g. user name, rank, area managed, comment). Make the first badge that of the desired color for the user's background color.
 
:{{AM/Badge|GC}} GC or Global Champ
 
:{{AM/Badge|LC}} LC or Local Champ
 
:{{AM/Badge|RC}} RC or Regional Coordinator
 
:{{AM/Badge|CM}} CM or Country Manager
 
:{{AM/Badge|SM}} SM or State Manager
 
:{{AM/Badge|MGC}} MGC or Mentor Global Champ
 
:{{AM/Badge|MLC}} MLC or Mentor Local Champ
 
:{{AM/Badge|M}} M or Mentor
 
:{{AM/Badge|LAM}} LAM or Large Area Manager
 
:{{AM/Badge|MSM}} MSM or Multi State Manager
 
:{{AM/Badge|AM}} AM or Area Manager
 
 
:{{AM/Badge|MR}} ''MR or Map Raider - Note: this badge is not to be used in the AM tables, it is added to this template to support off-label use of this template suite for MapRaid! team list tables''
 
 
Example:
<small>{{Pre2|<nowiki>
{{AM/Editor|WazingTime|6|Statewide|Mostly Northern California|badge1=gc}}
{{AM/Editor|Wazzzzzz|6|Statewide|Mostly Southern California|badge1=mgc|badge2=gc}}
{{AM/Editor|BigCheeze|5|Statewide|Mostly Central California|badge1=rc|badge2=mlc|badge3=lc}}
{{AM/Editor|CountryGuru|5|Country Manager|East coast|badge1=cm}}
{{AM/Editor|StateMan|5|State Manager|Southern California|badge1=sm}}
{{AM/Editor|LargeArea|4|Large Area Manager|Southern California|badge1=lam}}
</nowiki>
}}</small>
Produces:
{{AM/TopExample}}
{{AM/Editor|WazingTime|6|Statewide|Mostly Northern California|badge1=gc}}
{{AM/Editor|Wazzzzzz|6|Statewide|Mostly Southern California|badge1=mgc|badge2=gc}}
{{AM/Editor|BigCheeze|5|Statewide|Mostly Central California|badge1=rc|badge2=mlc|badge3=lc}}
{{AM/Editor|CountryGuru|5|Country Manager|East coast|badge1=cm}}
{{AM/Editor|StateMan|5|State Manager|Southern California|badge1=sm}}
{{AM/Editor|LargeArea|4|Large Area Manager|Southern California|badge1=lam}}
{{AM/Bottom}}
== Usage ==
{{Pre2|<nowiki>
{{AM/Top}}
{{AM/6Country}}{{AM/Editor|kentsmith9|Northern 6|California|Bay Area resident}} {{AM/5}}{{AM/Editor|FastWazer|Bay Area|Live in Bay Areabadge1=gc}}
{{AM/4State}}{{AM/Editor|OtherWazer1FastWazer|Fremont5|Bay Area|Live in Bay Area}}
{{AM/3Area}}{{AM/Editor|OtherWazer1|4|Fremont|}}{{AM/Editor|NewWazer|3|San Jose|Some travel to Hawaii}}{{AM/Editor|AnotherWazer|3|San Francisco|Also Eureka}}
{{AM/Bottom}}</nowiki>
}}
== Parameters ==
The {{tlctlx|AM/6Country}} and {{tlctlx|AM/5State}} templates will automatically detect the page name and use that as the state to decide what region should be displayed. If the Area Manager template suite is used on a page with a name not covered in {{tl|StateForumRC/Data}}, a parameter can be sent with the State name (spelled out or abbreviated) as in {{tlctlx|AM/5State|California}}.
The {{tlc|AM/Editor}} has three parameters in the following order:
* Editor name
* Area Managed
* Comments
== Example table ==
{{AM/Top|MA}}<!-- MA added because state name is not in example pagename-->{{AM/6Country|MA}}<!-- MA added because state name is not in example pagename-- Insert Rank 6 Country Manager editors alphabetically below this line -->{{AM/Editor|AndypomsRank6Example|6|Statewide<br|Resident of state|badge1=rc|badge2=gc|badge3=mgc}}{{AM/>Mostly Western MAEditor|Rank6Too|6|Statewide|Longtime resident of state|Connecticut based USA Country Manager, covers Massachusetts as wellbadge1=gc}}{{AM/5State|MA}}<!-- MA added because state name is not in example pagename-- Insert Rank 5 State Manager editors alphabetically below this line -->{{AM/Editor|UserXRank5Example|5|Statewide|Resident of state|badge1=lc|badge2=mlc}}{{AM/4Editor|Rank5Too|5|Statewide|Working in state now|badge1=mlc|badge2=lc}}<!-- -- Insert Rank 4 editors alphabetically below this line -->{{AM/Editor|Scott_hCountryGuru|5|New Bedford AM, Boston to Worcester editorVacation here|Country Manager|East cost|MetroWest basedbadge1=cm}}{{AM/3Area}}<!-- -- Insert Rank 3 Area Manager editors alphabetically below this line -->{{AM/Editor|Djsmith89OtherWazer1|4|Named County|I also cover CityName|badge1=m}}{{AM/Editor|WazerHolic|4|Norwood AreaAnother County|Local I don't got to the area, grew up hereshow no stinking badges!}}{{AM/Editor|jasonm128AnotherWazer|Cambridge to Woburn and surrounding cities3|San Francisco|20+ years in Boston area. Also edit in Denver and northern NJEureka}}{{AM/Editor|Panther37NewWazer|3|Barnstable, Dukes and Nantucket Counties (Cape Cod and Islands)San Jose|Colorado Springs based. Grew up on Cape Cod. Manages Colorado Springs area alsoSome travel to Hawaii}}{{AM/Editor}}
<!-- Do not add editors below this line -->
{{AM/Bottom}}
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Templates for or part of the state template]]
[[Category:Templates]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>