Difference between revisions of "Template:GroupContact"

From ShadowHaven Reloaded
Jump to navigation Jump to search
Tag: visualeditor-wikitext
Tag: visualeditor-wikitext
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable sortable" style="border-style: solid; border-width: 10px"
<includeonly>|- style="vertical-align:middle;"
|-
|[[HasGroupContact::{{{Group}}}]]
!Contact
| [[Contact_Rules#Group_Contacts|{{{Position}}}]] [[Position{{PAGEID:{{{Group}}}}}::{{{Position}}}| ]]
!Connection
!Faction Rep
!Health
!Location
|-
|{{{Group}}}
|{{#ifexist: {{{Group}}} | [[Contact_Rules#Group_Contacts|{{#show: {{{Group}}} |?Connection |link=none }}]] | Group Contact Not Found. }}
|{{#ifexist: {{{Group}}} | [[Contact_Rules#Group_Contacts|{{#show: {{{Group}}} |?Connection |link=none }}]] | Group Contact Not Found. }}
| [[Contact_Rules#Group_Contacts|{{{FactionRep}}}]] [[Loyalty{{PAGEID:{{{Name}}}}}::{{{FactionRep}}}| ]]
| [[Contact_Rules#Group_Contacts|{{#expr:{{#ask: [[Category:Runs]][[hasRunner::{{PAGENAME}}]]{{#if: {{{DateJoined|}}}| [[HasDate::>{{{DateJoined}}}]]}}|format=count}}+1+{{{RepBonus|0}}}-{{{RepExpense|0}}}}}]]{{#set:FactionRep{{PAGEID:{{{Group}}}}}={{#expr:{{#ask: [[Category:Runs]][[hasRunner::{{PAGENAME}}]]{{#if: {{{DateJoined|}}}| [[HasDate::>{{{DateJoined}}}]]}}|format=count}}+1+{{{RepBonus|0}}}-{{{RepExpense|0}}}}}}}
|{{#ifexist: {{{Group}}} | [[Contact_Rules#Group_Contacts|{{#show: {{{Group}}} |?Health |link=none }}]] | Group Contact Not Found. }}
|{{#ifexist: {{{Group}}} | [[Contact_Rules#Group_Contacts|{{#show: {{{Group}}} |?Archetype |link=none }}]] | Please Create Group using [[Template:Faction]] }}
|{{#ifexist: {{{Group}}} | [[Contact_Rules#Group_Contacts|{{#show: {{{Group}}} |?Location |link=none }}]] | Group Contact Not Found. }}
|{{#ifexist: {{{Group}}} | [[Contact_Rules#Group_Contacts|{{#show: {{{Group}}} |?Health |link=none }}]] | If you do not have any group contacts }}
|}
|{{#ifexist: {{{Group}}} | [[Contact_Rules#Group_Contacts|{{#show: {{{Group}}} |?Location |link=none }}]] | Remove this template entirely. }}
<noinclude>
|-</includeonly><noinclude>
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 100%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
|-
|
==Usage==
This is intended to be used alongside [[Template:GroupContactTable]], please see that page for usage instructions.


==Useage==
[[Category:Templates]]
 
[[Category:Character Page Templates]]
This template is intended to be used standalone under the Organizations header of player character pages to automatically generate properly tagged group contact tables on character pages. It tags everything, and pulls information from your group contact page automatically, and allows the group contact page to pull information from your character page to update you on the list of characters who have the group contact.
|}</noinclude>
 
So, if you use it as:
 
<pre>
{{GroupContact|
|Group=NCL School for the Gifted
|FactionRep=4
|}}
 
 
}}</pre>
 
Your result will be:
 
{{GroupContact|
|Group=NCL School for the Gifted
|FactionRep=4
|}}
</noinclude>

Latest revision as of 03:48, 18 June 2020

Usage

This is intended to be used alongside Template:GroupContactTable, please see that page for usage instructions.