Difference between revisions of "Template:Infobox nerve"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
(rewrite as a frontend for template:infobox anatomy)
Line 1: Line 1:
{{infobox
+
{{infobox anatomy
| abovestyle = background: LemonChiffon; font-size:115%;
+
| type = nerve
| above = ''{{{Name}}}''
+
| Name = {{{Name}}}
 
+
| Image = {{{Image|}}}
| labelstyle = padding-right:0.25em
+
| Width = {{{Width|}}}
 
+
| Alt = {{{Alt|}}}
| captionstyle = font-size:88%; line-height:135%
+
| Caption = {{{Caption|}}}
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|}}}|size={{{Width|}}}|sizedefault=frameless|upright=1.14|alt={{{Alt|}}}}}
+
| Image2 = {{{Image2|}}}
| caption = {{{Caption|}}}
+
| Width2 = {{{Width2|{{{Width|}}}}}}
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image2|}}}|size={{{Width2|{{{Width|}}}}}}|sizedefault=frameless|upright=1.14|alt={{{Alt2|}}}}}
+
| Alt2 = {{{Alt2|}}}
| caption2 = {{{Caption2|}}}  
+
| Caption2 = {{{Caption2|}}}  
| image3 = {{#if:{{{Map|}}}|{{#ifexist:template:{{{Map}}}| {{ {{{Map}}} | {{{MapPos}}} | Inline=1 }} }} }}
+
| Map = {{{Map|}}}
| caption3 = {{{MapCaption|}}}
+
| MapPos = {{{MapPos|}}}
 
+
| MapCaption = {{{MapCaption|}}}
<!-- Latin / GraySubject -->
+
| Latin = {{{Latin|{{{latin|}}}}}}
| label1 = [[Latin]]
+
| GraySubject = {{{GraySubject|}}}
| data1 = {{#if:{{{Latin|{{{latin|}}}}}}| ''{{{Latin|{{{latin}}}}}}'' }}
+
| GrayPage = {{{GrayPage|}}}
 
+
| Innervates = {{{Innervates|}}}
| label2 = {{#ifexist:List of subjects in Gray's Anatomy:{{{GraySubject}}}
+
| BranchFrom = {{{BranchFrom|}}}
  |[[List of subjects in Gray's Anatomy:{{{GraySubject}}}#Gray.27s_page_.23{{{GrayPage|}}}|Gray's]]
+
| BranchTo = {{{BranchTo|}}}
  |[[List of subjects in Gray's Anatomy|Gray's]][[Category:Pages with invalid Gray's Anatomy subject number]]
+
| Code = {{{Code|}}}
  }}
+
| MeshName = {{{MeshName|}}}
| data2 = {{#if:{{{GraySubject|}}}| {{Gray's Anatomy link|Subject={{{GraySubject|}}}|Page={{{GrayPage|}}}}} }}
+
| MeshYear = {{{MeshYear|2007}}}
 
+
| Dorlands = {{{Dorlands|}}}
 
+
| DorlandsID = {{{DorlandsID|}}}
| label5 = Innervates  
+
| FMA = {{{FMA|{{#property:P1402}}}}}
| data5 = {{{Innervates|}}}
 
 
 
| label6 = <div style="width:100%;background:LemonChiffon">From</div>
 
| data6 = {{{BranchFrom|}}}
 
 
 
| label7 = <div style="width:100%;background:LemonChiffon">To</div>
 
| data7 = {{{BranchTo|}}}
 
 
 
| label8 = Code
 
| data8 = {{{Code|}}}
 
 
 
| label10 = [[Medical Subject Headings|MeSH]]
 
| data10 ={{#if:{{{MeshName|}}}|<span style="white-space:nowrap">''[//www.nlm.nih.gov/cgi/mesh/{{{MeshYear|2007}}}/MB_cgi?mode=&term={{{MeshName}}} {{{MeshName}}}]''</span>}}
 
 
 
| label11 = [[Elsevier|Dorlands/Elsevier]]
 
| data11 = {{#if: {{{Dorlands|}}}| ''[http://www.mercksource.com/pp/us/cns/cns_hl_dorlands_split.jsp?pg=/ppdocs/us/common/dorlands/dorland/{{{Dorlands}}}.htm {{{DorlandsID}}}]'' }}
 
 
 
| label12 = [[Terminologia Anatomica|TA]]
 
| data12 = {{#if:{{#property:P1323}} | <span style="white-space:nowrap">{{#invoke:Wikidata|getTAValue}}</span>}}
 
 
 
| label13 = [[Foundational Model of Anatomy|FMA]]
 
| data13 = {{#if:{{{FMA|{{#property:P1402}}|}}}|{{FMA|{{{FMA|{{#property:P1402}}}}}}} }}
 
 
 
 
 
| belowstyle = font-style:italic; font-weight:bold
 
| below = [[Anatomical terms of neuroanatomy]]
 
 
 
 
}}{{main other|
 
}}{{main other|
 
{{#ifeq:{{{1|♦}}}|♦||[[Category:Medicine infobox template using deprecated parameters|1{{PAGENAME}}]]
 
{{#ifeq:{{{1|♦}}}|♦||[[Category:Medicine infobox template using deprecated parameters|1{{PAGENAME}}]]

Revision as of 16:01, 18 November 2014

{{{Name}}}
SynonymsScript error: No such module "If empty".
Identifiers
MeSHTemplate:Wikidata
NeuroNamesTemplate:Wikidata
NeuroLex IDTemplate:Wikidata
TA98Template:TA98
TA2Template:Wikidata
THTemplate:Str rep.html {{#property:P1694}}
TETemplate:TerminologiaEmbryologica
FMA{{#property:P1402}}
Anatomical terms of neuroanatomy
[[[d:Script error: No such module "Wikidata".|edit on Wikidata]]]

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

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

{{Infobox nerve}} displays a right-side infobox showing information about nerves in the body, allowing 2 images to be displayed at the top of the box.

Usage

{{Infobox nerve
| Name        = 
| Latin       = 
| Image       = 
| Caption     = 
| Image2      = 
| Caption2    = 
| Innervates  = 
| BranchFrom  = 
| BranchTo    = 
}}

Standard parameters

Template:Uses Wikidata This infobox is one in a series of anatomy infoboxes, all of which share common parameters. These include:

Details
Name = English name for structure
Pronunciation = Pronunciation of name, if term is not commonly used
Image = top image (omit "Image:")
Width = width of top image (in pixels, default=250)
Caption = caption under top image
Image2 = second top image (omit "Image:")
Width2 = width of second image (in pixels, default=250)
Caption2 = caption under second top image
System = Relevant body system (e.g., Circulatory system)
Identifiers
Latin = Latin name for structure
Greek = Greek name for structure, if relevant to anatomy / medical use
Acronym = Acronym, if in common use
Autofilled
TA, TH, TE, MeSH, FMA, NeuroLex, NeuroNames These fields are automatically filled from Wikidata, and edits can no longer be made through infoboxes.
Link All templates in this series provide a link to the relevant Anatomical terminology articles - eg Anatomical terms of bone for Template:Infobox bone, etc.

Unique parameters

The template parameters unique to this template are (case sensitive):

Innervates = The area that the nerve supplies
BranchFrom = The larger nerve or area, if any, this nerve branches from
BranchTo = Smaller nerves that arise from this nerve

Most parameters begin with a capital letter.

Example

For an example, see:

Tracking category

See also