Template:Coord/doc: Difference between revisions

Uncomment some parameters
(Fix examples)
(Uncomment some parameters)
Line 75: Line 75:


:*'''display=''' can be one of the following:
:*'''display=''' can be one of the following:
::*<code>display=text</code> – Display the text inline (default) <!--
::*<code>display=inline</code> – Display the coordinate inline (default)  
::*<code>display=inline</code> – Display the coordinate inline (default)  
::*<code>display=title</code> – Display the coordinate near the article title (replaces {{tl|coor title dms}} family)  
::*<code>display=title</code> – Display the coordinate near the article title (replaces {{tl|coor title dms}} family)  
Line 83: Line 82:
::*<code>display=title,inline</code> has the same effect as <code>display=inline,title</code>
::*<code>display=title,inline</code> has the same effect as <code>display=inline,title</code>
::Note: the <code>title</code> attribute indicates that the coordinates apply to the entire article, and not just one of (perhaps many) places mentioned in it — so it should only be omitted in the latter case.
::Note: the <code>title</code> attribute indicates that the coordinates apply to the entire article, and not just one of (perhaps many) places mentioned in it — so it should only be omitted in the latter case.
-->
::*<code>display=text</code> – Display text inline instead of the coordinates inline.
:*'''format=''' can be used to force ''dec'' or ''dms'' coordinate display.
:*'''format=''' can be used to force ''dec'' or ''dms'' coordinate display.
::*<code>format=dec</code> reformats the coordinates to <span style="text-decoration: underline">decimal degrees</span> format.  
::*<code>format=dec</code> reformats the coordinates to <span style="text-decoration: underline">decimal degrees</span> format.  
Line 90: Line 89:
::Note: a ''name='' parameter causes {{tl|Coord}} to emit an [[HCard]] [[Microformat]] using that name, ''even if used within an existing hCard''. Do not use when the name is that of a person (e.g for a gravesite), as the generated hCard would be invalid. Also, do not use square brackets in names.
::Note: a ''name='' parameter causes {{tl|Coord}} to emit an [[HCard]] [[Microformat]] using that name, ''even if used within an existing hCard''. Do not use when the name is that of a person (e.g for a gravesite), as the generated hCard would be invalid. Also, do not use square brackets in names.
:*'''notes=''' specifies text to be displayed immediately following the coordinates. This is primarily intended for adding footnotes to title coordinates.  
:*'''notes=''' specifies text to be displayed immediately following the coordinates. This is primarily intended for adding footnotes to title coordinates.  
:*'''out-text=''' specifies text to be displayed in place of the coordinates. This is only used when display is set to text.
:*'''out-text=''' specifies text to be displayed in place of the coordinates. This is only used when display is set to text and for overriding the default.


== Examples  ==
== Examples  ==
2,175

edits