No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation}} | {{Documentation}} | ||
<includeonly><onlyinclude> | <includeonly><onlyinclude> | ||
<div style="padding-top: 10px;"> | |||
<div class="infobox {{#vardefineecho:theme|{{{theme|gray}}}}}" style="margin-right: 15px; margin-left: 10px; float:none; width:auto;">{{#ifeq:{{NAMESPACE}}|Template||[[Category:Contact|{{#var:sortkey}}]][[Category:{{SplitP|{{{2|{{#var:type}}}}}|out}} Contact|{{#var:sortkey}}]]}} | <div class="infobox {{#vardefineecho:theme|{{{theme|gray}}}}}" style="margin-right: 15px; margin-left: 10px; float:none; width:auto;">{{#ifeq:{{NAMESPACE}}|Template||[[Category:Contact|{{#var:sortkey}}]][[Category:{{SplitP|{{{2|{{#var:type}}}}}|out}} Contact|{{#var:sortkey}}]]}} | ||
<div class="infoicon {{#var:theme}}">[[File:icon-character.svg|50px|link=:Category:Contact]]</div> | <div class="infoicon {{#var:theme}}">[[File:icon-character.svg|50px|link=:Category:Contact]]</div> | ||
<div class="overbox {{#var:theme}}" style="width: 250px; height: 30px; font-family: monospace; font-weight: bolder; font-size:larger; | <div class="overbox {{#var:theme}}" style="width: 250px; height: 30px; font-family: monospace; font-weight: bolder; font-size:larger;"> | ||
'''{{PAGENAME}}'''</div>[[Contacts#{{#vardefineecho:type|{{SplitP|{{{2|{{#var:type}}}}}|out}}}}|{{{2|{{#var:type}}}}} Contact]] for [[{{{1|{{Required|2|Contact}}}}}]]. | '''{{PAGENAME}}'''</div>[[Contacts#{{#vardefineecho:type|{{SplitP|{{{2|{{#var:type}}}}}|out}}}}|{{{2|{{#var:type}}}}} Contact]] for [[{{{1|{{Required|2|Contact}}}}}]]. | ||
'''Location''': {{{3|{{Required|3|Contact}}}}}{{#if:{{{skills|}}}|<br />'''Skills''': {{{skills}}}}} | '''Location''': {{{3|{{Required|3|Contact}}}}}{{#if:{{{skills|}}}|<br />'''Skills''': {{{skills}}}}} | ||
| Line 18: | Line 19: | ||
|{{#if:{{{s|}}}|{{#vardefineecho:s|{{{s|{{#var:s}}}}}}}|0}} | |{{#if:{{{s|}}}|{{#vardefineecho:s|{{{s|{{#var:s}}}}}}}|0}} | ||
}} | }} | ||
{{TableEnd}}</div></onlyinclude></includeonly> | {{TableEnd}}</div></div></onlyinclude></includeonly> | ||
Revision as of 18:23, 9 October 2023
Template:Contact is used on Contact Character pages to identify the type and ratings of a Player Character's Contacts.
Usage
When first invoked on a character page, it has three numbered mandatory string parameters and multiple named mandatory integer parameters.
1must be the name of a Player Character.2must be the contact's type; it will be parsed byTemplate:SplitP, so parenthetical notations are ignored.3is the center of the contact's operations.cis the contact's Connection.eis the contact's Expertise.lis the contact's Loyalty.
It also has three optional parameters
s(default:0) is the contact's Size.skillsonly applies to Service and Legwork Contacts.name(default:{{PAGENAME}}) overides the text label on the infobox.
The second time it is invoked on a page, only l is required — all other parameters flow from the first instance.
Returns
{{Contact|Rook|Transportation (Aerospace)|Seattle Metroplex|skills=Things, Stuff|c=3|e=3|l=4|s=0}} returns:
Contact
Transportation (Aerospace) Contact for Rook.
Location: Seattle Metroplex
Skills: Things, Stuff
| Connection | Expertise | Loyalty | Size |
|---|---|---|---|
| 3 | 3 | 4 | 0 |
The documentation above was transcluded from Template:Contact/Documentation. [edit]
