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!
== Edit request 28 December 2025 == {{Edit fully-protected|answered=yes}} '''Description of suggested change:''' To help solve the problem described at [[Module_talk:Coordinates#Issue_with_inline_coords|Issue with inline coords (above)]] I have written a new function that can be called to force coordinates to display inline. (Note: if/when implemented I will add documentation for this). '''New code:''' please insert at [[Module:Coordinates#L-765|Line 765]] <syntaxhighlight lang="lua" style="overflow: auto"> function coordinates.forceinline(frame) local text text = mw.ustring.gsub(frame.args[1], 'geo%-inline%-hidden', 'geo-inline') text = mw.ustring.gsub(text, 'style=\"display:none\"', '') return text end </syntaxhighlight> '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 19:46, 28 December 2025 (UTC) :{{ping|Pppery|Izno}} could one of you possibly review the above request? Trying to fix a problem that is plaguing a large number of settlement pages. '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 05:40, 31 December 2025 (UTC) :: I don't like the idea of this. It seems like if you specify "display=title" explicitly then you want the coordinates not to display inline and that wish should be respected. But if another admin feels differently they are welcome to deploy. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 16:25, 1 January 2026 (UTC) {{Infobox settlement | coordinates = {{coord|1|N|2|W|display=t}} }} :::{{ping|Pppery}} That is totally valid. To be clear, this is to be used in a VERY specific use case in an Infobox which is demonstrated at right. Note how the coordinates field is blank just showing {{code|Coordinates:}}. That is the problem I am trying to address. If you have a different/better solution, I genuinely would love it. This is just the best way I could think of to solve the issue... --'''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 21:58, 1 January 2026 (UTC) :[[User:Xaosflux]] as the protecting admin, could you please review this request? '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 00:23, 8 January 2026 (UTC) ::{{ping|Zackmann08}} Couldn't this be done by adding <code><nowiki>{{#if:{{{coordinates|}}}|other stuff}}</nowiki></code> to data29 of {{tl|Infobox settlement}}? IIUC, the coord template expands before it gets parsed there, and so it should empty by the time it reaches this if statement. β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 20:56, 11 January 2026 (UTC) :::{{Ping|Hike395}} I'm not sure I follow. The coordinates param is not empty in the usecase I'm addressing. It is just setting the coords to be in the title, not to display inline so I don't see how that would work, but maybe I'm not following... '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 22:58, 11 January 2026 (UTC) ::::Oops, nm, I just tested it and it doesn't work. Instead, you could detect an inline coordinate template invocation like this: :::::<code><nowiki>{{#if:{{#invoke:string|match|s={{{coordinates|}}}|pattern="geo-inline"|ignore_errors=true|plain=true}}|some stuff}}</nowiki></code> ::::This will only show "some stuff" if {{para|coordinates}} has inline coordinates. β [[User:Hike395|hike395]] ([[User talk:Hike395|talk]]) 23:25, 11 January 2026 (UTC) :::::So that is an interesting solution and I'm not opposed to it. But I wonder if it is a bandaid on the larger problem? Is that a temporary fix or the actual solution here. I'm not sure... '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 23:28, 11 January 2026 (UTC) :::::Side note, {{u|hike395}} I want to test this out, but you've got another thing going in the {{tl|Infobox settlement/sandbox}} at the moment with the image upright stuff... Let me know when that process is concluded and I'll experiment with this? Don't want to mess you up! '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 23:31, 11 January 2026 (UTC) ::::::I agree with Pppery that forcing inline is not the correct solution, because it overrides what editors are expressing. We can make a general template <code><nowiki>{{If inline coordinates|coordinates|if true|if false}}</nowiki></code> and that would be a general solution for use in infoboxes. 03:31, 12 January 2026 (UTC) :::::::{{withdrawn}} '''[[User:Zackmann08|<span style="color:#00d5ff">Zack</span><span style="color:#007F94">mann</span>]]''' (<sup>[[User_talk:Zackmann08|Talk to me]]</sup>/<sub>[[Special:Contributions/Zackmann08|<span style="color:orange">What I been doing</span>]]</sub>) 04:03, 12 January 2026 (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