टेम्पलेट:Infobox vein: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
imported>Ms2ger
छो +infobox class; cleanup
imported>Wikid77
now checks 8 invalid parameter spellings; +parameter BoxWidth and image Width2=Width & ColumnGap=  category "Medical infobox templates"; added structural/NOTES internal comments
लाइन 1:
<noinclude>{{pp-semi-template|small=yes}}</noinclude><!--
{| class="infobox" style="width:20em;"
--============================================================
|- style="text-align:center;"
-- Template:Infobox_Vein - Info box for anatomical veins
!style="background:LightBlue; " colspan="3"|'''''Vein: {{{Name}}}'''''
-- (see NOTES below)
--============================================================-->
{| class="infobox" style="width:{{{BoxWidth|{{{boxwidth|20em}}}}}};"
|- style="text-align:center;" <!--see NOTE WT2-->
!style="background:LightBlue; " colspan="32"|'''''Vein: {{{Name}}}'''''
|- style="text-align: center;"
{{#if: {{{Imagemap|<noinclude>X</noinclude>}}} |
{{!}} colspan="2" {{!}} {{{Imagemap}}} }}<!--endif --See NOTE IF3-->
|- style="text-align: center;"
{{#if: {{{Image|<noinclude>X</noinclude>}}} |
{{!}} colspan="2" {{!}} [[Image:{{{Image}}}|{{{Width|250}}}px|center|]] }}
|- style="text-align: center; line-height: 1;"
{{#if: {{{Caption|<noinclude>X</noinclude>}}} |
{{!}} colspan="2" {{!}} <small>{{{Caption}}}</small> }}
|- style="text-align: center;"
{{#if: {{{Image2|<noinclude>X</noinclude>}}} |
{{!}} colspan="2" {{!}} [[Image:{{{Image2}}}|{{{Width|250}}}px|center|]] }}
|- style="text-align: center; line-height: 1;"
{{#if: {{{Caption2|<noinclude>X</noinclude>}}} |
{{!}} colspan="2" {{!}} <small>{{{Caption2}}}</small> }}
|-<!--
------------------------------------------ Latin / GraySubject-->
{{#if: {{{Latin|}}} |
{{#if: {{{Latin|<noinclude>X</noinclude>}}} |
{{!}} '''[[Latin]]'''
{{!}} colspan="2" {{!}} ''{{{'[[Latin}}}]]''' <!-- See NOTE }}DE7-->
{{!}} ''{{{Latin}}}'' }}<!--endif-- See NOTE IF3-->
|-
{{#if: {{{GraySubject|}}} |
{{!}} '''[[List of subjects in Gray's Anatomy:{{{GraySubject}}}#Gray.27s_page_.23{{{GrayPage|}}}|Gray's]]'''
{{!}} colspan="2" {{!}} ''[http://education.yahoo.com/reference/gray/subjects/subject?id={{{GraySubject}}}#p{{{GrayPage|}}} subject #{{{GraySubject}}} {{{GrayPage|}}}]'' }}<!--
----------------------------------- DrainsFrom/Source/DrainsTo-->
|- style="text-align: left "
{{#if: {{{DrainsFrom|<noinclude>X</noinclude>}}} |
{{!}} '''Drains &nbsp;from'''{{{ColumnGap|{{{columngap|&nbsp;&nbsp;&nbsp;}}}}}}<!-- See NOTE GP4-->
{{!}} colspan="2" {{!}} {{{DrainsFrom}}}}}
|- style="background:LightBlue"
{{#if: {{{Source|<noinclude>X</noinclude>}}} |
{{!}} '''Source'''
{{!}} colspan="2" {{!}} {{{Source}}} }}
|- style="background:LightBlue"
{{#if: {{{DrainsTo|<noinclude>X</noinclude>}}} |
{{!}} '''Drains to'''
{{!}} colspan="2" {{!}} {{{DrainsTo}}} }}<!--
------------------------------------------ Artery / Precursor-->
|- style="background:Pink"
{{#if: {{{Artery|}}} |
{{!}} '''Artery'''
{{!}} colspan="2" {{!}} {{{Artery}}} }}
|- style="text-align: left; background:Thistle"
{{#if: {{{Precursor<includeonly>|</includeonly>}}} |
{{!}} '''[[Embryology|Precursor]]'''
{{!}} colspan="2" {{!}} {{{Precursor}}} }}<!--
------------------------------------------ MeshName / Dorlands-->
|- style="text-align: left;"
{{#if:{{{MeshName<includeonly>|</includeonly>}}}|{{#ifeq:{{{MeshName|}}}|none||
Line 51 ⟶ 60:
}}}}
|-
{{#if: {{{DorlandsPre|}}} | {{!}} '''[[Elsevier|Dorlands<br/>/ Elsevier]]'''&nbsp;{{{ColumnGap|{{{columngap|&nbsp;&nbsp;&nbsp;}}}}}}<!-- See NOTE GP4-->
{{#if: {{{DorlandsPre|}}} |
{{!}} colspan="2" {{!}} ''[http://www.mercksource.com/pp/us/cns/cns_hl_dorlands.jspzQzpgzEzzSzppdocszSzuszSzcommonzSzdorlandszSzdorlandzSzdmd_{{{DorlandsPre}}}zPzhtm#{{{DorlandsSuf}}} {{{DorlandsPre}}}/{{{DorlandsSuf}}}]'' }}<!--
{{!}} '''[[Elsevier|Dorlands/Elsevier]]'''
------------------------------------------ Invalid parameters -->
{{!}} colspan="2" {{!}} ''[http://www.mercksource.com/pp/us/cns/cns_hl_dorlands.jspzQzpgzEzzSzppdocszSzuszSzcommonzSzdorlandszSzdorlandzSzdmd_{{{DorlandsPre}}}zPzhtm#{{{DorlandsSuf}}} {{{DorlandsPre}}}/{{{DorlandsSuf}}}]'' }}
{{#if: {{{LatinMap|}}} |
|}<noinclude>The '''Template:Infobox Vein''' creates an infobox, for listing veins.</noinclude>
|Infobox_Vein - Invalid parameter "Map", try "Imagemap=x".<br>
}}{{
{{#if: {{{DorlandsPreImageMap|}}} |
|Infobox_Vein - Invalid uppercase "ImageMap", try lowercase "Imagemap=x".<br>
}}{{ <!--see NOTE IF4-->
#if: {{{latin|}}}
|Infobox_Vein - Invalid lowercase "latin", try "Latin=x".<br>
}}{{
#if: {{{source|}}}
|Infobox_Vein - Invalid lowercase "source", try "Source=x".<br>
}}{{
#if: {{{Drainsfrom|}}}
|Infobox_Vein - Invalid lowercase "Drainsfrom", try "DrainsFrom=x".<br>
}}{{
#if: {{{Drainsto|}}}
|Infobox_Vein - Invalid lowercase "Drainsto", try "DrainsTo=x".<br>
}}{{
#if: {{{Meshname|}}}
|Infobox_Vein - Invalid lowercase "Meshname", try "MeshName=x".<br>
}}{{
#if: {{{MeSHname|}}}
|Infobox_Vein - Invalid Camel-case "MeSHname", try "MeshName=x".<br>
}}
|}<noinclude><!--
--
--NOTES:
-- This template uses [[MediaWiki]] language to process the
-- parameters formatted into a righthand-side infobox.
-- See the /doc subpage for further details.
--
-- NOTE WT1: This template uses wikitable class=infobox to
-- preset 2 columns of data.
-- NOTE WT2: Remember wikitables demand some tokens appear
-- in column 1 of a text line, such as "{|".
-- Template "{{!}}" generates "|" during if-tests.
--
-- NOTE IF3: The MediaWiki if-expressions use double-braces:
-- {{#if: xxxtrue | then | else }}
-- {{#ifeq: xxx|yes| then | else }}
-- Because "|" denotes then/else, use {{!}} for cells.
--
-- NOTE IF4: MediaWiki if-tests can be indented but not "{{" so
-- leave "{{" on previous line as "}}{{". Splitting
-- at "}}" with "{{" on next line causes blank line.
--
-- NOTE GP4: Parameter ColumnGap (or "columngap") defaults as
-- 3 blanks at optional param. DrainFrom or Dorlands;
-- ColumnGap=&nbsp; (1 blank) allows wider text.
--
-- NOTE DE7: Stand-alone defaults use "<noinclude>X</noinclu..>"
-- where "X" is omitted from article pages. It is
-- used to force empty parameters to be displayed.
--
-- NOTE SZ9: Template size restrictions were lifted Jan. 2008 by
-- a new parser that skips comments & false branches.
--
--HISTORY:
-- 31Mar08 Began log of major changes (see revisions for minor).
-- 31Mar08 Fixed colspan=2 (~3) narrow box for 9-words-per-line
-- 31Mar08 Linked to typical "/doc" subpage for documentation.
-- 31Mar08 Added parameters: Width2 for Image2, BoxWidth/boxwidth
-- 31Mar08 Added parameter: ColumnGap/columngap between columns.
-- 31Mar08 Added validation for 8 invalid parameter spellings.
-- 31Mar08 Dimmed Dorlands background color to gray.
-- 31Mar08 Added NOTES section to explain logic & indenting.
--
-- [These comments are omitted during article display by the
-- MediaWiki parser (of Jan. 2008) & not transmitted to users.]
-->
{{template doc|Template:Infobox_Vein/doc}}
 
[[Category:Medical infobox templates|Vein]]
</noinclude>