Jump to content
Wikipedia The Free Encyclopedia

Template talk:Infobox service record

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This template does not require a rating on Wikipedia's content assessment scale.
It is of interest to the following WikiProjects:
WikiProject icon Military history
WikiProject icon 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.Military historyWikipedia:WikiProject Military historyTemplate:WikiProject Military historymilitary history
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.
Core work areas
Assessment
Main page
A-Class FAQ
B-Class FAQ
A-Class review requests
Assessment requests
Current statistics
Review alert box
Contests
Main page
Contest entries
Scoring log archive
Scoreboard archive
Coordination
Main page + talk
Handbook
Bugle newsroom talk
ACM eligibility tracking
Discussion alert box
Incubator
Main page
Current groups and initiatives
Special projects
Majestic Titan talk
Member affairs
Membership
Full list talk
Active / Inactive
Userboxes
Awards
Main page talk
A-Class medals
A-Class crosses
WikiChevrons w/ Oak Leaves
Resources
Guidelines
Content
Notability
Style
Templates
Infoboxes
Command structure doc · talk
Firearm cartridge doc · talk
Military award doc · talk
Military conflict doc · talk
Military installation doc · talk
Military memorial doc · talk
Military person doc · talk
Military unit doc · talk
National military doc · talk
Military operation doc · talk
Service record doc · talk
Militant organization doc · talk
Weapon doc · talk
Navigation boxes doc · talk
Campaignboxes doc · talk
Project banner doc · talk
Announcement & task box
Discussion alert box
Review alert box
Template design style doc · talk
Showcase
Featured articles 1529
Featured lists 149
Featured topics 41
Featured pictures 559
Featured sounds 69
Featured portals 5
A-Class articles 689
A-Class lists 40
Good articles 5,606
Automated lists
Article alerts
Most popular articles
New articles
Nominations for deletion
Task forces
General topics
Fortifications
Intelligence
Maritime warfare
Military aviation
Military culture, traditions, and heraldry
Military biography
Military historiography
Military land vehicles
Military logistics and medicine
Military memorials and cemeteries
Military science, technology, and theory
National militaries
War films
Weaponry
Nations and regions
African military history
Asian military history
Australia, New Zealand and South Pacific military history
Balkan military history
Baltic states military history
British military history
Canadian military history
Chinese military history
Dutch military history
European military history
French military history
German military history
Indian military history
Italian military history
Japanese military history
Korean military history
Middle Eastern military history
Nordic military history
North American military history
Ottoman military history
Polish military history
Roman and Byzantine military history
Russian, Soviet and CIS military history
South American military history
South Asian military history
Southeast Asian military history
Spanish military history
United States military history
Periods and conflicts
Classical warfare
Medieval warfare
Early Muslim military history
Crusades
Early Modern warfare
Wars of the Three Kingdoms
American Revolutionary War
Napoleonic era
American Civil War
World War I
World War II
Cold War
Post-Cold War
Related projects
Blades
Espionage
Firearms
Pritzker Military Museum & Library
Piracy
Ships

I don't know if the bold type for the field names, like "Commanders", "Victories", etc., is standard for other Military infoboxes, but used within ship infoboxes, the bold type stands out from other fields in other templates which are not in bold type. Should the bold type be tied to the "is_ship" field? Also, what about colons after the field names? — Bellhalla (talk) 19:16, 4 November 2008 (UTC) [reply ]

Yes, the current format is standard in military infoboxes, but it would be fairly trivial to tie it to the ship control field. Just let me know what changes you'd like to take place when it's inside the ship infobox. Kirill (prof) 01:36, 5 November 2008 (UTC) [reply ]
How about when "is_ship" is yes, make the field text not bold and add a colon at the end so it would be:
  • Victories:
rather than:
  • Victories
Also, could another field with a name along the lines of "is_multi" be added that would eliminate the final "|}" from the template? This would allow the template to be used in a ship infobox more than once or in a location other than the last 'slot' of the infobox, for example. (See Austro-Hungarian submarine U-XI for a manually coded example of why this would be useful.) Having this as a separate field, rather than being tied to "is_ship", would prevent the breakage of many instances already in use in ship infoboxes, but still allow the flexibility to use it as needed. Many thanks in advance. — Bellhalla (talk) 13:11, 6 November 2008 (UTC) [reply ]
Ok, all done; please let me know if anything doesn't work as it should. Kirill (prof) 13:53, 6 November 2008 (UTC) [reply ]
It looks like with "is_multi" set to yes that it's generating an extra "}" at the end. Take a look at Austro-Hungarian submarine U-XI (updated with the template) to see what it's doing. As it is now, there are two "}}" at the top of the article. Commenting out one instance generates only one "}". But, wow. That was fast. — Bellhalla (talk) 15:37, 6 November 2008 (UTC) [reply ]
I got it fixed. Instead of interpreting the last part of the last conditional as "generate |} and close the conditional" it was interpreting it as "generate |, close the conditional, and generate }". I created a subtemplate at Template:Service record/CloseTable that generates the proper table close code and tested it in the template sandbox using test cases here and everything seemed to work. — Bellhalla (talk) 23:41, 6 November 2008 (UTC) [reply ]

Whitespace at the top of ship articles

[edit ]

All ship articles transcluding this template appear to have an extra blank line at the top, before the infobox. Not sure how long this has been an issue. --Paul_012 (talk) 03:10, 3 July 2021 (UTC) [reply ]

This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.

Please remove the line break between lines 3 and 4 (after the end of the <!-- not standalone (in a primary infobox) --> comment), or move the closing comment tag onto the beginning of line 4. The extra new line is causing white space at the top of articles. --Paul_012 (talk) 08:04, 3 July 2021 (UTC) [reply ]

 Done Good catch, Paul_012! I checked on German submarine U-2 (1935) and this seems to have done the trick, but let me know if this didn't fix it for some reason. The code in question has been in the template for over five years, so it's odd that no one mentioned it... Perhaps there was some change to a transcluded template, or to the parser itself, that caused this to start being an issue. -- Tamzin (she/they) | o toki tawa mi. 08:59, 3 July 2021 (UTC) [reply ]

AltStyle によって変換されたページ (->オリジナル) /