Soft launch: Soldier biographies and research notes vary in completeness. Prefer class-roster, NARA, newspapers, and other cited sources for contested facts — treat Research notes as leads, not settled history. Anyone can correct a page; contact us with questions.

MediaWiki:Common.js

From Ritchie Boys Wiki
Revision as of 06:25, 18 August 2026 by Admin (talk | contribs) (Remove overseas flag from soldier pages.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/**
 * Hide leftover overseas-flag rows from imported soldier pages.
 * The infobox Lua no longer emits this field; some Technical record tables still do.
 */
$(function () {
	$('.infobox th, .soldier-infobox th, table.wikitable td').each(function () {
		var text = $(this).text().replace(/\s+/g, ' ').trim();
		if (text === 'Overseas' || text === 'Over Seas Flag') {
			$(this).closest('tr').remove();
		}
	});
});