Anonymous
×
Create a new article
Write your page title here:
We currently have 55 articles on SR5 Foundry VTT System Wiki. Type your article name above or click on one of the titles below and start writing!



SR5 Foundry VTT System Wiki

Template:Tab: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
{{Documentation}}
{{Documentation}}
<includeonly><onlyinclude>{{#switch:{{lc:{{{1|}}}}}
<includeonly><onlyinclude>{{#vardefine:flip|{{ucfirst:{{lc:{{{1}}}}}}}}}{{#vardefine:flop|{{ucfirst:{{lc:{{{1}}}}}}}}}{{#switch:{{#var:flip}}}}
| actor = Actor's [[Character Actor#{{{2}}} Tab|{{{2}}} Tab]]
| Actor = Actor's [[Character Actor#{{#var:flop}} Tab|{{#var:flop}} Tab]]
| ic = IC's [[IC Actor#{{{2}}} Tab|{{{2}}} Tab]]
| Ic = IC's [[IC Actor#{{#var:flop}} Tab|{{#var:flop}} Tab]]
| character
| Character
| spirit
| Spirit
| sprite
| Sprite
| vehicle = {{ucfirst:{{lc:{{{1}}}}}}}'s [[{{ucfirst:{{lc:{{{1}}}}}}} Actor#{{{2}}} Tab|{{{2}}} Tab]]
| Vehicle = {{#var:flip}}'s [[{{#var:flip}} Actor#{{#var:flop}} Tab|{{#var:flop}} Tab]]
| #default =  
| #default =  
}}</onlyinclude></includeonly>
}}</onlyinclude></includeonly>

Revision as of 21:16, 14 December 2023

Template:Tab

Template:Tab is used to generate links to headings on articles for Actors and Items.

Usage

It accepts two mandatory string parameter.

  1. should be a type of Actor or Item, or Active Effect.
  2. should be a heading on that page, which will correspond to a tab.

It performs no validation or error checking.

Returns

{{Tab|Actor|Gear}} returns:

| Actor = Actor's Actor Tab | Ic = IC's Actor Tab | Character | Spirit | Sprite | Vehicle = Actor's Actor Tab | #default =

}}
{{Tab|Character|Matrix}} returns:

| Actor = Actor's Character Tab | Ic = IC's Character Tab | Character | Spirit | Sprite | Vehicle = Character's Character Tab | #default =

}}
{{Tab|vEhiCLe|Matrix}} returns:

| Actor = Actor's Vehicle Tab | Ic = IC's Vehicle Tab | Character | Spirit | Sprite | Vehicle = Vehicle's Vehicle Tab | #default =

}}
{{Tab|Weapon|Ammo}} returns:

| Actor = Actor's Weapon Tab | Ic = IC's Weapon Tab | Character | Spirit | Sprite | Vehicle = Weapon's Weapon Tab | #default =

}}
{{Tab|Active Effect|Apply-To}} returns:

| Actor = Actor's Active effect Tab | Ic = IC's Active effect Tab | Character | Spirit | Sprite | Vehicle = Active effect's Active effect Tab | #default =

}}

The documentation above was transcluded from Template:Tab/Documentation.