Templat:Biochem reaction subunit
This template creates subunits of a biochemical reaction. For example, three instances of it were used to demonstrate the reaction of catalase.
The template is based on the <div> element, rather than tables, and this allows it to be more flexible in its display. For example, "2 × Hydrogen peroxide" is likely to wrap across multiple lines, but this doesn't force all the other headers to expand to match. Some of the formatting is dependent on the user's browser supporting the flexbox layout system; the vast majority do, but you will see slight differences in spacing on legacy browsers, although efforts have been made to provide a fallback.
The second example shows the same code, but constrained to 200 px wide; the content wraps, which is particularly useful for longer pathways and mobile devices.
Example code
sunting <div style="display: flex; flex-flow: row wrap; width:300px; max-width: 100%">
{{Biochem_reaction_subunit|compound=Hydrogen peroxide|image=Hydrogen-peroxide-3D-balls.png|n=2}}
{{Biochem_reaction_subunit|enzyme=Catalase|for_prod=2 H<sub>2</sub>O}}
{{Biochem_reaction_subunit|compound=Oxygen|image=Oxygen molecule.png}}
</div>
Parameters
suntingTemplateData untuk Biochem reaction subunit
Parameter | Keterangan | Jenis | Status | |
---|---|---|---|---|
Enzyme name | enzyme | The name of the enzyme. This may contain wikicode, but if it does or is otherwise not an article name, link must be specified. | Isi | disarankan |
Compound name | compound | The compound. This may contain wikicode, but if it does or is otherwise not an article name, link must be specified. | Isi | disarankan |
Title style | style | Custom styling for the title. | Tak dikenal | opsional |
Number of molecules | n | Number of molecules of the given reactant relative to the others. | Angka | opsional |
Custom title | title | The title of the box; causes link to be ignored. Not required; use compound, enzyme and/or link if possible. | Isi | opsional |
Title link | link | Clicking on the title takes you to this link. Overriden by title. | Nama halaman | opsional |
Forward minor substrate | for_subst | The forward minor substrate(s). Can be formatted.
| Isi | opsional |
Forward minor product | for_prod | The forward minor product(s). Can be formatted.
| Isi | opsional |
Reaction direction | direction | Either forward, reverse or reversible: the direction of reaction.
| Kata | opsional |
Reverse minor substrate | rev_subst | The reverse minor substrate(s). Can be formatted.
| Isi | opsional |
Reverse minor product | rev_prod | The reverse minor product(s). Can be formatted.
| Isi | opsional |
Image size | imagesize | The width of the compound or arrow image.
| Tak dikenal | disarankan |
Compound image | image | An image of the compound. Required for compounds. | Berkas | opsional |
Alternative content | other_content | If neither compound nor enzyme is specified, the content of the main part of the box.
| Isi | opsional |
Reverse enzyme | enzyme_reverse | Equivalent to enzyme but displayed below the arrow. | Isi | opsional |
Compound (lower) | compound_lower | Equivalent to compound but displayed below the arrow. | Isi | opsional |
Title (lower) | title_lower | Equivalent to custom title but displayed below the arrow. | Isi | opsional |
Link (lower) | link_lower | Equivalent to title link but displayed below the arrow. | Nama halaman | opsional |
Format: inline
This creates a subunit of a reaction: either chemical, or a reaction arrow with an enzyme and minor products or reactants. It is also possible to display custom content. It is designed to be placed inside a <div> tag with "display: flex; flex-flow: row wrap;", but it does work without flexbox.
Parameter | Keterangan | Jenis | Status | |
---|---|---|---|---|
Enzyme name | enzyme | The name of the enzyme. This may contain wikicode, but if it does or is otherwise not an article name, link must be specified. | Isi | disarankan |
Compound name | compound | The compound. This may contain wikicode, but if it does or is otherwise not an article name, link must be specified. | Isi | disarankan |
Title style | style | Custom styling for the title. | Tak dikenal | opsional |
Number of molecules | n | Number of molecules of the given reactant relative to the others. | Angka | opsional |
Custom title | title | The title of the box; causes link to be ignored. Not required; use compound, enzyme and/or link if possible. | Isi | opsional |
Title link | link | Clicking on the title takes you to this link. Overriden by title. | Nama halaman | opsional |
Forward minor substrate | for_subst | The forward minor substrate(s). Can be formatted.
| Isi | opsional |
Forward minor product | for_prod | The forward minor product(s). Can be formatted.
| Isi | opsional |
Reaction direction | direction | Either forward, reverse or reversible: the direction of reaction.
| Kata | opsional |
Reverse minor substrate | rev_subst | The reverse minor substrate(s). Can be formatted.
| Isi | opsional |
Reverse minor product | rev_prod | The reverse minor product(s). Can be formatted.
| Isi | opsional |
Image size | imagesize | The width of the compound or arrow image.
| Tak dikenal | disarankan |
Compound image | image | An image of the compound. Required for compounds. | Berkas | opsional |
Alternative content | other_content | If neither compound nor enzyme is specified, the content of the main part of the box.
| Isi | opsional |
Reverse enzyme | enzyme_reverse | Equivalent to enzyme but displayed below the arrow. | Isi | opsional |
Compound (lower) | compound_lower | Equivalent to compound but displayed below the arrow. | Isi | opsional |
Title (lower) | title_lower | Equivalent to custom title but displayed below the arrow. | Isi | opsional |
Link (lower) | link_lower | Equivalent to title link but displayed below the arrow. | Nama halaman | opsional |