Шаблон:Program: различия между версиями
Перейти к навигации
Перейти к поиску
imported>Senefi (Created simple template for displaying modular computer program names with a color coded background) |
imported>Senefi |
||
(не показаны 2 промежуточные версии этого же участника) | |||
Строка 4: | Строка 4: | ||
| Supply = color: #FFF; background: #5C4033; | | Supply = color: #FFF; background: #5C4033; | ||
| Science = color: #FFF; background: #DDA0DD; | | Science = color: #FFF; background: #DDA0DD; | ||
| | | #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}} | ||
Do not provide a category for {{Program|Name=Example}} | |||
|/datum/computer_file/program/category | |/datum/computer_file/program/category | ||
Only provide if program has a category. | |||
|}</noinclude> | |}</noinclude> |
Текущая версия от 22:45, 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:
Do not provide a category for Example |
/datum/computer_file/program/category
Only provide if program has a category. |