Template:Radio channel: Difference between revisions
No edit summary |
(switched to variables and {{color}} for color codes) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{lc: {{{1}}}}} | <includeonly>{{#switch: {{lc: {{{1}}}}} | ||
|; | |; | ||
|common = | |common = | ||
{{#vardefine: radio_channel_label|{{colon}}; Common}} | |||
{{#vardefine: radio_channel_color|{{color|radio:common}}}} | |||
|y | |y | ||
|centcom = | |centcom = | ||
{{#vardefine: radio_channel_label|{{colon}}y CentCom}} | |||
{{#vardefine: radio_channel_color|{{color|radio:CentCom}}}} | |||
|c | |c | ||
|command = | |command = | ||
{{#vardefine: radio_channel_label|{{colon}}c Command}} | |||
{{#vardefine: radio_channel_color|{{color|radio:Command}}}} | |||
|e | |e | ||
|engineering = | |engineering = | ||
{{#vardefine: radio_channel_label|{{colon}}e Engineering}} | |||
{{#vardefine: radio_channel_color|{{color|radio:Engineering}}}} | |||
|m | |m | ||
|medical = | |medical = | ||
{{#vardefine: radio_channel_label|{{colon}}m Medical}} | |||
{{#vardefine: radio_channel_color|{{color|radio:Medical}}}} | |||
|n | |n | ||
|science = | |science = | ||
{{#vardefine: radio_channel_label|{{colon}}n Science}} | |||
{{#vardefine: radio_channel_color|{{color|radio:Science}}}} | |||
|s | |s | ||
|security = | |security = | ||
{{#vardefine: radio_channel_label|{{colon}}s Security}} | |||
{{#vardefine: radio_channel_color|{{color|radio:Security}}}} | |||
|v | |v | ||
|service = | |service = | ||
{{#vardefine: radio_channel_label|{{colon}}v Service}} | |||
{{#vardefine: radio_channel_color|{{color|radio:Service}}}} | |||
|u | |u | ||
|supply = | |supply = | ||
{{#vardefine: radio_channel_label|{{colon}}u Supply}} | |||
{{#vardefine: radio_channel_color|{{color|radio:Supply}}}} | |||
|t | |t | ||
|syndicate = | |syndicate = | ||
{{#vardefine: radio_channel_label|{{colon}}t Syndicate}} | |||
{{#vardefine: radio_channel_color|{{color|radio:Syndicate}}}} | |||
|handheld = | |handheld = | ||
{{#vardefine: radio_channel_label|{{;}} Handheld}} | |||
{{#vardefine: radio_channel_color|{{color|radio:Handheld}}}} | |||
|b | |b | ||
|binary = | |binary = | ||
{{#vardefine: radio_channel_label|{{colon}}b Binary}} | |||
{{#vardefine: radio_channel_color|{{color|radio:Binary}}}} | |||
|f | |f | ||
|freelance = | |freelance = | ||
{{#vardefine: radio_channel_label|{{colon}}f Freelance}} | |||
{{#vardefine: radio_channel_color|{{color|radio:Freelance}}}} | |||
|{{error|unknown channel{{colon}} "{{{1}}}"}}<!--/switch-->}}<!-- | |||
--><span style="color: {{#var:radio_channel_color}};"><!-- | |||
-->{{colored text|{{#var:radio_channel_color}}|{{#var:radio_channel_label}}}}<!-- | |||
--></span></includeonly><noinclude> | |||
{{has alias template|Rch}} | {{has alias template|Rch}} | ||
Revision as of 16:06, 9 August 2024
Based on Resources\Prototypes\radio_channels.yml
Examples
Radio channel | How it looks |
---|---|
; Common |
:; Common |
y cc centcom |
:y CentCom |
c cmd command |
:c Command |
e eng engineering |
:e Engineering |
m med medical |
:m Medical |
n sci science |
:n Science |
s sec security |
:s Security |
v service |
:v Service |
u sup supply |
:u Supply |
t synd syndicate |
:t Syndicate |
hh handheld |
unknown channel: "hh":t Syndicate |
b binary |
:b Binary |
f freelance |
:f Freelance |
Generates a label corresponding to a radio channel, like you would type in chat.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Channel code or name | 1 | Either a channel code (e.g. "e" for Engineering) or a channel name (e.g. "Engineering"). Supports any casing, lowercase included.
| Line | required |