Jump to content

Module talk:Infobox military conflict

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Halo FC (talk | contribs) at 18:17, 14 May 2021 (Template-protected edit request on 17 April 2021). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconMilitary history Template‑class
WikiProject iconThis module 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.
TemplateThis module does not require a rating on the project's quality scale.
Additional information:
Note icon
No existing task force includes this article in its scope; to propose a new one, please leave a message on the main project talk page.

Useful links


Template-protected edit request on 17 June 2020

Invoked with the status argument seems to cause an extra paragraph tag to be output for that status; see "Ongoing" in Indo-Pakistani wars and conflicts and 2020 China–India skirmishes. The extra padding/margin caused by this means misalignment with the "Status" header.

The status should be output without the <p> tag. 89.107.6.24 (talk) 01:13, 17 June 2020 (UTC)[reply]

Note to template editors: this happens only in certain situations. The Mediawiki parser wraps the word "Ongoing" in <p>...</p> tags when it is followed by a bulleted list, but not when it is alone. Paste and modify the infobox from Indo-Pakistani wars and conflicts into Special:ExpandTemplates to see the HTML output. – Jonesey95 (talk) 13:28, 17 June 2020 (UTC)[reply]
Seems to affect quite a few templates, e.g. Afghanistan conflict (1978–present) ProcrastinatingReader (talk) 14:38, 18 June 2020 (UTC)[reply]
okay. Frietjes (talk) 22:54, 19 June 2020 (UTC)[reply]

Template-protected edit request on 18 June 2020

CSS fix for the above issue. Making a separate request to separate this proposed fix from the issue, in case a different fix is desired.

At a glance the issue looks like one with the MediaWiki parser. The easiest solution seems to be a CSS fix. It applies to the direct first 'p' child of status to avoid any problems, and if any individual templates have a manual 'p' element as the first child and want their own styling (which would be unusual, contextually speaking) that won't cause issues as that would override with specificity.

Updated templates:

Test cases

Courtesy reminder to update to use the live styles.css, if you merge this change. ProcrastinatingReader (talk) 14:38, 18 June 2020 (UTC)[reply]

Template ERs somewhat backlogged. Pinging Primefac, Frietjes: can this change be merged into live? ProcrastinatingReader (talk) 12:27, 19 June 2020 (UTC)[reply]
okay. Frietjes (talk) 22:53, 19 June 2020 (UTC)[reply]

Custom argument values

Hello, I reuse this module for viwiki. I would like to use both English and Vietnamese parameters:

  • self.args.image and self.args.hình_ảnh // I have a error for "hình_ảnh"

How can use this? Thank you. Alphama (talk) 14:40, 26 October 2020 (UTC)[reply]

Coordinates

Just a quick ping of User:Eastfarthingan and User:Keith-264 regarding this archived thread establishing a consensus to remove title coordinates from military conflict articles as "redundant". As recently discussed at Template_talk:Coord#Clarification_of_what_"=title"_achieves, there's actually more to the "=title" option than just showing the coordinates of the title on non-mobile devices, although this wasn't well documented: it also establishes the template coordinates as being the single, primary location of the article subject (so that they'll show up on a map by anything that queries the Wikipedia API).

If a project template has been modified to omit title coordinates, you may want to change it back. --Lord Belbury (talk) 14:44, 16 November 2020 (UTC)[reply]

Oh no....Keith-264 (talk) 15:26, 16 November 2020 (UTC)[reply]
So this means I should stop removing 'title' in coord then? Eastfarthingan (talk) 20:38, 16 November 2020 (UTC)[reply]
If you think that the coordinates of conflicts should be visible on maps and features that use the API (like Special:Nearby), and if the only reason for removing 'title' was that you thought the coordinates looked redundant: yes, they should stay. The ones you've deleted should be brought back as well, but I don't know what the easiest way to do that would be. WP:AWB should be able to find and fix articles that use this infobox, but don't have a "title" for their coordinates. --Lord Belbury (talk) 17:50, 19 November 2020 (UTC)[reply]
Thank you for the information. I will start putting them back. Eastfarthingan (talk) 18:37, 19 November 2020 (UTC)[reply]

Template-protected edit request on 17 April 2021

Add custom header options for the other sections, and not just for combatants/belligerents Halo FC (talk) 14:36, 17 April 2021 (UTC)[reply]

 Not done: please make your requested changes to the module's sandbox first; see WP:TESTCASES. * Pppery * it has begun... 16:19, 2 May 2021 (UTC)[reply]
Hi, I've made what I thought were the right changes. I next made a custom infobox on my user sandbox page. Though when I previewed my user sandbox page with the edited module, I couldn't see any changes, none of the desired changes, the custom header text, I'm not sure what I need to do, hope you can help out, thanks Halo FC (talk) 18:17, 14 May 2021 (UTC)[reply]