Template:Contact Overview: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia (historical)
m (typo)
(rm spurious full stops (unlockYN drops one in.))
 
(56 intermediate revisions by 11 users not shown)
Line 1: Line 1:
'''{{PAGENAME}}''' is a City of {{#switch: {{lc:{{{City}}}}}
<includeonly>'''{{{Name|{{SUBPAGENAME}}}}}'''{{#if:{{{aka|}}}|, also known as '''{{{aka}}}''',}} is a <!--
| h = <includeonly>[[Category:CoH Contacts]]</includeonly> Heroes
-->{{#switch: {{lc:{{{City|}}}}}
| hv = <includeonly>[[Category:CoH Contacts]][[Category:CoV Contacts]]</includeonly> Heroes and City of Villains
    | h = hero[[Category:Hero Contacts]]
| v = <includeonly>[[Category:CoV Contacts]]</includeonly> Villains
    | vh
| #default = ???
    | hv = hero and villain[[Category:Hero Contacts]][[Category:Villain Contacts]]
}} contact located in {{#if: {{{Hood|}}}|the {{{Hood}}} neighborhood of}} [[{{{Zone}}}]] at [[coordinates]] {{nobr|({{{Coord}}})}}. {{#switch: {{lc|{{{OriginYN}}}}}
    | v  = villain[[Category:Villain Contacts]]
| n = <includeonly>[[Category:Co{{{City}}} Unspecified Origin Contacts]]</includeonly>
    | p  = Praetorian[[Category:Praetorian Contacts]]
| pb = {{PAGENAME}} is a Police Band contact. <includeonly>[[Category:Police Band Contact]]</includeonly>
    | vig = vigilante[[Category:Vigilante Contacts]]
| r = {{PAGENAME}} is a [[Power Respecification|Respecification]] Trial contact. <includeonly>[[Category:Respecification Trial Contact]]</includeonly>
    | r = rogue[[Category:Rogue Contacts]]
| s = {{PAGENAME}} is a Store contact. <includeonly>[[Category:Store Contacts]]</includeonly>
    | vhp
| t = {{PAGENAME}} is a Tailor contact. <includeonly>[[Category:Tailor Contacts]]</includeonly>
    | hvp = hero, villain, and Praetorian[[Category:Hero Contacts]][[Category:Villain Contacts]][[Category:Praetorian Contacts]]
| y = {{PAGENAME}} is a {{{Origin}}} origin contact. <includeonly>[[Category:Co{{{City}}} {{{Origin}}} Contacts]]</includeonly>
    | ph
| none
    | hp = hero and Praetorian resistance[[Category:Hero Contacts]][[Category:Praetorian Contacts]]
| #default =
    | pv
}} {{#if: {{{Level|}}} | {{{Pronoun}}} level range is {{{Level}}}. <includeonly>[[Category:Co{{{City}}} Contacts Level {{{Level}}}]]</includeonly>}} [[Category:{{{Zone}}} Contacts]]<noinclude>[[Category:Contact Overview Templates]]</noinclude>
    | vp = villain and Praetorian loyalist[[Category:Villain Contacts]][[Category:Praetorian Contacts]]
    | #default = ???
  }} contact in <!--
-->{{#if:{{{Hood|}}}|
    the {{{Hood}}} neighborhood of
  }} [[{{{Zone}}}]]<!--
-->{{#if:{{{x|}}}|
    {{#if:{{{y|}}}|
      {{#if:{{{z|}}}|
        &nbsp;at [[coordinates]] {{coords|{{{x}}}|{{{y}}}|{{{z}}}}}
      }}
    }}
  }}<!--
-->{{#if: {{{Zone2|}}}|
    &nbsp;and {{#if: {{{Hood2|}}}|
                the {{{Hood2}}} neighborhood of
              }} [[{{{Zone2}}}]]{{#if:{{{x2|}}}|
                                  {{#if:{{{y2|}}}|
                                    {{#if:{{{z2|}}}|
                                      &nbsp;at [[coordinates]] {{coords|{{{x2}}}|{{{y2}}}|{{{z2}}}}}
                                    }}
                                  }}
                                }}
  }} <!--
-->{{#switch: {{lc:{{{OriginYN|}}}}}
    | broker
    | b          = {{{Name|{{SUBPAGENAME}}}}} is a Broker contact[[Category:Broker Contacts]]
    | event
    | e          = {{{Name|{{SUBPAGENAME}}}}} is an Event contact[[Category:Special Event Contacts]]
    | police band
    | policeband
    | pb         = {{{Name|{{SUBPAGENAME}}}}} is a Police Band contact[[Category:Police Band Contact]]
    | respec
    | r           = {{{Name|{{SUBPAGENAME}}}}} is a [[Power Respecification|Respecification]] Trial contact[[Category:Respecification Trial Contact]]
    | store
    | s           = {{{Name|{{SUBPAGENAME}}}}} is a Store contact[[Category:Store Contacts]]
    | tailor
    | t           = {{{Name|{{SUBPAGENAME}}}}} is a Tailor contact[[Category:Tailor Contacts]]
    | task force
    | taskforce
    | tf          = {{{Name|{{SUBPAGENAME}}}}} is a [[Task Force]] contact
    | origin
    | y           = {{{Name|{{SUBPAGENAME}}}}} is a {{{Origin}}} origin contact<!--
        -->{{#switch:{{lc:{{{City|}}}}}
            | h  = [[Category:Hero {{{Origin}}} Contacts]]
            | v  = [[Category:Villain {{{Origin}}} Contacts]]
            | vh
            | hv = [[Category:Hero {{{Origin}}} Contacts]][[Category:Villain {{{Origin}}} Contacts]]
            | p = [[Category:Praetorian {{{Origin}}} Contacts]]
            | vig = [[Category:Vigilante {{{Origin}}} Contacts]]
            | r = [[Category:Rogue {{{Origin}}} Contacts]]
            | hvp
            | vhp = [[Category:Hero {{{Origin}}} Contacts]][[Category:Villain {{{Origin}}} Contacts]][[Category:Praetorian {{{Origin}}} Contacts]]
            | ph
            | hp = [[Category:Hero {{{Origin}}} Contacts]][[Category:Praetorian {{{Origin}}} Contacts]]
            | pv
            | vp = [[Category:Villain {{{Origin}}} Contacts]][[Category:Praetorian {{{Origin}}} Contacts]]
          }}
    | none
    | n
    | #default = {{#switch:{{lc:{{{City|}}}}}
                    | h = [[Category:Hero Unspecified Origin Contacts]]
                    | v = [[Category:Villain Unspecified Origin Contacts]]
                    | vh
                    | hv = [[Category:Hero Unspecified Origin Contacts]][[Category:Villain Unspecified Origin Contacts]]
                    | p =
                    | vig = [[Category:Vigilante Unspecified Origin Contacts]]
                    | r = [[Category:Rogue Unspecified Origin Contacts]]
                    | hvp
                    | vhp = [[Category:Hero Unspecified Origin Contacts]][[Category:Villain Unspecified Origin Contacts]]
                    | ph
                    | hp = [[Category:Hero Unspecified Origin Contacts]]
                    | pv
                    | vp = [[Category:Villain Unspecified Origin Contacts]]
                  }}
  }}<!--
-->{{#switch: {{lc:{{{Unlock|}}}}}
    | yes
    | y          = &nbsp;that requires unlocking[[Category:Unlockable Contacts]].
    | n
    | no
    | #default = .
  }}<!--
-->{{#if:{{{Level|}}}|<!--
  -->&nbsp;{{ucfirst:{{{Pronoun|}}}}} level range is {{{Level}}}.<!--
  -->{{#switch:{{lc:{{{City|}}}}}
        | h = [[Category:Hero Contacts Level {{{Level}}}]]
        | v = [[Category:Villain Contacts Level {{{Level}}}]]
        | vh
        | hv = [[Category:Hero Contacts Level {{{Level}}}]][[Category:Villain Contacts Level {{{Level}}}]]
        | p = [[Category:Praetorian Contacts Level {{{Level}}}]]
        | vig = [[Category:Vigilante Contacts Level {{{Level}}}]]
        | r = [[Category:Rogue Contacts Level {{{Level}}}]]
        | hvp
        | vhp = [[Category:Hero Contacts Level {{{Level}}}]][[Category:Villain Contacts Level {{{Level}}}]][[Category:Praetorian Contacts Level {{{Level}}}]]
        | ph
        | hp = [[Category:Hero Contacts Level {{{Level}}}]][[Category:Praetorian Contacts Level {{{Level}}}]]
        | pv
        | vp = [[Category:Villain Contacts Level {{{Level}}}]][[Category:Praetorian Contacts Level {{{Level}}}]]
      }}
  }}[[Category:{{{Zone}}} Contacts]]</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 04:06, 5 March 2021

[edit] [purge] Documentation

Usage

This template is used to generate the Overview text for a contact. Using it will also supply all relevant categories.

Parameters

aka
Provides a common alias for the Contact. (For example, Tyrant might use aka=Emperor Marcus Cole.)
City
Indicates which "alignment" the contact is for. Legal values:
  • h: hero
  • v: villain
  • hv or vh: hero and villain
  • p: Praetorian
  • hvp or vhp: hero, villain, and Praetorian
  • vig: vigilante
  • r: rogue
  • hp or ph: hero and Praetorian resistance
  • vp or pv = villain and Praetorian loyalist
Hood
Specifies which neighborhood the contact is in within their zone. Example: High Park.
Hood2
Specifies which neighborhood the contact is in within their second zone. Example: High Park.
Level
Specifies the level range of the contact. If this is provided, then Pronoun must also be provided. Example: 5-9.
Origin
Specifies the origin of the contact. This is only used when OriginYN is either "y" or "origin". Legal values:
  • Magic
  • Mutation
  • Natural
  • Science
  • Technology
OriginYN
Specifies the type of contact. (The parameter is named as thus for historical reasons.) Legal values:
  • broker: Broker
  • b: Broker
  • n: Contact will be categorized as an "Unspecified Origin Contact"
  • none: Contact will be categorized as an "Unspecified Origin Contact"
  • origin: Origin-specific, makes use of the Origin parameter
  • event: Event
  • e: Event
  • police band: Police Band
  • policeband: Police Band
  • pb: Police Band
  • r: Respecification
  • respec: Respecification
  • s: Store
  • store: Store
  • t: Tailor
  • tailor: Tailor
  • task force: Task Force
  • taskforce: Task Force
  • tf: Task Force
  • y: Origin-specific, makes use of the Origin parameter
If not supplied, the default is to use "none".
Unlock
Specifies if unlocking this contact is required for their services. Defaults to no. Legal values:
  • yes: requires unlocking
  • y: requires unlocking
  • no: blank
  • n: blank
Pronoun
Specifies the possessive pronoun to use when referring to the contact. This will usually be "his" or "her". It is only used in conjunction with Level.
x
Specifies the x coordinate of the contact within the zone. In order to display, all of x, y, and z must be provided.
x2
Specifies the x coordinate of the contact within the second zone. In order to display, all of x, y, and z must be provided.
y
Specifies the y coordinate of the contact within the zone. In order to display, all of x, y, and z must be provided.
y2
Specifies the y coordinate of the contact within the second zone. In order to display, all of x, y, and z must be provided.
z
Specifies the z coordinate of the contact within the zone. In order to display, all of x, y, and z must be provided.
z2
Specifies the z coordinate of the contact within the second zone. In order to display, all of x, y, and z must be provided.
Zone
Specifies which zone the contact is in. Examples: Kings Row, Mercy Island.
Zone2
Specifies the second zone the contact is in. Examples: Kings Row, Mercy Island.

Deprecated Parameters

This template has undergone extensive changes during its lifetime. As such, many pages still use parameters that are no longer in use. This section documents those parameters, just so there's less confusion. These parameters should not be used in the future, as they do not do anything.

HoodYN
Deprecated. This used to specify whether or not the neighborhood should be displayed. This is now determined based on the presence of the Hood parameter.
LevelYN
Deprecated. This used to specify whether or not level information should be displayed. This is now determined based on the presence of the Level parameter.
Name
Deprecated. This used to be used to specify the contact's name. It is now obtained via {{PAGENAME}}.

Template

The following can be copied and pasted into new contact articles to more easily make use of this template.

{{Contact Overview
|aka=
|City=
|Zone=
|x=
|y=
|z=
|Hood=
|OriginYN=
|Origin=
|Unlock=
|Level=
|Pronoun=
}}

See also