Template:Cl: Difference between revisions

From Space Station 14 Wiki
(Created page with "{{#if: {{{1|}}}|}}}|{{{2}}}|{{{1}}}}}|{{{1}}}|}} <noinclude> <templatedata> { "params": { "1": { "label": "Chemical Name", "description": "The name to be displayed in the link. If the ID is not defined, this will also be used for the ID but it is not recommended.", "type": "string", "required": true }, "2": { "label": "Chemical ID", "description": "The ID that is passed to the link", "example": "Dylovene",...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if: {{{1|}}}|[[User:UChemistry#chem_{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}|{{{1}}}]]|}}
{{#if: {{{1|}}}|[[Chemistry#chem_{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}|{{{1}}}]]|}}<noinclude>
 
<noinclude>
<templatedata>
<templatedata>
{
{

Latest revision as of 18:38, 9 November 2024

Links to the Chemistry page, easy! First argument is the displayed text. Second is the chemical ID (Or it uses the first if the second is empty)

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Chemical Name1

The name to be displayed in the link. If the ID is not defined, this will also be used for the ID but it is not recommended.

Stringrequired
Chemical ID2

The ID that is passed to the link

Example
Dylovene
Stringsuggested