Main Page find-a-soldier search form
Move soldier disclaimers to page bottom
Line 2: Line 2:
  * Hide leftover imported rows the infobox no longer shows.
  * Hide leftover imported rows the infobox no longer shows.
  * Title-case ALL-CAPS soldier names in category lists (native lists use the real page title).
  * Title-case ALL-CAPS soldier names in category lists (native lists use the real page title).
  * Put the research-notes disclaimer under that section heading.
  * Move research-notes and sources-confidence cues to the bottom of soldier pages.
  * Split mashed CSV notes into separate bullets, then link MII/IPW team codes.
  * Split mashed CSV notes into separate bullets, then link MII/IPW team codes.
  * Build the Main Page find-a-soldier search form (raw HTML forms are stripped from wikitext).
  * Build the Main Page find-a-soldier search form (raw HTML forms are stripped from wikitext).
Line 26: Line 26:
$form.append($row);
$form.append($row);
$slot.find('.home-find-title').after($form);
$slot.find('.home-find-title').after($form);
}());
(function moveSoldierFooterCues() {
var $out = $('.mw-parser-output').first();
if (!$out.length) {
return;
}
var $notes = $out.find('.research-notes-disclaimer').first();
var $sources = $out.find('.source-confidence-cue').first();
if (!$notes.length && !$sources.length) {
return;
}
var $footer = $out.find('.soldier-page-footer-notes').first();
if (!$footer.length) {
$footer = $('<div class="soldier-page-footer-notes"></div>');
$out.append($footer);
}
if ($notes.length) {
$footer.append($notes);
}
if ($sources.length) {
$footer.append($sources);
}
}());
}());


Line 167: Line 190:
}
}
});
});
var $disclaimer = $('.mw-parser-output .research-notes-disclaimer').first();
if ($disclaimer.length) {
$('.mw-parser-output').prepend($disclaimer);
}


function teamHref(name) {
function teamHref(name) {