Difference between revisions of "Template talk:Contact Overview"
m (→Formatting: added Police Band option) |
m (updated link) |
||
Line 1: | Line 1: | ||
== Formatting == | == Formatting == | ||
− | This is a new version of the old | + | This is a new version of the old '''Template:Contact CoH Overview''' (since deleted), much more complicated, but much more flexible. It can be used with either City of Heroes or City of Villians contacts, contacts that are in a neighborhood as well as those that are not. If the contact has a known origin or level range, that can be added in. |
It will automatically sort the contact into categories based upon Hero or Villian and Zone. It will also sort the contact into Origin, and Level range categories if those are available. | It will automatically sort the contact into categories based upon Hero or Villian and Zone. It will also sort the contact into Origin, and Level range categories if those are available. | ||
Line 14: | Line 14: | ||
* '''OriginYN''' = There are several options on this parameter. It must be one of the following letters, capitalized, or there will be unexpected results in the article | * '''OriginYN''' = There are several options on this parameter. It must be one of the following letters, capitalized, or there will be unexpected results in the article | ||
** '''Y''' There is a known origin for this contact, and it will be specified in the '''Origin''' parameter. | ** '''Y''' There is a known origin for this contact, and it will be specified in the '''Origin''' parameter. | ||
− | ** '''N''' This contact either doesn't have an origin, or the origin is unknown. This will place the contact in the [[:Category:Unspecified Origin Contacts|Unspecified Origin Contacts category]]. | + | ** '''N''' This contact either doesn't have an origin, or the origin is unknown. This will place the contact in the [[:Category:CoH Unspecified Origin Contacts|CoH Unspecified Origin Contacts category]] or [[:Category:CoV Unspecified Origin Contacts|CoV Unspecified Origin Contacts category]]. |
** '''PB''' This contact is a Police Band contact and will be noted as such in the overview text. It will also place the contact in the [[:Category:Police Band Contact|Police Band Contact category]]. | ** '''PB''' This contact is a Police Band contact and will be noted as such in the overview text. It will also place the contact in the [[:Category:Police Band Contact|Police Band Contact category]]. | ||
** '''R''' This contact is a Respecification Trial contact and will be noted as such in the overview text. It will also place the contact in the [[:Category:Respecification Trial Contact|Respecification Trial Contact category]]. | ** '''R''' This contact is a Respecification Trial contact and will be noted as such in the overview text. It will also place the contact in the [[:Category:Respecification Trial Contact|Respecification Trial Contact category]]. |
Revision as of 19:25, 19 October 2006
Formatting
This is a new version of the old Template:Contact CoH Overview (since deleted), much more complicated, but much more flexible. It can be used with either City of Heroes or City of Villians contacts, contacts that are in a neighborhood as well as those that are not. If the contact has a known origin or level range, that can be added in.
It will automatically sort the contact into categories based upon Hero or Villian and Zone. It will also sort the contact into Origin, and Level range categories if those are available.
This template, due to it's complexity, uses named arguments, unlike the old version. The arguments are:
- City = Either an H for hero, or a V for Villain. The letter must be capitalized. Any other item will cause unexpected results (most likey a {{Template:Contact CityX}} result, in which X is whatever the mistake was).
- HoodYN = Either a Y if the contact is located in a specific neighborhood, or an N if the contact is not in a specific neighborhood. The letter must be capitalized. Any other item will cause unexpected results.
- Hood = Name of the neighborhood the contact is in. This data is only used if HoodYN is Y and is otherwise ignored.
- Zone = Zone the contact is in. In the previous contact template, this needed to be a link. In this case, it must not be a link.
- Coord = The contacts coordinates.
- OriginYN = There are several options on this parameter. It must be one of the following letters, capitalized, or there will be unexpected results in the article
- Y There is a known origin for this contact, and it will be specified in the Origin parameter.
- N This contact either doesn't have an origin, or the origin is unknown. This will place the contact in the CoH Unspecified Origin Contacts category or CoV Unspecified Origin Contacts category.
- PB This contact is a Police Band contact and will be noted as such in the overview text. It will also place the contact in the Police Band Contact category.
- R This contact is a Respecification Trial contact and will be noted as such in the overview text. It will also place the contact in the Respecification Trial Contact category.
- S This contact is a Store contact and will be noted as such in the overview text. It will also place the contact in the Store Contacts category.
- T This contact is a Tailor and will be noted as such in the overview text. It will also place the contact in the Store Contacts category.
- Origin = The contact's origin. This should be one of the following: Magic, Mutation, Natural, Science, Technology. The first letter should be capitalized, but it may work if it is not. This data is only used if OriginYN is Y and is otherwise ignored.
- Pronoun = The pronoun that describes the contact of his, her or its. It needs to be lower case.
- LevelYN = Either a Y if the level range this contact deals with is known or an N if it is unknown. The letter must be capitalized. Any other item will cause unexpected results.
- Level = The level range that this contact works with. It should be in the format of NumberDashNumber (no spaces).
Base Template
Here is a base template that can be cut and pasted. Everything up to Pronoun should be filled out, items after Pronoun can be left as is (but not cut) until such time as that information becomes available.
{{Contact Overview|City=|Zone=|Coord=|Pronoun=|HoodYN=N|Hood=|OriginYN=N|Origin=|LevelYN=N|Level=}}
Example
The following entry:
{{Contact Overview|City=H|Zone=Talos Island|Coord=640, 30, 6280|Pronoun=her|HoodYN=Y|Hood=New Thebes|OriginYN=Y|Origin=Magic|LevelYN=Y|Level=20-24}} |
would produce the following overview text:
Andrea Mitchell is a City of Heroes contact located in the New Thebes neighborhood of Talos Island. Andrea Mitchell's coordinates are (640, 30, 6280), her origin is Magic with a level range of 20-24 |
and place Andrea in the following categories
Categories: CoH Contacts | Magic Contacts | Contacts Level 20-24 | Talos Island Contacts |
Behind the Curtain
This template uses several other templates to accomplish it's functions.
- Contact CityH/V: The template Contact CityH and Contact CityV are used to insert the word Hero or Villain into the sentence, as well as automatically add the contact to the proper category. The parameter City from the main template is used to select the proper template, using the code {{Contact City{{{City}}} }}. The C or V is added to Contact City to create the proper template name. Anything other than a C or V will create a non-existant template name, resulting in an error in the entry.
{{{Name}}} is a City of {{Contact City{{{City}}} }} contact located in{{Contact Hood{{{HoodYN}}}|Hood={{{Hood}}} }} [[{{{Zone}}}]]. {{{Name}}}'s coordinates are ({{{Coord}}}){{Contact Origin{{{OriginYN}}}|Pronoun={{{Pronoun}}}|Origin={{{Origin}}} }}{{Contact Level{{{LevelYN}}}|Level={{{Level}}} }} [[Category:{{{Zone}}} Contacts]]