Template:Infobox Vein
From Wikipedia, the free encyclopedia
Vein: {{{Name}}} | |
---|---|
{{{Imagemap}}} | |
[[Image:{{{Image}}}|250px|center|]] | |
{{{Caption}}} | |
[[Image:{{{Image2}}}|250px|center|]] | |
{{{Caption2}}} | |
Latin | {{{Latin}}} |
Drains from | {{{DrainsFrom}}} |
Source | {{{Source}}} |
Drains to | {{{DrainsTo}}} |
Precursor | {{{Precursor}}} |
MeSH | † {{{MeshName}}} |
The anatomy infobox "Template:Infobox_Vein" displays a right-side infobox showing information about veins in the body, allowing 2 images to be displayed at the top of the box.
Contents |
Usage
Vein: Umbilical vein | |
---|---|
Fetal circulation; the umbilical vein is the large, red vessel at the far left. | |
Human embryo about 15 days old. Brain & heart represented from right side. Digestive tube & yolk sac in median section (Umbilical vein labeled at bottom right). | |
Latin | vena umbilicalis |
Gray's | subject #135 519 |
Artery | umbilical artery |
Dorlands / Elsevier |
v_05/12852143 |
The template is invoked using double-brace syntax (with the result similar to that shown at the right), coded as follows:
{{Infobox Vein | Name = Umbilical vein | Latin = vena umbilicalis | GraySubject = 135 | GrayPage = 519 | Image = Gray502.png | Caption = Fetal circulation; the umbilical vein is the large red vessel at the far left. | Image2 = Gray977.png | Caption2 = Human embryo about 15 days old. [[Brain]]& [[heart]] represented from right side. [[Digestive tube]] & [[yolk sac]] in median section (Umbilical vein labeled at bottom right). | DrainsFrom = | DrainsTo = | Artery =[[umbilical artery]] | MeshName = | MeshNumber = | DorlandsPre = v_05 | DorlandsSuf = 12852143 }}
Parameters
The template parameters are (Camel case requiring upper/lowercase):
- Name = English name for structure.
- Latin = Latin name for structure.
- GraySubject = Gray's Anatomy subject number, such as: 189.
- GrayPage = Gray's Anatomy page number, such as: 825.
- Imagemap = map procedure above top image.
- 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.
- Source = any source text
- DrainsFrom = any text
- DrainsTo = any text
- MeshName = MeSH name
- MeshNumber = MeSH number code
- DorlandsPre = Dorlands prefix, such as: i_09.
- DorlandsSuf = Dorlands suffix, such as: 12454066.
- BoxWidth = width of infobox (in em/pixels, default 20em), also "boxwidth"
- ColumnGap = - extra spaces between infobox columns.
Most parameters begin with a capital letter.
Template implementation notes
The template was implemented in 2 February 2006 using the MediaWiki parser-functions language (which was updated in January 2008 to run with a recursive descent parser).
Changes should be made and verified in a test-version of the template by copying it into user-space (under "User:XXX/Template:Infobox_Vein"). Changes can be checked by editing actual articles by edit-preview (not Save) with the template-brace calls prefixed by "{{User:XXX/Template:...}}" but never saved that way.
When modifying the template or documentation ("/doc" subpage), it is often necessary to purge the template cache (using "action=purge"), such as to display modified documentation:
Running old versions of the template can be very confusing and frustrating when trying to install and verify improvements copied from test-versions of the template (so remember "action=purge").
See also
- Template:Infobox_Brain - for parts of the brain.
- Template:Infobox_Bone - for bones of the body.
- Template:Eye - articles on parts of the eye.
<includeonly> [[Category:Medicine infobox templates|{{PAGENAME}}]] </includeonly>