Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:PC/Documentation: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
{{Template|PC}} eases use of {{Template|SplitLink}} within {{Template|Episode}}. It creates a semi-colon delimited list of the player characters.
{{Template|PC}} eases creating references to player cahracters.
==Usage==
==Usage==
It accepts four {{parameter|optional}}s, one for each player character: {{code|fraulien}}, {{code|garbo}}, {{code|liam}}, or {{code|shirayuri}}.
It has one {{Parameter|mandatory}} that controls which of two ways it is being used:
===List Mode===
If the first parameter is {{Code|s}}, it creates a semi-colon delimited list of the player character names, intended to be parsed by {{Template|SplitLink}} as used in {{Template|Episode}} and {{Template|Scene}}.
 
In those mode, it accepts four {{parameter|optional}}s, one for each player character: {{code|fraulien}}, {{code|garbo}}, {{code|liam}}, or {{code|shirayuri}}.


If any of the parameters is supplied with a null string, the character is removed from the returned list.
If any of the parameters is supplied with a null string, the character is removed from the returned list.
===Rename Mode===
==Return==
==Return==
===List Mode===
{{code|<nowiki>{{PC|s}}</nowiki>}} returns: {{Return|{{PC|s}}}}
{{code|<nowiki>{{PC|s}}</nowiki>}} returns: {{Return|{{PC|s}}}}
{{code|<nowiki>{{PC|s|fraulein=}}</nowiki>}} returns: {{Return|{{PC|s|fraulein=}}}}
{{code|<nowiki>{{PC|s|fraulein=}}</nowiki>}} returns: {{Return|{{PC|s|fraulein=}}}}
{{code|<nowiki>{{PC|s|garbo=|shirayuri=}}</nowiki>}} returns: {{Return|{{PC|s|garbo=|shirayuri=}}}}
{{code|<nowiki>{{PC|s|garbo=|shirayuri=}}</nowiki>}} returns: {{Return|{{PC|s|garbo=|shirayuri=}}}}
===Rename Mode===

Revision as of 15:52, 4 May 2023

Template:PC eases creating references to player cahracters.

Usage

It has one mandatory parameter that controls which of two ways it is being used:

List Mode

If the first parameter is s, it creates a semi-colon delimited list of the player character names, intended to be parsed by Template:SplitLink as used in Template:Episode and Template:Scene.

In those mode, it accepts four optional parameters, one for each player character: fraulien, garbo, liam, or shirayuri.

If any of the parameters is supplied with a null string, the character is removed from the returned list.

Rename Mode

Return

List Mode

{{PC|s}} returns:

Error! Template:PC has 1 mandatory parameters!

{{PC|s|fraulein=}} returns:

Error! Template:PC has 1 mandatory parameters!

{{PC|s|garbo=|shirayuri=}} returns:

Error! Template:PC has 1 mandatory parameters!

Rename Mode