Difference between revisions of "Template:Infobox muscle/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
imported>Tom (LT)
(→‎Usage: remove unused parameters per talk page discussion)
Line 15: Line 15:
 
| Width2 =  
 
| Width2 =  
 
| Caption2 =  
 
| Caption2 =  
| ImageMap =
 
| MapWidth =
 
| MapCaption =
 
 
| Latin =  
 
| Latin =  
 
| Greek =  
 
| Greek =  
Line 26: Line 23:
 
| Artery =  
 
| Artery =  
 
| Nerve =  
 
| Nerve =  
| NerveRoot =
 
 
| Vein =  
 
| Vein =  
 
| Action =  
 
| Action =  
| PhysicalExam =
 
 
| Antagonist =  
 
| Antagonist =  
| Precursor =
 
 
| GraySubject =  
 
| GraySubject =  
 
| GrayPage =  
 
| GrayPage =  

Revision as of 01:56, 28 January 2018

Template:Uses Wikidata

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

Usage

{{Infobox muscle
| Name = 
| Image = 
| Width = 
| Caption = 
| Image2 = 
| Width2 = 
| Caption2 = 
| Latin = 
| Greek = 
| System = 
| Origin = 
| Insertion = 
| Blood = 
| Artery = 
| Nerve = 
| Vein = 
| Action = 
| Antagonist = 
| GraySubject = 
| GrayPage = 
| MeshName = 
| MeshYear = 
| MeshNumber = 
| Dorlands = 
| DorlandsSuf = 
| DorlandsID = 
| DorlandsPre = 
}}

Parameters

The template parameters are (note case sensitivity):

Name = English name for structure.
Latin = Latin name for structure.
GraySubject = Gray's Anatomy subject number, such as: 189. For details, see {{Gray's Anatomy link}}.
GrayPage = Gray's Anatomy page number, such as: 825. For details, see {{Gray's Anatomy link}}.
Image = top image (omit "Image:").
Width = width of top image (in pixels, default=250).
Caption = caption under top image.
Image2 = 2nd top image (omit "Image:").
Width2 = width of 2nd image (in pixels, default=250).
Caption2 = caption under 2nd top image.
ImageMap = an image map template
MapCaption = caption for the image map
Origin = any origin text
Insertion = any insertion text
Blood = related arteries
Nerve = related nerves
NerveRoot = related nerve root(s)
Action = use, such as "Knee extension"
PhysicalExam = The physical exam procedure(s) used to test the muscle
Antagonist = opposing muscle
MeshName = MeSH name
MeshNumber = MeSH number code
Dorlands = Dorlands url number, such as: nine/000956217 (before .htm in url).
DorlandsID = Dorlands article name as you want it to appear in the infobox, such as "Quadriceps".

Most parameters begin with a capital letter.

TA98 and FMA

The values for the TA code and FMA identifier are specified in Wikidata. For more information on these two codes, see Template:TA98 and Template:FMA.

Example

Quadriceps femoris muscle
File:Illu lower extremity muscles.jpg
Muscles of lower extremity.
Details
SynonymsScript error: No such module "If empty".
Origincombined rectus femoris and vastus muscles
Arteryfemoral artery
NerveFemoral nerve
ActionsKnee extension; Hip flexion (R.Fem. only)
AntagonistHamstring
Identifiers
Latinmusculus quadriceps femoris
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 muscle
[[[d:Script error: No such module "Wikidata".|edit on Wikidata]]]

The template is invoked using double-brace syntax (with the result similar to that shown at the right), coded as follows:

{{Infobox muscle
| Name         = Quadriceps femoris muscle
| Latin        = musculus quadriceps femoris
| GraySubject  = 128
| GrayPage     = 470
| Image        = Illu lower extremity muscles.jpg
| Width        = 250
| Caption      = Muscles of lower extremity
| Origin       = combined rectus femoris and [[vastus]] muscles
| Insertion    =
| Blood        = [[femoral artery]]
| Nerve        = [[Femoral nerve]]
| NerveRoot    =
| Action       = [[Knee]] extension; Hip flexion (R.Fem. only)
| PhysicalExam =
| Antagonist   = [[Hamstring]]
| MeshName     =
| MeshNumber   =
<!-- Note: TA and FMA values comes from WikiData in the article -->
}}

Tracking category

See also