Template talk:Infobox military installation

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Military history (Rated Template-Class)
MILHIST This template is within the scope of the Military history WikiProject. If you would like to participate, please visit the project page, where you can join the project and see a list of open tasks. To use this banner, please see the full instructions.
Temp Templates and modules do not require a rating on the quality assessment scale.

Simplification idea[edit]

So as it stands now, we have parameters set up so that the template has the ability to include both a coordinates template and the ability to add degrees, minutes, and seconds as well. Is there any reason that we need the latter option and cannot combine it into the former one? Also, I noticed on the 2015 San Bernardino shooting page that there is the ability to have a zoomable map of sorts, so would anyone else be supportive of adding that to the infobox in the near future, as well? Kevin Rutherford (talk) 05:19, 4 December 2015 (UTC)

Kevin Rutherford, sure, you can replace |latitude= with |latd=. changing the documentation is easy. changing all the articles will require a bot. the zoomable map feature is available to any infobox which uses {{location map}}. you just add a '#' between the different maps. Frietjes (talk) 15:41, 5 December 2015 (UTC)
Beyond your support, do you think this is something that would be necessary, as I figure doing that would make it a bit more user-friendly, as the coordinates bit can sometimes be a pain to learn. Kevin Rutherford (talk) 00:20, 8 December 2015 (UTC)
not necessary, but would simplify the template code if the alternative syntax were corrected and removed. Frietjes (talk) 15:35, 8 December 2015 (UTC)
Thanks for letting me know, as I will try to get around to a bot request in the next day or so. Kevin Rutherford (talk) 03:44, 10 December 2015 (UTC)

Coordinates problem[edit]

There are a lot of articles with script errors. That seems to have been triggered by a recent edit to this template. Consider Marmion Tower for example. It uses Template:Infobox Military Structure which is a redirect to Template:Infobox military installation. The infobox in the article contains the following which also shows the result from Special:ExpandTemplates.

|coordinates = {{gbmapping|SE266787}}

{{gbmapping|SE266787}} → [[Ordnance Survey National Grid|grid reference]] <span style="white-space: nowrap" class="plainlinks nourlexpansion">[https://tools.wmflabs.org/os/coor_g/?pagename=Marmion_Tower&params=SE266787_region%3AGB_scale%3A25000 SE266787]</span>[[Category:Articles with OS grid coordinates]]

@Jonesey95: Any thoughts on what should be done? I have no idea what {{gbmapping}} is supposed to output but the above clearly won't work for coordinates. Marmion Tower has another coordinates problem, namely it has latitude and longitude values in the infobox, and {{coord}} in external links. A fair bit of work by someone who understands coordinates is needed—sorry that I won't be much use for that. Johnuniq (talk) 09:27, 14 December 2016 (UTC)

First thing first - undo the edit. Then someone else can sort the problem out at leisure. But that the template is a redirect is not the problem (I tested that). GraemeLeggett (talk) 10:18, 14 December 2016 (UTC)
I have worked around the problem for now. All of those articles should no longer be showing script errors, and the maps should be visible. – Jonesey95 (talk) 15:39, 14 December 2016 (UTC)
Thanks, it looks good. Johnuniq (talk) 00:47, 15 December 2016 (UTC)

Feature request[edit]

I would like to request a feature where we can embed this template as a child into other templates. Currently we can embed things into this template with |module = but I do not see that it is possible the other way around. The case for embedding this is military installations that are decommissioned and turned into parks or museums, it would make sense to have this as a child template.--Cs california (talk) 08:10, 16 April 2017 (UTC)

Cs california, I added the optional |embed=yes. please let me know if you use this somewhere in case we want to tweak the resulting output (i.e., adding an additional heading or divider something). Frietjes (talk) 14:44, 15 May 2017 (UTC)
Frietjes thanks I will try it out--Cs california (talk) 06:35, 16 May 2017 (UTC)
Ok just tested here: Fort Funston, Everything displays fine except for one field | ensign = There is also an issue distinguishing the box out as in Fort Cronkhite, maybe some kind of header indicating it is a military installation. Not sure what is the best way to feature this section in the infobox.--Cs california (talk) 07:24, 16 May 2017 (UTC)
Cs california, I made some changes. we can add a default header, like "military installation" if you think it's useful. for now, it will add a thin divider in the case when the |name= and |ensign= are both empty. by the way your ping didn't work since you didn't ping and sign at the same time, but I was watching the page, so I saw your comments :) Frietjes (talk) 13:03, 16 May 2017 (UTC)
Cool looks a lot better thanks -Cs california (talk) 08:27, 19 May 2017 (UTC)