Template:AM/doc View history

(→‎AM/Editor: added 4th)
(→‎AM/Editor: wording change)
Line 27: Line 27:
* Editor name
* Editor name
* Editor rank
* Editor rank
* Area Managed
* Area Managed
* Comments
* Comments


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 should follow the unnamed parameters {{para|badge1}} {{para|badge2}} {{para|badge3}}. Change the order to change the color to a different badge.
Any field (besides the Editor name) can be skipped, but the pipe character must be present.
 
Example:
 
{{Pre2|<nowiki>{{AM/Editor|WazingTime||Statewide|}}</nowiki>}}
Produces:
{{AM/TopExample}}
{{AM/Editor|WazingTime||Statewide|}}
{{AM/Bottom}}
 
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 should follow the unnamed parameters {{para|badge1}} {{para|badge2}} {{para|badge3}}. Make the first badge that of the desired color for the user's background color.


:{{AM/Badge|GC}} GC or Global Champ
:{{AM/Badge|GC}} GC or Global Champ
Line 53: Line 62:
}}</small>
}}</small>
Produces:
Produces:
{| border="1" cellpadding="2"
{{AM/TopExample}}
{{AM/Editor|WazingTime|6|Statewide|Mostly Northern California|badge1=gc}}
{{AM/Editor|WazingTime|6|Statewide|Mostly Northern California|badge1=gc}}
{{AM/Editor|Wazzzzzz|6|Statewide|Mostly Southern California|badge1=mgc|badge2=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|BigCheeze|5|Statewide|Mostly Central California|badge1=rc|badge2=mlc|badge3=lc}}
|}
{{AM/Bottom}}


=== AM/Badge ===
=== AM/Badge ===

Revision as of 07:32, 11 July 2014

This is a documentation subpage for Template:AM.
It contains usage information, categories and other content that is not part of the original template page.

This template is a suite of subpage templates that build an Area Manager table.

Subpages

The following subpages are used to build an Area Manager table.

  • {{AM/Top}} - Top of the template: controls column headings/widths and top colors; also automatically includes the Regional Coordinators.
  • {{AM/Country}} - Country Managers heading with optional State Name as first parameter
  • {{AM/State}} - Statewide Area Managers heading with optional State Name as first parameter
  • {{AM/Area}} - Area Managers heading
  • {{AM/Bottom}} - Bottom the the template
  • {{AM/Colspan}} - Variable used to span columns for headers
  • {{AM/Editor}} - Area/Country Manager template
  • {{AM/Badge}} - Badges for Area Manager table with color coding; details below

The automatic pagename elements in the table uses {{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/Editor

The {{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.

Example:

{{AM/Editor|WazingTime||Statewide|}}

Produces:

Username Area Managed Comments
WazingTime [PM [Help]]  Statewide


A senior editor can also display one of the following 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 should follow the unnamed parameters |badge1= |badge2= |badge3=. Make the first badge that of the desired color for the user's background color.

GC or Global Champ
LC or Local Champ
RC or Regional Coordinator
MGC or Mentor Global Champ
MLC or Mentor Local Champ
M or Mentor

Example:

{{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}}

Produces:

Username Area Managed Comments
WazingTime(6) [PM [Help]]  Statewide
Mostly Northern California
Wazzzzzz(6) [PM [Help]]  Statewide
Mostly Southern California
BigCheeze(5) [PM [Help]]  Statewide
Mostly Central California


AM/Badge

The {{AM/Badge}} ...

Usage

Place the various templates in order using them like building blocks on the page.

{{AM/Top}}
{{AM/Country}}
{{AM/Editor|kentsmith9|6|Northern California|Bay Area resident}}

{{AM/State}}
{{AM/Editor|FastWazer|5|Bay Area|Live in Bay Area}}

{{AM/Area}}
{{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}}

(Note: The extra line breaks will appear in the table as blank extra whitespace rows in the row above the blank line. They are here for simplifying the table visually.)

Parameters

The {{AM/Country}} and {{AM/State}} 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 {{RC/Data}}, a parameter can be sent with the State name (spelled out or abbreviated) as in {{AM/State|California}}.


Example table

MA — Area, State, Country Managers, and Regional Coordinators
Regional Coordinator(s):
[RC] orbitc (PM [Help])  
[ARC1] JayWazin (PM [Help])  
[ARC2] SanzClew (PM [Help])  
Username Area Managed Comments
Country Managers (New England region)
(Click here to create initial Country and State sections of table)
Rank6Example(6) [PM [Help]]  Statewide
Resident of state
Rank6Too(6) [PM [Help]]  Statewide
Longtime resident of state
State Managers (New England region)
Rank5Example(5) [PM [Help]]  Statewide
Resident of state
Rank5Too(5) [PM [Help]]  Statewide
Working in state now
Area Managers
OtherWazer1(4) [PM [Help]]  Named County
I also cover CityName
WazerHolic(4) [PM [Help]]  Another County I don't got to show no stinking badges!
AnotherWazer(3) [PM [Help]]  San Francisco Also Eureka
NewWazer(3) [PM [Help]]  San Jose Some travel to Hawaii
UserName [PM [Help]]