Template:Biochem reaction subunit: Difference between revisions

From WikiMD's Wellness Encyclopedia

CSV import
Tags: mobile edit mobile web edit
 
en>Arthurfragoso
dark mode fixes - text color
Line 3: Line 3:
Title displays if compound, enzyme, or title is set:
Title displays if compound, enzyme, or title is set:
-->{{#if:{{{compound|{{{enzyme|{{{title|}}}}}}}}}
-->{{#if:{{{compound|{{{enzyme|{{{title|}}}}}}}}}
|<div style="width: 100%; display: block; {{#if:{{{enzyme|}}}|background-color:#ffcccc;|{{#if:{{{compound|}}}|background-color:lightgreen;|}}}} {{{style|}}}">
|<div style="width: 100%; display: block; {{#if:{{{enzyme|}}}|background-color:light-dark(#ffcccc,#6a331d);|{{#if:{{{compound|}}}|background-color:light-dark(lightgreen,darkgreen);|}}}} {{{style|}}}">
<p style="margin: 0.1em 0.5em;">{{#if:{{{n|}}}|<strong>{{{n}}} × </strong>||}}{{#if:{{{title|}}}|{{{title}}}|[[{{#if:{{{link|}}}|{{{link}}}{{!}}|}}{{{compound|{{{enzyme}}}}}}]]}}</p>
<p style="margin: 0.1em 0.5em; color:var(--color-base)">{{#if:{{{n|}}}|<strong>{{{n}}} × </strong>||}}{{#if:{{{title|}}}|{{{title}}}|[[{{#if:{{{link|}}}|{{{link}}}{{!}}|}}{{{compound|{{{enzyme}}}}}}]]}}</p>
</div>}}<!--
</div>}}<!--


Line 18: Line 18:
The arrow, including auto-generated alt text:
The arrow, including auto-generated alt text:
--><div style="width: 100%; clear:both; overflow: hidden; height: {{#expr:{{#invoke:String|replace|{{{imagesize|75px}}}|px}} * (1-{{#if:{{{for_prod|}}}{{{for_subst|}}}|0|0.4}}-{{#if:{{{rev_prod|}}}{{{rev_subst|}}}|0|0.4}})}}px;"><!--
--><div style="width: 100%; clear:both; overflow: hidden; height: {{#expr:{{#invoke:String|replace|{{{imagesize|75px}}}|px}} * (1-{{#if:{{{for_prod|}}}{{{for_subst|}}}|0|0.4}}-{{#if:{{{rev_prod|}}}{{{rev_subst|}}}|0|0.4}})}}px;"><!--
--><div style="{{#if:{{{for_prod|}}}{{{for_subst|}}}||position: relative; bottom: {{#expr:{{#invoke:String|replace|{{{imagesize|75px}}}|px}} * 0.4}}px;}}">[[File:Biochem reaction arrow {{{direction|forward}}} {{#if:{{{for_subst|}}}|Y|N}}{{#if:{{{for_prod|}}}|Y|N}}{{#if:{{{rev_subst|}}}|Y|N}}{{#if:{{{rev_prod|}}}|Y|N}} horiz med.svg|{{{imagesize|75px}}}|{{Biochem reaction arrow alt text|{{{direction|forward}}}|{{{for_subst|}}}|{{{for_prod|}}}|{{{rev_subst|}}}|{{{rev_prod|}}}}}]]</div></div><!--
--><div style="{{#if:{{{for_prod|}}}{{{for_subst|}}}||position: relative; bottom: {{#expr:{{#invoke:String|replace|{{{imagesize|75px}}}|px}} * 0.4}}px;}}">[[File:Biochem reaction arrow {{{direction|forward}}} {{#if:{{{for_subst|}}}|Y|N}}{{#if:{{{for_prod|}}}|Y|N}}{{#if:{{{rev_subst|}}}|Y|N}}{{#if:{{{rev_prod|}}}|Y|N}} horiz med.svg|class=skin-invert-image|{{{imagesize|75px}}}|{{Biochem reaction arrow alt text|{{{direction|forward}}}|{{{for_subst|}}}|{{{for_prod|}}}|{{{rev_subst|}}}|{{{rev_prod|}}}}}]]</div></div><!--


The under-arrow content:
The under-arrow content:
Line 29: Line 29:
-->
-->
|<div style="margin: auto 0">{{#if:{{{compound|{{{compound_lower|}}}}}}
|<div style="margin: auto 0">{{#if:{{{compound|{{{compound_lower|}}}}}}
|{{#if:{{{n|}}}|<strong>{{{n}}}&nbsp;×&nbsp;</strong>}} [[File:{{{image}}}|{{{imagesize|100px}}}]]
|{{#if:{{{n|}}}|<strong>{{{n}}}&nbsp;×&nbsp;</strong>}} [[File:{{{image}}}|{{#if:{{{class|}}}|class={{{class}}}{{!}}|}}{{{imagesize|100px}}}]]
|{{{other_content|}}}}}</div>}}
|{{{other_content|}}}}}</div>}}
{{#if:{{{compound_lower|{{{enzyme_reverse|{{{title_lower|}}}}}}}}}
{{#if:{{{compound_lower|{{{enzyme_reverse|{{{title_lower|}}}}}}}}}
|<div style="width: 100%; display: block; {{#if:{{{enzyme_reverse|}}}|background-color:#ffcccc;|{{#if:{{{compound_lower|}}}|background-color:lightgreen;|}}}} {{{style|}}}">
|<div style="width: 100%; display: block; {{#if:{{{enzyme_reverse|}}}|background-color:light-dark(#ffcccc,#6a331d);|{{#if:{{{compound_lower|}}}|background-color:light-dark(lightgreen,darkgreen);|}}}} {{{style|}}}">
<p style="margin: 0.1em 0.5em;">{{#if:{{{n|}}}|<strong>{{{n}}} × </strong>||}}{{#if:{{{title_lower|}}}|{{{title_lower}}}|[[{{#if:{{{link_lower|}}}|{{{link_lower}}}{{!}}|}}{{{compound_lower|{{{enzyme_reverse}}}}}}]]}}</p>
<p style="margin: 0.1em 0.5em; color:var(--color-base)">{{#if:{{{n|}}}|<strong>{{{n}}} × </strong>||}}{{#if:{{{title_lower|}}}|{{{title_lower}}}|[[{{#if:{{{link_lower|}}}|{{{link_lower}}}{{!}}|}}{{{compound_lower|{{{enzyme_reverse}}}}}}]]}}</p>
</div>}}
</div>}}
</div></includeonly><noinclude>{{Documentation}}</noinclude>
</div></includeonly><noinclude>{{Documentation}}</noinclude>
{{no-index-template}}

Revision as of 06:35, 2 January 2025