Difference between revisions of "Template:Infobox heteropolypeptide"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>PrimeHunter
(make everything optional)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
  | above      = {{{heteropolymer}}}
+
  | above      = {{{heteropolymer|{{PAGENAMEBASE}}}}}
  | subheader  = ({{{polymer_type}}})
+
  | subheader  = {{#if:{{{polymer_type|}}}|({{{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 7: 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 29: Line 31:
 
|{{!}}-
 
|{{!}}-
 
{{!}} {{{subunit5}}} {{!!}} {{{gene5}}} {{!!}} {{{locus5}}}
 
{{!}} {{{subunit5}}} {{!!}} {{{gene5}}} {{!!}} {{{locus5}}}
 +
}}
 +
}}
 
}}
 
}}
 
}}
 
}}

Revision as of 12:05, 29 March 2020

Template:PAGENAMEBASE

[[Category:Infobox templates|Template:Remove first word]]

Template documentation

This template is for heteropolymeric proteins where subunit articles also exist.