An diofar eadar na mùthaidhean a rinneadh air "Teamplaid:Coord/doc"

Content deleted Content added
No edit summary
b Interlink renamings
 
Loidhne 12:
The template is for [[World Geodetic System|WGS84]] geographical coordinates ([[latitude]];[[longitude]]) on [[Earth]], which can be entered in either decimal notation, or degrees/minutes/seconds parameters, with the appropriate precision.
 
It links to {{Coor URL}}, then displays the coordinates. Clicking the blue globe [[ImageFaidhle:Erioll_world.svg|18px]] activates the [[:meta:WikiMiniAtlas|WikiMiniAtlas]] (needs Javascript).
 
The template outputs data in:
* Degree/minutes/seconds ("DMS", precision is degrees, or degrees/minutes, or degrees/minutes/seconds, based on input). Some conversions from decimal degrees to dms need fixing (see [[Template_talkTeamplaid_talk:Coord/doc#template:Coord/dec2dms/dms|talk]])
* Decimal (precision by number of decimal places, based on input)
* [[Geo (microformat)|Geo microformat]].
Loidhne 167:
 
==Incorrect uses and maintenance category==
The template has a few input checks built in. Basic errors display the message on [[TemplateTeamplaid:Coord/input/ERROR|Coord/input/ERROR]] (see [[Special:WhatLinksHere/Template:Coord/input/ERROR]] for pages to fix)
 
A series of other input errors categorize the pages in the [[Wikipedia:Categorization#Maintenance_categories|maintenance category]] '''[[:CategoryRoinn-seòrsa:Coord template needing repair|Coord template needing repair]]'''. See the category description for more details. There are currently '''{{PAGESINCATEGORY:Coord_template_needing_repair}}''' pages in that category.
 
A general list of coordinates needing repair is at [[tools:~dispenser/view/File viewer#log:coord-enwiki.log]].
Loidhne 176:
 
==Subtemplates==
See [[TemplateTeamplaid:Coord/doc/internals]] and [[:CategoryRoinn-seòrsa:Coord template]]
 
{|
Loidhne 182:
! function
|-
| [[TemplateTeamplaid:Coord/input/d|Coord/input/d]]
| converts coordinates from input in degrees format <nowiki>{{coord|12|N|12|W}}</nowiki>
|-
| [[TemplateTeamplaid:Coord/input/dm|Coord/input/dm]]
| converts coordinates from input in degrees/minutes format <nowiki>{{coord|12|12|N|12|12|W}}</nowiki>
|-
| [[TemplateTeamplaid:Coord/input/dms|Coord/input/dms]]
| converts coordinates from input in degrees/minutes/seconds format <nowiki>{{coord|12|12|12|N|12|12|12|W}}</nowiki>
|-
| [[TemplateTeamplaid:Coord/display/inline|Coord/display/inline]]
| creates output to display coordinates inline
|-
| [[TemplateTeamplaid:Coord/display/title|Coord/display/title]]
| creates output to display above the article (generally to the right of the article's title)
|-
| [[TemplateTeamplaid:Coord/display/inline,title|Coord/display/inline,title]]
| creates output to display coordinates inline and above the article
|}
Loidhne 203:
== Coordinates in PDF ==
For the generation of the PDF version, printed books and Open Office export format, two templates are [[Help:Books/for_experts#Improving_the_book_layout|substituted for the regular templates]]:
*[[TemplateTeamplaid:Coord/display/title/Print]] for {{tl|Coord/display/title}}
*[[TemplateTeamplaid:Coord/link/Print]] for {{tl|Coord/link}}
*[[TemplateTeamplaid:Coord/display/inline,title/Print]] for {{tl|Coord/display/inline,title}}
 
Samples are available at:
Loidhne 215:
 
 
[[CategoryRoinn-seòrsa:Coord template]]
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[CategoryRoinn-seòrsa:Coord template|{{PAGENAME}}]]
[[CategoryRoinn-seòrsa:Coordinates templates|{{PAGENAME}}]]
[[CategoryRoinn-seòrsa:Templates generating Geo|{{PAGENAME}}]]
[[CategoryRoinn-seòrsa:Teamplaid sa Bheurla|{{PAGENAME}}]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[af:Sjabloon:Coord]]
Loidhne 247:
[[zh:Template:Coord]]
</includeonly>
<noinclude> [[CategoryRoinn-seòrsa:Teamplaid sa Bheurla]]
 
</noinclude>