Difference between revisions of "Template:Area code box help"
blackwiki>Fuhghettaboutit m (moved Template:Area Code Box Help to Template:Area code box help: capitalization) |
blackwiki>Fuhghettaboutit m (fix descriptions) |
||
| Line 8: | Line 8: | ||
</noinclude> | </noinclude> | ||
| − | Usage: '''<nowiki>{{</nowiki>Area | + | Usage: '''<nowiki>{{</nowiki>Area code box ''n''|''State=|This=|N=|S=|E=|W=''|S1=|S2=}}''' |
| − | etc., where ''n'' is the number of border states/provinces the area code touches from 1 to 8, e.g. '''<nowiki>{{</nowiki>Area | + | etc., where ''n'' is the number of border states/provinces the area code touches from 1 to 8, e.g. '''<nowiki>{{</nowiki>Area code box 3|''State=|This=|N=|S=|E=|W=''|S1=|S2=''}}''' or '''<nowiki>{{</nowiki>Area code box 5|''State=|This=|N=|S=|E=|W=''|S1=|S2=''}}''' etc. and the values to give for each of the above arguments are the same as this template (explained below), and ''S1=,S2='' are the area code lists for border states/provinces to appear at the bottom, according to the box number. |
The parameters are used as follows: | The parameters are used as follows: | ||
| Line 17: | Line 17: | ||
:'''S1=XX''' for the first nearby state, province or Caribbean country to this area code, where XX is the two letter abbreviation or the full name of the country. | :'''S1=XX''' for the first nearby state, province or Caribbean country to this area code, where XX is the two letter abbreviation or the full name of the country. | ||
:'''S2=XX''' for the second nearby state, | :'''S2=XX''' for the second nearby state, | ||
| − | and so on for as many states as border this area code. The S1 or S2 etc. code should match the number of the particular ''' | + | and so on for as many states as border this area code. The S1 or S2 etc. code should match the number of the particular '''area code box''' template used, e.g. for '''<nowiki>{{</nowiki>Area code box 5}}''' you would want to code '''S1=XX''' through '''S5=XX'''. |
Optional Parameter: | Optional Parameter: | ||
:''Width='' to indicate the width of the page the macro should use; it defaults to 80% | :''Width='' to indicate the width of the page the macro should use; it defaults to 80% | ||
| Line 27: | Line 27: | ||
:The names to use for Caribbean countries are: '''American Samoa, Anguilla, Antigua and Barbuda, Bahamas, Barbados, Bermuda, British Virgin Islands, Cayman Islands, Dominica, Dominican Republic, Grenada, Guam, Jamaica, Montserrat, Northern Mariana Islands, Puerto Rico, Saint Kitts and Nevis, Saint Lucia, Saint Vincent and the Grenadines, Trinidad and Tobago, Turks and Caicos Islands, U.S. Virgin Islands'''. | :The names to use for Caribbean countries are: '''American Samoa, Anguilla, Antigua and Barbuda, Bahamas, Barbados, Bermuda, British Virgin Islands, Cayman Islands, Dominica, Dominican Republic, Grenada, Guam, Jamaica, Montserrat, Northern Mariana Islands, Puerto Rico, Saint Kitts and Nevis, Saint Lucia, Saint Vincent and the Grenadines, Trinidad and Tobago, Turks and Caicos Islands, U.S. Virgin Islands'''. | ||
| − | For an area code where all surrounding area codes are in the same state/province use '''<nowiki>{{</nowiki>[[Template:Area | + | For an area code where all surrounding area codes are in the same state/province use '''<nowiki>{{</nowiki>[[Template:Area code box 0|Area code box 0]]|State=|This=|N=|S=|E=|W=}}''' where you want the table.<noinclude> |
Note: This macro is used to give assistance in using an area code box template, and is called from the template to explain how to use the caller. [[Category:area code templates|*]][[ro:Format:Area Code Box Help]]</noinclude> | Note: This macro is used to give assistance in using an area code box template, and is called from the template to explain how to use the caller. [[Category:area code templates|*]][[ro:Format:Area Code Box Help]]</noinclude> | ||
Revision as of 09:58, 28 November 2009
- redirectTemplate:Multiple issues
|
Usage: {{Area code box n|State=|This=|N=|S=|E=|W=|S1=|S2=}}
etc., where n is the number of border states/provinces the area code touches from 1 to 8, e.g. {{Area code box 3|State=|This=|N=|S=|E=|W=|S1=|S2=}} or {{Area code box 5|State=|This=|N=|S=|E=|W=|S1=|S2=}} etc. and the values to give for each of the above arguments are the same as this template (explained below), and S1=,S2= are the area code lists for border states/provinces to appear at the bottom, according to the box number.
The parameters are used as follows:
- State is the 2-letter abbreviation to include the area code template for this state or Canadian province, or is the full name of the Caribbean country.
- This is this area code, used for the center box.
- N=, S=, E= and W= are the area codes (or oceans) that border this area code in those compass directions, and
- S1=XX for the first nearby state, province or Caribbean country to this area code, where XX is the two letter abbreviation or the full name of the country.
- S2=XX for the second nearby state,
and so on for as many states as border this area code. The S1 or S2 etc. code should match the number of the particular area code box template used, e.g. for {{Area code box 5}} you would want to code S1=XX through S5=XX. Optional Parameter:
- Width= to indicate the width of the page the macro should use; it defaults to 80%
Values for State or S1 through S8:
- The abbreviations for the Canadian Provinces are: AB BC MB NS NT NU ON PE QC SK YK YT (Recommendation: for NU and YT, as long as they are using the same area code as NT, use NT; for PE use NS)
- The abbreviations for the values for U.S. States are: AL AK AZ AR CA CO CT DE DC FL GA HA ID IL IN IA KS KY LA ME MD MA MI MN MS MO MT NE NV NH NJ NM NY NC ND OH OK OR PA RI SC SD TN TX UT VT VA WA WV WI WY
- The names to use for Caribbean countries are: American Samoa, Anguilla, Antigua and Barbuda, Bahamas, Barbados, Bermuda, British Virgin Islands, Cayman Islands, Dominica, Dominican Republic, Grenada, Guam, Jamaica, Montserrat, Northern Mariana Islands, Puerto Rico, Saint Kitts and Nevis, Saint Lucia, Saint Vincent and the Grenadines, Trinidad and Tobago, Turks and Caicos Islands, U.S. Virgin Islands.
For an area code where all surrounding area codes are in the same state/province use {{Area code box 0|State=|This=|N=|S=|E=|W=}} where you want the table.
Note: This macro is used to give assistance in using an area code box template, and is called from the template to explain how to use the caller.ro:Format:Area Code Box Help