Шаблон:Program: различия между версиями

Материал из MassMeta
Перейти к навигации Перейти к поиску
imported>Senefi
(Created simple template for displaying modular computer program names with a color coded background)
 
imported>Senefi
(Changed other to default)
Строка 4: Строка 4:
| Supply = color: #FFF; background: #5C4033;
| Supply = color: #FFF; background: #5C4033;
| Science = color: #FFF; background: #DDA0DD;
| Science = color: #FFF; background: #DDA0DD;
| Other = color: #FFF; background: #333343;
| #default = color: #FFF; background: #333343;
}} font-weight: bold; padding: 2px 3px; border-radius: 3px; ">{{{Name}}}</span></includeonly>
}} font-weight: bold; padding: 2px 3px; border-radius: 3px; ">{{{Name}}}</span></includeonly>
<noinclude>This template allows you to display modular computer programs with a color coded background
<noinclude>This template allows you to display modular computer programs with a color coded background
Строка 27: Строка 27:
*Supply results in {{Program|Name=Example|Category=Supply}}
*Supply results in {{Program|Name=Example|Category=Supply}}
*Science results in {{Program|Name=Example|Category=Science}}
*Science results in {{Program|Name=Example|Category=Science}}
*Other results in {{Program|Name=Example|Category=Other}}
Do not provide a category for {{Program|Name=Example}}
|/datum/computer_file/program/category
|/datum/computer_file/program/category
Default for all programs is Other.
Only provide if program has a category.
|}</noinclude>
|}</noinclude>

Версия от 22:41, 6 июня 2023

This template allows you to display modular computer programs with a color coded background

Usage

{{Program|Name=NT IRN|Category=Supply}}

Gives the output: NT IRN

Variables

Name Parameter DM Variable
Name text string /datum/computer_file_program/filedesc

This variable is unique to each program and is it's display name.

Category one of the following text strings:
  • Crew results in Example
  • Engineering results in Example
  • Supply results in Example
  • Science results in Example

Do not provide a category for Example

/datum/computer_file/program/category

Only provide if program has a category.