Difference between revisions of "Template:Infobox protein"

From blackwiki
Jump to navigation Jump to search
imported>Joe Decker
(tweak to only assert Genes on chromosome X in mainspace)
imported>Frietjes
(infobox)
Line 1: Line 1:
{| class="infobox" style="width: 22em; font-size: 88%; text-align: left; line-height: 1.5em"
+
{{infobox
! colspan=2 style="text-align: center; font-size: 125%" | {{{Name|{{PAGENAME}} }}}
+
| above = {{{Name|{{PAGENAME}} }}}
|-
+
| bodystyle = {{#switch:{{{align|}}}
{{#if:{{{image|}}}|
+
| left = float:left; clear:left; margin: 0.5em 1em 0.5em 0;
{{!}} colspan=2 style="text-align: center" {{!}} [[file:{{{image}}}|{{px|{{{width|}}}|frameless}}]]
+
| center = float:none; margin:auto
{{!}}-
+
| none = float:none; margin: 0.5em 0 0.5em 0;
{{#if:{{{caption|}}}|
+
| right | #default =
{{!}} colspan=2 style="text-align: center" {{!}} {{{caption}}}
+
}}
{{!}}-
+
 
}}
+
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{width|}}}}}}|sizedefault=frameless|alt={{{alt|}}}}}
}}
+
| caption = {{{caption|}}}
! colspan=2 style="text-align: center; background-color: #ddd" | Identifiers
+
 
|-
+
| headerstyle = background-color: #ddd
! style="background-color: #e7dcc3" | Symbol
+
| labelstyle  = background-color: #e7dcc3
| style="background-color: #eee" | {{#if:{{{Symbol|}}} | {{{Symbol}}} | ? }}
+
| datastyle  = background-color: #eee
|-
+
 
{{#if:{{{AltSymbols|}}}|
+
| header1 = Identifiers
! style="background-color: #e7dcc3" {{!}} Alt. symbols
+
 
{{!}} style="background-color: #eee" {{!}} {{{AltSymbols}}}
+
| label2 = Symbol
{{!}}-
+
| data2  = {{#if:{{{Symbol|}}} | {{{Symbol}}} | ? }}
}}
+
 
{{#if:{{{IUPHAR_id|}}}|
+
| label3 =  Alt. symbols
! style="background-color: #e7dcc3" {{!}} [[International Union of Basic and Clinical Pharmacology|IUPHAR]]
+
| data3  =  {{{AltSymbols|}}}
{{!}} style="background-color: #eee" {{!}} {{IUPHAR|{{{Symbol}}}}}
+
 
{{!}}-
+
 
}}
+
| label4 = [[International Union of Basic and Clinical Pharmacology|IUPHAR]]
{{#if:{{{ATC_prefix|}}}|
+
| data4  =  {{#if:{{{IUPHAR_id|}}}|{{IUPHAR|{{{Symbol}}}}} }}
! style="background-color: #e7dcc3" {{!}} [[Anatomical Therapeutic Chemical Classification System|ATC code]]
+
 
{{!}} style="background-color: #eee" {{!}} [[ATC_code_{{{ATC_prefix}}}|{{{ATC_prefix}}}]]{{#if:{{{ATC_suffix|}}} | <span class="reflink plainlinksneverexpand">[http://www.whocc.no/atcddd/indexdatabase/index.php?query={{{ATC_prefix}}}{{{ATC_suffix}}} {{{ATC_suffix}}}]</span> {{{ATC_supplemental|}}} }}
+
 
{{!}}-
+
| label5 =  [[Anatomical Therapeutic Chemical Classification System|ATC code]]
}}
+
| data5  =  {{#if:{{{ATC_prefix|}}}|[[ATC_code_{{{ATC_prefix}}}|{{{ATC_prefix}}}]]{{#if:{{{ATC_suffix|}}} | <span class="reflink plainlinksneverexpand">[http://www.whocc.no/atcddd/indexdatabase/index.php?query={{{ATC_prefix}}}{{{ATC_suffix}}} {{{ATC_suffix}}}]</span>  {{{ATC_supplemental|}}} }} }}
{{#if:{{{CAS_number|}}}|
+
 
! style="background-color: #e7dcc3" {{!}} [[CAS registry number|CAS number]]
+
| label6 =  [[CAS registry number|CAS number]]
{{!}} style="background-color: #eee" {{!}} <span class="reflink plainlinksneverexpand">[http://www.nlm.nih.gov/cgi/mesh/2006/MB_cgi?term={{{CAS_number}}}&rn=1 {{{CAS_number}}}]</span> {{#if:{{{CAS_supplemental|}}} | <br>{{{CAS_supplemental|}}} }}
+
| data6  =  {{#if:{{{CAS_number|}}}|<span class="reflink plainlinksneverexpand">[http://www.nlm.nih.gov/cgi/mesh/2006/MB_cgi?term={{{CAS_number}}}&rn=1 {{{CAS_number}}}]</span> {{#if:{{{CAS_supplemental|}}} | <br>{{{CAS_supplemental|}}} }} }}
{{!}}-
+
 
}}
+
| label7 =  [[DrugBank]]
{{#if:{{{DrugBank|}}}|
+
| data7  =  {{#if:{{{DrugBank|}}}|<span class="reflink plainlinksneverexpand">[http://redpoll.pharmacy.ualberta.ca/drugbank/cgi-bin/getCard.cgi?CARD={{{DrugBank}}} {{{DrugBank}}}]</span>}}
! style="background-color: #e7dcc3" {{!}} [[DrugBank]]
+
 
{{!}} style="background-color: #eee" {{!}} <span class="reflink plainlinksneverexpand">[http://redpoll.pharmacy.ualberta.ca/drugbank/cgi-bin/getCard.cgi?CARD={{{DrugBank}}} {{{DrugBank}}}]</span>
+
 
}}
+
| label8 = [[Entrez]]
|-
+
| data8  =  {{#if:{{{EntrezGene|}}}|[http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=gene&amp;cmd=retrieve&amp;dopt=default&amp;list_uids={{{EntrezGene}}}&rn=1 {{{EntrezGene}}}]}}
{{#if:{{{EntrezGene|}}}|
+
 
! style="background-color: #e7dcc3" {{!}} [[Entrez]]
+
 
{{!}} style="background-color: #eee" {{!}} [http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=gene&amp;cmd=retrieve&amp;dopt=default&amp;list_uids={{{EntrezGene}}}&rn=1 {{{EntrezGene}}}]
+
| label9 =  [[Human Genome Organisation|HUGO]]
{{!}}-
+
| data9  =  {{#if:{{{HGNCid|}}}|[http://www.genenames.org/data/hgnc_data.php?hgnc_id={{{HGNCid}}} {{{HGNCid}}}]}}
}}
+
 
{{#if:{{{HGNCid|}}}|
+
| label10 =  [[OMIM]]
! style="background-color: #e7dcc3" {{!}} [[Human Genome Organisation|HUGO]]
+
| data10  =  {{#if:{{{OMIM|}}}|[http://www.omim.org/{{{OMIM}}} {{{OMIM}}}]}}
{{!}} style="background-color: #eee" {{!}} [http://www.genenames.org/data/hgnc_data.php?hgnc_id={{{HGNCid}}} {{{HGNCid}}}]
+
 
{{!}}-
+
| label11 =  [[Protein Data Bank|PDB]]
}}
+
| data11  =  {{#if:{{{PDB|}}}|[http://www.pdb.org/pdb/cgi/explore.cgi?pdbId={{{PDB}}} {{{PDB}}}] }} {{{PDB_supplemental|}}}
{{#if:{{{OMIM|}}}|
+
 
! style="background-color: #e7dcc3" {{!}} [[OMIM]]
+
| label12 =  [[National Center for Biotechnology Information|RefSeq]]
{{!}} style="background-color: #eee" {{!}} [http://www.omim.org/{{{OMIM}}} {{{OMIM}}}]
+
| data12  = {{#if:{{{RefSeq|}}}|[http://genome.ucsc.edu/cgi-bin/hgTracks?Submit=Submit&position={{{RefSeq}}}&rn=1 {{{RefSeq}}}]}}
{{!}}-
+
 
}}
+
| label13 =  [[Swiss-Prot|UniProt]]
{{#if:{{{PDB|}}}|
+
| data13  =  {{#if:{{{UniProt|}}}|[http://www.uniprot.org/uniprot/{{{UniProt}}} {{{UniProt}}}]}}
! style="background-color: #e7dcc3" {{!}} [[Protein Data Bank|PDB]]
+
 
{{!}} style="background-color: #eee" {{!}} [http://www.pdb.org/pdb/cgi/explore.cgi?pdbId={{{PDB}}} {{{PDB}}}] }} {{#if:{{{PDB_supplemental|}}} | {{{PDB_supplemental|}}} }}  
+
| header14 = {{#if: {{{ECnumber|}}}{{{Chromosome|}}}|Other data}}
|-
+
 
{{#if:{{{RefSeq|}}}|
+
| label15 =  [[Enzyme Commission number|EC number]]
! style="background-color: #e7dcc3" {{!}} [[National Center for Biotechnology Information|RefSeq]]
+
| data15  =  {{#if: {{{ECnumber|}}}|[http://www.genome.jp/dbget-bin/www_bget?enzyme+{{{ECnumber}}} {{{ECnumber}}}]}}  
{{!}} style="background-color: #eee" {{!}} [http://genome.ucsc.edu/cgi-bin/hgTracks?Submit=Submit&position={{{RefSeq}}}&rn=1 {{{RefSeq}}}]
+
 
{{!}}-
+
| label16 =  [[Locus (genetics)|Locus]]
}}
+
| data16  =  {{#if:{{{Chromosome|}}}|[[Chromosome {{{Chromosome}}} (human)|Chr. {{{Chromosome}}}]] ''[http://omim.org/search?index=geneMap&search={{{Chromosome}}}{{{Arm}}}{{{Band}}} {{{Arm}}}{{{Band}}}{{{LocusSupplementaryData}}}]''}}
{{#if:{{{UniProt|}}}|
+
 
! style="background-color: #e7dcc3" {{!}} [[Swiss-Prot|UniProt]]
+
}}<includeonly>{{main other|
{{!}} style="background-color: #eee" {{!}} [http://www.uniprot.org/uniprot/{{{UniProt}}} {{{UniProt}}}]
+
{{#if:{{{image|}}}|[[Category:Protein pages needing a picture]]}}
{{!}}-
+
{{#if:{{{Chromosome|}}}|[[Category:Genes on chromosome {{{Chromosome}}}]]|}}
}}
+
}}</includeonly><noinclude>
! colspan=2 style="text-align: center; background-color: #ddd" | Other data
+
{{documentation}}<!-- place category links on the /doc sub-page, not here -->
|-
+
</noinclude>
{{#if: {{{ECnumber|}}}|
 
! style="background-color: #e7dcc3" {{!}} [[Enzyme Commission number|EC number]]
 
{{!}} style="background-color: #eee" {{!}} [http://www.genome.jp/dbget-bin/www_bget?enzyme+{{{ECnumber}}} {{{ECnumber}}}]
 
{{!}}-
 
}}
 
{{#if:{{{Chromosome|}}}|
 
! style="background-color: #e7dcc3" {{!}} [[Locus (genetics)|Locus]]
 
{{!}} style="background-color: #eee" {{!}} [[Chromosome {{{Chromosome}}} (human)|Chr. {{{Chromosome}}}]] ''[http://omim.org/search?index=geneMap&search={{{Chromosome}}}{{{Arm}}}{{{Band}}} {{{Arm}}}{{{Band}}}{{{LocusSupplementaryData}}}]''
 
{{!}}-
 
}}
 
|}<includeonly>{{#ifeq:{{NAMESPACE}}|User||{{#if:{{{image|}}}|[[Category:Protein pages needing a picture]]}}{{#if: {{{Chromosome|}}}|{{main other|[[Category:Genes on chromosome {{{Chromosome}}}]]|}}}}}}</includeonly><noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>
 

Revision as of 16:22, 12 April 2013

Infobox protein
Identifiers
Symbol?

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

Template documentation[view] [edit] [history] [purge]

Usage

To use this template, copy the following text and paste it at the top of your article. Fill in as many fields as possible, but don't worry if some information is missing. For an example of a filled-out template, see Chymotrypsin.

{{Infobox protein
| name = 
| AltNames =
| image = 
| width = 
| caption = 
| Symbol = 
| AltSymbols =
| IUPHAR_id = 
| ATC_prefix = 
| ATC_suffix = 
| ATC_supplemental = 
| CAS_number = 
| CAS_supplemental = 
| DrugBank = 
| EntrezGene = 
| HGNCid = 
| OMIM = 
| PDB = 
| RefSeq = 
| UniProt = 
| EC_number = 
| Chromosome = 
| Arm = 
| Band = 
| LocusSupplementaryData = 
| Wikidata =
}}

Parameter explanations

name, AltNames
This field lists the accepted name for this protein, ideally from UniProt (the universal protein resource) (see UniProt).
image
This field specifies an image file that displays a two-dimensional view of the three-dimensional structure, typically created from a PDB file. If an image is specified, then the caption parameter should be used to specify the structure used to generate the image, preferably using the {{PDB2}} template. In addition, if an image is specified, then the display width in pixels can optionally be specified (default = 220px).
Symbol, AltSymbols
if a human protein, the Human Genome Organisation approved symbol (see HUGO)
IUPHAR_id
optional boolean for human proteins, if set to "yes", then the International Union of Basic and Clinical Pharmacology approved symbol is displayed with a link to the IUPHAR database (see IUPHAR)
CAS_number
This field list the CAS Registry Number, a unique chemical numerical identifier.
HGNCid
This field lists the HUGO Gene Nomenclature Committee numeric registration number (see HUGO)
OMIM
This field lists the Online Mendelian Inheritance in Man database numeric registration number (OMIM)
HomoloGene
This field lists the HomoloGene database numeric registration number (HomoloGene)
PDB
This field list the Protein Data Bank accession number (see PDB)
RefSeq
Reference Sequence accession number (see RefSeq)
UniProt
UniProt (the universal protein resource) accession number (see UniProt).
EC_number
This field lists the EC number which is numerical classification scheme for enzymes developed by the IUBMB Enzyme Nomenclature authority (see IUBMB). ECnumber is accepted as an alternative parameter-name for this field.

Examples

The following filled in protein infobox template produces the information box to the right.

Infobox protein
Identifiers
SymbolCTRB1
Alt. symbolsCTRB
Entrez1504
HUGO2521
OMIM118890
PDB2jet
RefSeqNM_001906
UniProtP17538
Other data
LocusChr. 16 q23.1
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox protein
| Name = chymotrypsinogen B1
| caption = 
| image = 
| width = 150 px
| HGNCid = 2521
| Symbol = CTRB1
| AltSymbols = CTRB
| EntrezGene = 1504
| OMIM = 118890
| HomoloGene = 1504
| RefSeq = NM_001906
| UniProt = P17538
| PDB = 
| EC_number = 3.4.21.1
| Chromosome = 16
| Arm = q
| Band = 23.1
| LocusSupplementaryData = 
}}

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox protein

An infobox for proteins. If the article is also linked to the corresponding gene item on Wikidata (which it often is), consider using {{Infobox gene}}.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
No parameters specified

See also