Template:TC: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
No edit summary
Aliser (talk | contribs)
refactor; update formatting
 
(4 intermediate revisions by the same user not shown)
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>
-->{{#if: {{{1|}}}<!--
    -->|{{#if: {{{2|}}}<!--
        -->|{{Labeled icon|class=tc-item|Telecrystal-circumcized.png|8px|{{{1}}}/{{tooltip|{{{2}}}|Discounted}}<!---->}}<!--
        -->|{{Labeled icon|class=tc-item|Telecrystal-circumcized.png|8px|{{{1}}}}}<!--
    -->}}{{#var:icon_wikitext}} <!--
    -->|{{Labeled icon|class=tc-item|Telecrystal-circumcized.png|8px}}<!--
-->}} TC</includeonly><noinclude>
{{docs|bb=
{{docs|bb=
{{uses template styles}}
{{uses template styles}}
Line 7: Line 13:


[[Category:Item templates]]
[[Category:Item templates]]
[[Category:Template starter-kit]]
<templatedata>
<templatedata>
{
{
Line 13: Line 20:
"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 18: Line 31:
},
},
"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.",

Latest revision as of 08:54, 29 May 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

Without amount

{{tc}}

TC

With amount

{{tc|10}}

10 TC

With amount + discount

{{tc|10|5}}

10/5Discounted TC

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