Difference between revisions of "Template:Infobox heteropolypeptide"

From blackwiki
Jump to navigation Jump to search
imported>Zackmann08
(tagging)
imported>TheDragonFire
(Rewrite to use {{Template:Infobox}})
Line 1: Line 1:
{| id="HeteropolypeptideInfoBox" class="infobox"  style="background:#f6f0e8; margin: 0 0 0.5em 1em; width:294px; border:3px #e7dcc3 solid;"
+
{{Infobox
  {{#if: {{{SubunitCount|}}}  
+
| name      = Heteropolypeptide
    |{{#ifexpr: {{{SubunitCount}}}>1
+
  | above      = {{{heteropolymer}}}
      |{{!}}- style="background-color:white"
+
| subheader  = ({{{polymer_type}}})
      {{!}} style="text-align:center;" colspan="3" {{!}} <div style="font-size:medium; line-height:120%;">{{{heteropolymer}}} </div>({{{polymer_type}}})
+
 
      {{#if: {{{image|}}}
+
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{width|}}}}}}|sizedefault=frameless|alt={{{alt|}}}}}
        |{{!}}-
+
| caption    = {{{image_source|}}}
        {{!}} style="background:white;text-align:center;" colspan="3" {{!}} [[Image:{{{image}}}{{!}}274px]]
+
 
        {{!}}- style="background-color:white"
+
| label1 = Protein type
        {{#if: {{{image_source|}}}  
+
|  data1 = {{{protein_type}}}
          |{{!}} style="text-align:center;" colspan="3" {{!}} <sup>'''{{{image_source}}}'''</sup>
+
| label2 = Function
          |{{!}} style="text-align:center;" colspan="3" {{!}} <sup>'''{{{heteropolymer}}} '''</sup>
+
|  data2 = {{{function}}}
        }}
+
| label3 = Cofactor(s)
        |<includeonly>[[Category:Protein heteropolymers]]</includeonly>
+
|  data3 = {{{cofactors|}}}
      }}
+
  | below  =
      {{#if: {{{protein_type|}}}
+
{{{!}} width="100%"
        |{{!}}-
+
{{!}}- style="background-color: #ccf; font-weight: bold;"
        {{!}} style="text-align:center;" colspan="3" {{!}} <span style="color:#f6f0e8"><sup>−</sup></span>
+
! Subunit name {{!!}} Gene {{!!}} Chromosomal locus
        {{!}}- style="text-align:center;"
+
{{!}}-
        {{!}} colspan="2" style="background-color:#e7dcc3" {{!}} Protein type {{!!}} style="background-color:white" {{!}} {{{protein_type}}}
+
{{!}} {{{subunit1}}} {{!!}} {{{gene1}}} {{!!}} {{{locus1}}}
        {{!}}- style="text-align:center;"
+
{{!}}-
        {{!}} colspan="2" style="background-color:#e7dcc3" {{!}} Function {{!!}} style="background-color:white" {{!}} {{{function}}}
+
{{!}} {{{subunit2}}} {{!!}} {{{gene2}}} {{!!}} {{{locus2}}}
        {{#if: {{{cofactors|}}}
+
{{#ifexpr: {{{SubunitCount|0}}}>2
          |{{!}}- style="text-align:center;"
+
|{{!}}-
          {{!}} colspan="2" style="background-color:#e7dcc3" {{!}} Cofactor(s)  
+
{{!}} {{{subunit3}}} {{!!}} {{{gene3}}} {{!!}} {{{locus3}}}
          {{!}} style="background-color:white" {{!}} {{{cofactors}}}
+
{{#ifexpr: {{{SubunitCount|0}}}>3
        }}  
+
|{{!}}-
        {{!}}-
+
{{!}} {{{subunit4}}} {{!!}} {{{gene4}}} {{!!}} {{{locus4}}}
        {{!}} style="text-align:center;" colspan="3" {{!}} <span style="color:#f6f0e8"><sup>−</sup></span>
+
{{#ifexpr: {{{SubunitCount|0}}}>4
        |{{!}}-
+
|{{!}}-
      }}
+
{{!}} {{{subunit5}}} {{!!}} {{{gene5}}} {{!!}} {{{locus5}}}
      {{!}}- style="background-color:#e7dcc3;text-align:center;"
+
}}
      {{!}} Subunit<br>name {{!!}} Gene {{!!}} Chromosomal<br>locus
+
}}
      {{!}}- style="text-align:center;"
+
}}
      {{!}} style="background-color:white" {{!}} {{{subunit1}}} {{!!}} style="background-color:white" {{!}} {{{gene1}}} {{!!}} style="background-color:white" {{!}}{{{locus1}}}  
+
{{!}}}
      {{!}}- style="text-align:center;"
+
}}{{#if:{{image|}}||<includeonly>[[Category:Protein heteropolymers]]</includeonly><!-- added by Pdeitiker in the first revision, kept through rewrite but functionality unclear -->}}<noinclude>
      {{!}} style="background-color:white" {{!}} {{{subunit2}}} {{!!}} style="background-color:white" {{!}} {{{gene2}}} {{!!}} style="background-color:white" {{!}}{{{locus2}}}  
+
{{Documentation|content=
      {{#ifexpr: {{{SubunitCount}}}>2
+
This template is for heteropolymeric proteins where subunit articles also exist.
        |{{!}}- style="text-align:center;"
+
[[Category:Biology infobox templates]]
        {{!}} style="background-color:white" {{!}} {{{subunit3}}} {{!!}} style="background-color:white" {{!}} {{{gene3}}} {{!!}} style="background-color:white" {{!}}{{{locus3}}}  
+
}}
        {{#ifexpr: {{{SubunitCount}}}>3
+
</noinclude>
          |{{!}}- style="text-align:center;"
 
          {{!}} style="background-color:white" {{!}} {{{subunit4}}} {{!!}} style="background-color:white" {{!}} {{{gene4}}} {{!!}} style="background-color:white" {{!}}{{{locus4}}}  
 
          {{#ifexpr: {{{SubunitCount}}}>4
 
            |{{!}}- style="text-align:center;"
 
            {{!}} style="background-color:white" {{!}} {{{subunit5}}} {{!!}} style="background-color:white" {{!}} {{{gene5}}} {{!!}} style="background-color:white" {{!}}{{{locus5}}}  
 
            }}  
 
          }}  
 
      }}  
 
      |{{!}}-
 
    }}
 
    |{{!}}-
 
    {{!}} This template design for heteropolymeric proteins where subunit pages are also defined
 
  }}
 
|}<noinclude>{{convert to use Infobox}}
 
{{documentation}}</noinclude>
 

Revision as of 05:58, 10 March 2019

{{{heteropolymer}}}
({{{polymer_type}}})
Protein type{{{protein_type}}}
Function{{{function}}}
Subunit name Gene Chromosomal locus
{{{subunit1}}} {{{gene1}}} {{{locus1}}}
{{{subunit2}}} {{{gene2}}} {{{locus2}}}

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

Template documentation

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