Template:Cl
{{#if: |[[Chemistry#chem_{{#if: |{{{2}}}|{{{1}}}}}|{{{1}}}]]|}}
<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",
"type": "string",
"suggested": true
}
},
"description": "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)",
"format": "inline"
}
</templatedata>