Template:Coord/doc: Difference between revisions

Adjust comment
(Fix test)
(Adjust comment)
Line 88: Line 88:
:*'''name=''' can be used to annotate inline coordinates for display in map services such as the [[:meta:WikiMiniAtlas|WikiMiniAtlas]]. If omitted, the article title (PAGENAME) is assumed.
:*'''name=''' can be used to annotate inline coordinates for display in map services such as the [[:meta:WikiMiniAtlas|WikiMiniAtlas]]. If omitted, the article title (PAGENAME) is assumed.
::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.
:The following are only used when <code>format=text</code> and for overriding the defaults. They allow specifying the text to be displayed in place of just the coordinates:
:The following are only used when <code>format=text</code> and for overriding the defaults. They allow specifying the text to be displayed in place of just the coordinates. Spaces at the beginning or end of the string requires a <nowiki>&nbsp;</nowiki>:  
:*'''pre-link-text=''' The default is no text.  
:*'''pre-link-text=''' The default is no text.  
:*'''link-text=''' The default is 'Click here'  
:*'''link-text=''' The default is 'Click here'  
:*'''post-link-text=''' The default is ' to view information about this location'.
:*'''post-link-text=''' The default is '<nowiki>&nbsp;</nowiki>to view information about this location'.


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

edits