Template:AM/doc View history

(updated for new table)
(fixed table)
Line 45: Line 45:
Example:
Example:
<small>{{Pre2|<nowiki>
<small>{{Pre2|<nowiki>
{{AM/Editor|WazingTime|Statewide|Mostly Northern California|badge1=gc}}
{{AM/Editor|WazingTime|6|Statewide|Mostly Northern California|badge1=gc}}
{{AM/Editor|Wazzzzzz|Statewide|Mostly Southern California|badge1=mgc|badge2=gc}}
{{AM/Editor|Wazzzzzz|6|Statewide|Mostly Southern California|badge1=mgc|badge2=gc}}
{{AM/Editor|BigCheeze|Statewide|Mostly Central California|badge1=rc|badge2=mlc|badge3=lc}}
{{AM/Editor|BigCheeze|5|Statewide|Mostly Central California|badge1=rc|badge2=mlc|badge3=lc}}
</nowiki>
</nowiki>
}}</small>
}}</small>
Produces:
Produces:
{| border="1" cellpadding="2"
{| border="1" cellpadding="2"
{{AM/Editor|WazingTime|Statewide|Mostly Northern California|badge1=gc}}
{{AM/Editor|WazingTime|6|Statewide|Mostly Northern California|badge1=gc}}
{{AM/Editor|Wazzzzzz|Statewide|Mostly Southern California|badge1=mgc|badge2=gc}}
{{AM/Editor|Wazzzzzz|6|Statewide|Mostly Southern California|badge1=mgc|badge2=gc}}
{{AM/Editor|BigCheeze|Statewide|Mostly Central California|badge1=rc|badge2=mlc|badge3=lc}}
{{AM/Editor|BigCheeze|5|Statewide|Mostly Central California|badge1=rc|badge2=mlc|badge3=lc}}
|}
|}


Line 65: Line 65:
{{Pre2|<nowiki>
{{Pre2|<nowiki>
{{AM/Top}}
{{AM/Top}}
{{AM/6}}
{{AM/Country}}
{{AM/Editor|kentsmith9|Northern California|Bay Area resident}}
{{AM/Editor|kentsmith9|6|Northern California|Bay Area resident}}


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


{{AM/4}}
{{AM/Area}}
{{AM/Editor|OtherWazer1|Fremont|}}
{{AM/Editor|OtherWazer1|4|Fremont|}}
 
{{AM/Editor|NewWazer|3|San Jose|Some travel to Hawaii}}
{{AM/3}}
{{AM/Editor|AnotherWazer|3|San Francisco|Also Eureka}}
{{AM/Editor|NewWazer|San Jose|Some travel to Hawaii}}
{{AM/Editor|AnotherWazer|San Francisco|Also Eureka}}
{{AM/Bottom}}</nowiki>
{{AM/Bottom}}</nowiki>
}}
}}
Line 82: Line 80:


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




== Example table ==
== Example table ==
{{AM/Top|MA}}<!-- MA added because state name is not in example pagename-->
{{AM/Top|MA}}<!-- MA added because state name is not in example pagename-->
{{AM/6|MA}}<!-- MA added because state name is not in example pagename
{{AM/Country|MA}}<!-- MA added because state name is not in example pagename
-- Insert Rank 6 editors alphabetically below this line -->
-- Insert Country Manager editors alphabetically below this line -->
{{AM/Editor|Rank6Example|Statewide|Resident of state|badge1=rc|badge2=gc|badge3=mgc}}
{{AM/Editor|Rank6Example|6|Statewide|Resident of state|badge1=rc|badge2=gc|badge3=mgc}}
{{AM/Editor|Rank6Too|Statewide|Longtime resident of state|badge1=gc}}
{{AM/Editor|Rank6Too|6|Statewide|Longtime resident of state|badge1=gc}}
{{AM/5|MA}}<!-- MA added because state name is not in example pagename
{{AM/State|MA}}<!-- MA added because state name is not in example pagename
-- Insert Rank 5 editors alphabetically below this line -->
-- Insert State Manager editors alphabetically below this line -->
{{AM/Editor|Rank5Example|Statewide|Resident of state|badge1=lc|badge2=mlc}}
{{AM/Editor|Rank5Example|5|Statewide|Resident of state|badge1=lc|badge2=mlc}}
{{AM/Editor|Rank5Too|Statewide|Working in state now|badge1=mlc|badge2=lc}}
{{AM/Editor|Rank5Too|5|Statewide|Working in state now|badge1=mlc|badge2=lc}}
{{AM/4}}<!--  
{{AM/Area}}<!--  
-- Insert Rank 4 editors alphabetically below this line -->
-- Insert Area Manager editors alphabetically below this line -->
{{AM/Editor|OtherWazer1|Named County|I also cover CityName|badge1=m}}
{{AM/Editor|OtherWazer1|4|Named County|I also cover CityName|badge1=m}}
{{AM/Editor|WazerHolic|Another County|I don't got to show no stinking badges!}}
{{AM/Editor|WazerHolic|4|Another County|I don't got to show no stinking badges!}}
{{AM/3}}<!--
{{AM/Editor|AnotherWazer|3|San Francisco|Also Eureka}}
-- Insert Rank 3 editors alphabetically below this line -->
{{AM/Editor|NewWazer|3|San Jose|Some travel to Hawaii}}
{{AM/Editor|AnotherWazer|San Francisco|Also Eureka}}
{{AM/Editor|NewWazer|San Jose|Some travel to Hawaii}}
{{AM/Editor}}
{{AM/Editor}}
<!-- Do not add editors below this line -->
<!-- Do not add editors below this line -->

Revision as of 05:54, 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 Template:Tlc has three unnamed parameters in the following order:

  • Editor name
  • Area Managed
  • Comments

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=. Change the order to change the color to a different badge.

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:

WazingTime(6) [PM]  Statewide
Mostly Northern California
Wazzzzzz(6) [PM]  Statewide
Mostly Southern California
BigCheeze(5) [PM]  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 Template:Tlc and Template:Tlc 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 Template:Tlc.


Example table

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