Difference between revisions of "Template:Infobox heteropolypeptide"
Jump to navigation
Jump to search
Template documentation
imported>PrimeHunter (add {{Parameter names example}}) |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
− | + | | above = {{{heteropolymer|{{PAGENAMEBASE}}}}} | |
− | | above = {{{heteropolymer}}} | + | | subheader = {{#if:{{{polymer_type|}}}|({{{polymer_type}}})}} |
− | | subheader = ({{{polymer_type}}}) | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{width|}}}}}}|sizedefault=frameless|alt={{{alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{width|}}}}}}|sizedefault=frameless|alt={{{alt|}}}}} | ||
Line 8: | Line 7: | ||
| label1 = Protein type | | label1 = Protein type | ||
− | | data1 = {{{protein_type}}} | + | | data1 = {{{protein_type|}}} |
| label2 = Function | | label2 = Function | ||
− | | data2 = {{{function}}} | + | | data2 = {{{function|}}} |
| label3 = Cofactor(s) | | label3 = Cofactor(s) | ||
| data3 = {{{cofactors|}}} | | data3 = {{{cofactors|}}} | ||
| below = | | below = | ||
{{{!}} width="100%" | {{{!}} width="100%" | ||
− | {{!}}- style="background-color: #ccf; font-weight: bold;" | + | {{#ifexpr: {{{SubunitCount|0}}}>0 |
+ | |{{!}}- style="background-color: #ccf; font-weight: bold;" | ||
! Subunit name {{!!}} Gene {{!!}} Chromosomal locus | ! Subunit name {{!!}} Gene {{!!}} Chromosomal locus | ||
{{!}}- | {{!}}- | ||
{{!}} {{{subunit1}}} {{!!}} {{{gene1}}} {{!!}} {{{locus1}}} | {{!}} {{{subunit1}}} {{!!}} {{{gene1}}} {{!!}} {{{locus1}}} | ||
− | {{!}}- | + | {{#ifexpr: {{{SubunitCount|0}}}>1 |
+ | |{{!}}- | ||
{{!}} {{{subunit2}}} {{!!}} {{{gene2}}} {{!!}} {{{locus2}}} | {{!}} {{{subunit2}}} {{!!}} {{{gene2}}} {{!!}} {{{locus2}}} | ||
{{#ifexpr: {{{SubunitCount|0}}}>2 | {{#ifexpr: {{{SubunitCount|0}}}>2 | ||
Line 30: | Line 31: | ||
|{{!}}- | |{{!}}- | ||
{{!}} {{{subunit5}}} {{!!}} {{{gene5}}} {{!!}} {{{locus5}}} | {{!}} {{{subunit5}}} {{!!}} {{{gene5}}} {{!!}} {{{locus5}}} | ||
+ | }} | ||
+ | }} | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
{{!}}} | {{!}}} | ||
− | }}{{#if:{{{image|}}||<includeonly>[[Category:Protein heteropolymers]]</includeonly><!-- added by Pdeitiker in the first revision, kept through rewrite but functionality unclear -->}}<noinclude> | + | }}{{#if:{{{image|}}}||<includeonly>[[Category:Protein heteropolymers]]</includeonly><!-- added by Pdeitiker in the first revision, kept through rewrite but functionality unclear -->}}<noinclude> |
{{Documentation|content= | {{Documentation|content= | ||
− | This template is for heteropolymeric proteins where subunit articles also exist. | + | {{Parameter names example |heteropolymer| polymer_type| image| image_size| width| alt| image_source| protein_type| function| cofactors| SubunitCount=2| subunit1| gene1| locus1| subunit2| gene2| locus2}} |
+ | This template is for heteropolymeric proteins where subunit articles also exist. All parameters are optional except <code>subunit(n)</code>, <code>gene(n)</code>, <code>locus(n)</code> when <code>SubunitCount</code> is at least n. | ||
[[Category:Biology infobox templates]] | [[Category:Biology infobox templates]] | ||
}} | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 14:13, 29 March 2020
Template:PAGENAMEBASE | ||
---|---|---|
|
[[Category:Infobox templates|Template:Remove first word]]

Template:Parameter names example
This template is for heteropolymeric proteins where subunit articles also exist. All parameters are optional except subunit(n)
, gene(n)
, locus(n)
when SubunitCount
is at least n.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |