Difference between revisions of "Template:Infobox heteropolypeptide"

From blackwiki
Jump to navigation Jump to search
imported>Zackmann08
(tagging)
imported>PrimeHunter
(add {{Parameter names example}})
 
(6 intermediate revisions by 4 users not shown)
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|}}
+
| above      = {{{heteropolymer|{{PAGENAMEBASE}}}}}
    |{{#ifexpr: {{{SubunitCount}}}>1
+
| subheader  = {{#if:{{{polymer_type|}}}|({{{polymer_type}}})}}
      |{{!}}- style="background-color:white"
+
 
      {{!}} style="text-align:center;" colspan="3" {{!}} <div style="font-size:medium; line-height:120%;">{{{heteropolymer}}} </div>({{{polymer_type}}})
+
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{width|}}}}}}|sizedefault=frameless|alt={{{alt|}}}}}
      {{#if: {{{image|}}}
+
| caption    = {{{image_source|}}}
        |{{!}}-
+
 
        {{!}} style="background:white;text-align:center;" colspan="3" {{!}} [[Image:{{{image}}}{{!}}274px]]
+
| label1 = Protein type
        {{!}}- style="background-color:white"
+
|  data1 = {{{protein_type|}}}
        {{#if: {{{image_source|}}}  
+
| label2 = Function
          |{{!}} style="text-align:center;" colspan="3" {{!}} <sup>'''{{{image_source}}}'''</sup>
+
|  data2 = {{{function|}}}
          |{{!}} style="text-align:center;" colspan="3" {{!}} <sup>'''{{{heteropolymer}}} '''</sup>
+
| label3 = Cofactor(s)
        }}
+
|  data3 = {{{cofactors|}}}
        |<includeonly>[[Category:Protein heteropolymers]]</includeonly>
+
  | below  =
      }}
+
{{{!}} width="100%"
      {{#if: {{{protein_type|}}}
+
{{#ifexpr: {{{SubunitCount|0}}}>0
        |{{!}}-
+
|{{!}}- 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;"
+
{{#ifexpr: {{{SubunitCount|0}}}>1
        {{!}} colspan="2" style="background-color:#e7dcc3" {{!}} Function {{!!}} style="background-color:white" {{!}} {{{function}}}
+
|{{!}}-
        {{#if: {{{cofactors|}}}
+
{{!}} {{{subunit2}}} {{!!}} {{{gene2}}} {{!!}} {{{locus2}}}
          |{{!}}- style="text-align:center;"
+
{{#ifexpr: {{{SubunitCount|0}}}>2
          {{!}} colspan="2" style="background-color:#e7dcc3" {{!}} Cofactor(s)  
+
|{{!}}-
          {{!}} style="background-color:white" {{!}} {{{cofactors}}}
+
{{!}} {{{subunit3}}} {{!!}} {{{gene3}}} {{!!}} {{{locus3}}}
        }}  
+
{{#ifexpr: {{{SubunitCount|0}}}>3
        {{!}}-
+
|{{!}}-
        {{!}} style="text-align:center;" colspan="3" {{!}} <span style="color:#f6f0e8"><sup>−</sup></span>
+
{{!}} {{{subunit4}}} {{!!}} {{{gene4}}} {{!!}} {{{locus4}}}
        |{{!}}-
+
{{#ifexpr: {{{SubunitCount|0}}}>4
      }}  
+
|{{!}}-
      {{!}}- style="background-color:#e7dcc3;text-align:center;"
+
{{!}} {{{subunit5}}} {{!!}} {{{gene5}}} {{!!}} {{{locus5}}}
      {{!}} 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;"
+
}}
      {{!}} style="background-color:white" {{!}} {{{subunit2}}} {{!!}} style="background-color:white" {{!}} {{{gene2}}} {{!!}} style="background-color:white" {{!}}{{{locus2}}}  
+
}}
      {{#ifexpr: {{{SubunitCount}}}>2
+
{{!}}}
        |{{!}}- 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" {{!}} {{{subunit3}}} {{!!}} style="background-color:white" {{!}} {{{gene3}}} {{!!}} style="background-color:white" {{!}}{{{locus3}}}  
+
{{Documentation|content=
        {{#ifexpr: {{{SubunitCount}}}>3
+
{{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}}
          |{{!}}- style="text-align:center;"
+
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.
          {{!}} style="background-color:white" {{!}} {{{subunit4}}} {{!!}} style="background-color:white" {{!}} {{{gene4}}} {{!!}} style="background-color:white" {{!}}{{{locus4}}}  
+
[[Category:Biology infobox templates]]
          {{#ifexpr: {{{SubunitCount}}}>4
+
}}
            |{{!}}- style="text-align:center;"
+
</noinclude>
            {{!}} 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>
 

Latest revision as of 14:13, 29 March 2020

Template:PAGENAMEBASE

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

Template documentation

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.