Template:Radio channel: Difference between revisions

From Space Station 14 Wiki
No edit summary
(switched to variables and {{color}} for color codes)
Line 1: Line 1:
<includeonly>{{#switch: {{lc: {{{1}}}}}
<includeonly>{{#switch: {{lc: {{{1}}}}}
|;
|;
|common = <span style="color: #32cd32;">:; Common</span>
|common =  
{{#vardefine: radio_channel_label|{{colon}}; Common}}
{{#vardefine: radio_channel_color|{{color|radio:common}}}}


|y
|y
|centcom = <span style="color: #2681a5;">:y CentCom</span>
|centcom =  
{{#vardefine: radio_channel_label|{{colon}}y CentCom}}
{{#vardefine: radio_channel_color|{{color|radio:CentCom}}}}


|c
|c
|command = <span style="color: #fcdf03;">:c Command</span>
|command =  
{{#vardefine: radio_channel_label|{{colon}}c Command}}
{{#vardefine: radio_channel_color|{{color|radio:Command}}}}


|e
|e
|engineering = <span style="color: #f37746;">:e Engineering</span>
|engineering =  
{{#vardefine: radio_channel_label|{{colon}}e Engineering}}
{{#vardefine: radio_channel_color|{{color|radio:Engineering}}}}


|m
|m
|medical = <span style="color: #57b8f0;">:m Medical</span>
|medical =  
{{#vardefine: radio_channel_label|{{colon}}m Medical}}
{{#vardefine: radio_channel_color|{{color|radio:Medical}}}}


|n
|n
|science = <span style="color: #c68cfa;">:n Science</span>
|science =  
{{#vardefine: radio_channel_label|{{colon}}n Science}}
{{#vardefine: radio_channel_color|{{color|radio:Science}}}}


|s
|s
|security = <span style="color: #dd3535;">:s Security</span>
|security =  
{{#vardefine: radio_channel_label|{{colon}}s Security}}
{{#vardefine: radio_channel_color|{{color|radio:Security}}}}


|v
|v
|service = <span style="color: #6ca729;">:v Service</span>
|service =  
 
{{#vardefine: radio_channel_label|{{colon}}v Service}}
{{#vardefine: radio_channel_color|{{color|radio:Service}}}}
|u
|u
|supply = <span style="color: #b88646;">:u Supply</span>
|supply =  
{{#vardefine: radio_channel_label|{{colon}}u Supply}}
{{#vardefine: radio_channel_color|{{color|radio:Supply}}}}


|t
|t
|syndicate = <span style="color: #8f4a4b;">:t Syndicate</span>
|syndicate =  
{{#vardefine: radio_channel_label|{{colon}}t Syndicate}}
{{#vardefine: radio_channel_color|{{color|radio:Syndicate}}}}


|handheld = <span style="color: #d39f01;">; Handheld</span>
|handheld =  
{{#vardefine: radio_channel_label|{{;}} Handheld}}
{{#vardefine: radio_channel_color|{{color|radio:Handheld}}}}


|b
|b
|binary = <span style="color: #2ed2fd;">:b Binary</span>
|binary =  
{{#vardefine: radio_channel_label|{{colon}}b Binary}}
{{#vardefine: radio_channel_color|{{color|radio:Binary}}}}


|f
|f
|freelance = <span style="color: #f6ce64;">:f Freelance</span>
|freelance =  
{{#vardefine: radio_channel_label|{{colon}}f Freelance}}
{{#vardefine: radio_channel_color|{{color|radio:Freelance}}}}
 
|{{error|unknown channel{{colon}} "{{{1}}}"}}<!--/switch-->}}<!--


|{{error|unknown channel{{colon}} {{{1}}}}}
--><span style="color: {{#var:radio_channel_color}};"><!--
}}</includeonly><noinclude>
    -->{{colored text|{{#var:radio_channel_color}}|{{#var:radio_channel_label}}}}<!--
{{refactor on new extensions arrival|switch to colored text; use variables}}
--></span></includeonly><noinclude>
{{has alias template|Rch}}
{{has alias template|Rch}}



Revision as of 16:06, 9 August 2024

Has an alias
This template has an alternative name:
Template documentation
view or edit this documentation about template documentation

Based on Resources\Prototypes\radio_channels.yml

Examples

Radio channel How it looks
;
Common

:; Common
:; Common

y
cc
centcom

:y CentCom
unknown channel: "cc":y CentCom
:y CentCom

c
cmd
command

:c Command
unknown channel: "cmd":c Command
:c Command

e
eng
engineering

:e Engineering
unknown channel: "eng":e Engineering
:e Engineering

m
med
medical

:m Medical
unknown channel: "med":m Medical
:m Medical

n
sci
science

:n Science
unknown channel: "sci":n Science
:n Science

s
sec
security

:s Security
unknown channel: "sec":s Security
:s Security

v
service

:v Service
:v Service

u
sup
supply

:u Supply
unknown channel: "sup":u Supply
:u Supply

t
synd
syndicate

:t Syndicate
unknown channel: "synd":t Syndicate
:t Syndicate

hh
handheld

unknown channel: "hh":t Syndicate
; Handheld

b
binary

:b Binary
:b Binary

f
freelance

:f Freelance
:f Freelance

Generates a label corresponding to a radio channel, like you would type in chat.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Channel code or name1

Either a channel code (e.g. "e" for Engineering) or a channel name (e.g. "Engineering"). Supports any casing, lowercase included.

Suggested values
; Common y CentCom c Command e Engineering m Medical n Science s Security v Service u Supply t Syndicate Handheld b Binary f Freelance
Linerequired