Template:TC: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
No edit summary
Aliser (talk | contribs)
added discounted param
Line 1: Line 1:
<includeonly><templatestyles src="Template:TC/styles.css"></templatestyles><!--
<includeonly><templatestyles src="Template:TC/styles.css"></templatestyles><!--


-->{{Labeled icon|class=tc-item|Telecrystal-circumcized.png|8px|{{#if:{{{1|}}}|{{{1}}}<nowiki> </nowiki>}}TC}}</includeonly><noinclude>
-->{{Labeled icon|class=tc-item|Telecrystal-circumcized.png|8px|{{#if:{{{1|}}}|{{{1}}}<nowiki> </nowiki>}}TC{{#if:{{{2|}}}|<nowiki> </nowiki>({{TC|{{{2}}}}} discounted)}}}}</includeonly><noinclude>
{{docs|bb=
{{docs|bb=
{{uses template styles}}
{{uses template styles}}
Line 14: Line 14:
"label": "Amount",
"label": "Amount",
"description": "Optional Telecrystal amount.",
"description": "Optional Telecrystal amount.",
"type": "number",
"suggested": true
},
"2": {
"label": "Discounted amount",
"description": "If the template refers to a price of an item in Syndicate Uplink and you want to also specify a discounted price — use this field.",
"type": "number",
"type": "number",
"suggested": true
"suggested": true
Line 19: Line 25:
},
},
"paramOrder": [
"paramOrder": [
"1"
"1",
"2"
],
],
"description": "Produces a telecrystal icon with a \"TC\" label and optional amount.",
"description": "Produces a telecrystal icon with a \"TC\" label and optional amount.",

Revision as of 05:47, 2 April 2025

Template documentation
view or edit this documentation about template documentation
Uses template styles
This template uses template styles found in:

Usage

{{tc|<amount>}}

Example

With no amount

{{tc}}

TC

With amount

{{tc|10}}

10 TC

With discounted amount

{{tc|10|5}}

10 TC (Template loop detected: Template:TC discounted)

Produces a telecrystal icon with a "TC" label and optional amount.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Amount1

Optional Telecrystal amount.

Numbersuggested
Discounted amount2

If the template refers to a price of an item in Syndicate Uplink and you want to also specify a discounted price — use this field.

Numbersuggested