Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Module talk
:
Coordinates
(section)
Add topic
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
Add topic
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Add a "precedence" parameter == Hello. Can https://en.wikipedia.org/w/index.php?title=Module:Coordinates/sandbox&oldid=1319497477 be synced to [[Module:Coordinates]] please? This should add a "level" parameter that can be set to "primary" and that defaults to "secondary", matching the behavior of the [[mw:Extension:GeoData|GeoData extension]] that this module relies on. We currently overload "display=title" to indicate that coordinates are the primary ones. Primary in this case means which coordinates get returned for the whole page in queries such as <https://en.wikipedia.org/w/api.php?action=query&prop=coordinates&titles=Cincinnati>. I'd like greater flexibility within this template and I'd like to be more explicit about the behavior by adding this "level" parameter. Any and all code review is welcome. The name "level" isn't great. I considered doing "display=primary" initially but that seemed worse. Level or order matches what we typically call words such as primary, secondary, or tertiary. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 04:40, 30 October 2025 (UTC) :It's a bit unfortunate choice of the parameter name. In this context, I thought level has something to do with altitude. How about "importance level", prominence, significance, priority, relevance, precedence, or primacy? [[Special:Contributions/98.15.131.172|98.15.131.172]] ([[User talk:98.15.131.172|talk]]) 09:26, 30 October 2025 (UTC) ::Precedence may be better, yeah. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 15:31, 30 October 2025 (UTC) {{tlx|sudo}} Based on feedback, I switched to "precedence" in <https://en.wikipedia.org/w/index.php?title=Module:Coordinates/sandbox&oldid=1319561810>. Can this be please be reviewed for acceptance? --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 15:34, 30 October 2025 (UTC) :Should the <nowiki>{{#coordinates:}}</nowiki> not be included if the params are |display=title|precedence=secondary ? As precedence is currently ignored if display has title, or would then never be a case with the title coord not being the primary? -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 18:18, 30 October 2025 (UTC) :: Oh, good point. I believe this is now addressed in <https://en.wikipedia.org/w/index.php?title=Module:Coordinates/sandbox&oldid=1319669517>. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 05:15, 31 October 2025 (UTC) ::: {{ping|MZMcBride}} Did a little testing and didn't seem to work all the time, so made [https://en.wikipedia.org/w/index.php?title=Module:Coordinates/sandbox&diff=1319687729&oldid=1319669517 some changes]. Did the check for display=title and precedence=secondary first and also set the value to blank rather than secondary that gets passed over to #coordinates as it didn't seem to accept secondary. Can you check that it looks ok with my changes? -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 08:49, 31 October 2025 (UTC) ::::I like precedence better than level, but are we overspecifying this, making it easier to make typos and other errors? What if we just had {{para|primary|yes}} for any primary coords on a page and {{para|primary|no}} for all other (secondary) coordinates? β [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:12, 2 November 2025 (UTC) :::::Yeah, this might be a lot cleaner and clearer. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 18:55, 3 November 2025 (UTC) ::::::I meant to say, in case it is not implied: {{para|primary|yes}} would be the default, as it essentially is now, so really only {{para|primary|no}} would need to be used for secondary coordinates. We could also do {{para|secondary|yes}} if that makes more logical sense. β [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 20:41, 4 November 2025 (UTC) :::::::We currently set coords to secondary by default and only to primary if display=title is set. I'm trying to add functionality so that we can set primary coords without needing to overload display=title. We do not want every {{tlx|coords}} on the page trying to set itself as primary by default as far as I know. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 01:22, 7 November 2025 (UTC) ::::::::Indeed. I either didn't know that or had forgotten. Carry on. β [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 13:23, 7 November 2025 (UTC)
Summary:
Please note that all contributions to LarpOfHoi4 Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LarpOfHoi4 Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Module talk
:
Coordinates
(section)
Add topic