Template:Antibody/TypeSwitch/Doc
From OpenWetWare
Jump to navigationJump to search
Template:Antibody/TypeSwitch (talk, backlinks, edit)
Purpose
This template is a helper template for Template:Antibody. It takes an extension type as a parameter and creates the wiki markup associated with that type. If you would like to add a new type, please add it to this switch statement. Do not add it to the Template:Antibody directly.
Usage
{{Antibody/TypeSwitch|type}}
- type - a type. For legal values, see documentation for Template:Antibody. In additional to the legal values, two special values exist to facilitate the coding of Template:Antibody:
_demomode_
- suppresses the addition of categories. The type name that should be displayed is passed as the second parameter, e.g.{{Antibody/TypeSwitch|_demomode_|tag}}
. Template:Antibody uses this as its value when the template is in demo mode so that it doesn't add category links to the host page._missing_
- adds the host page to Category:Antibodies with invalid or missing type but does not display a label. Template:Antibody uses this as its value when no type parameter was provided.