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

imported>Senefi
(Changed other to default)
imported>Senefi
Нет описания правки
Строка 30: Строка 30:
|/datum/computer_file/program/category
|/datum/computer_file/program/category
Only provide if program has a category.
Only provide if program has a category.
|}</noinclude>
|}<templatedata>
{
"params": {
"Category": {
"description": "The category the program belongs to.",
"example": "Supply"
},
"Name": {
"description": "Name of the program.",
"example": "Emojipedia",
"type": "string",
"required": true
}
},
"paramOrder": [
"Name",
"Category"
],
"format": "inline"
}
</templatedata></noinclude>

Версия от 19:43, 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.

<templatedata>

{ "params": { "Category": { "description": "The category the program belongs to.", "example": "Supply" }, "Name": { "description": "Name of the program.", "example": "Emojipedia", "type": "string", "required": true } }, "paramOrder": [ "Name", "Category" ], "format": "inline" } </templatedata>