w/skins/MinervaNeue/resources/skins.minerva.scripts/cleanuptemplates.js
/**
		 * Render a banner in a containing element.
		 * @param {jQuery.Object} $container to render the page issues banner inside.
		 * @param {string} labelText what the label of the page issues banner should say
		 * @param {string} headingText the heading of the overlay that is created when the page issues banner is clicked
		 * @ignore
		 */
Render a banner in a containing element.
@param {jQuery.Object} $container to render the page issues banner inside.
@param {string} labelText what the label of the page issues banner should say
@param {string} headingText the heading of the overlay that is created when the page issues banner is clicked
@ignore
Render a banner in a containing element . @param { jQuery . Object } $container to render the page issues banner inside . @param { string } labelText what the label of the page issues banner should say @param { string } headingText the heading of the overlay that is created when the page issues banner is clicked @ignore
function createBanner( $container, labelText, headingText ) {
			var selector = 'table.ambox, table.tmbox, table.cmbox, table.fmbox',
				$metadata = $container.find( selector ),
				issues = [],
				$link;
			$metadata.find( '.NavFrame' ).remove();
			$metadata.each( function () {
				var issue,
					$this = $( this );
				if ( $this.find( selector ).length === 0 ) {
					issue = extractMessage( $this );
					issues.push( issue );
				}
			} );
			$link = createLinkElement( labelText );
			$link.attr( 'href', '#/issues' );
			overlayManager.add( /^\/issues$/, function () {
				return new CleanupOverlay( {
					issues: issues,
					headingText: headingText
				} );
			} );
			if ( $metadata.length ) {
				$link.insertAfter( $( 'h1#section_0' ) );
				$metadata.remove();
			}
		}
function createBanner ( $container , labelText , headingText ) { var selector = 'table.ambox, table.tmbox, table.cmbox, table.fmbox' , $metadata = $container . find ( selector ) , issues = [ ] , $link ; $metadata . find ( '.NavFrame' ) . remove ( ) ; $metadata . each ( function ( ) { var issue , $this = $ ( this ) ; if ( $this . find ( selector ) . length === 0 ) { issue = extractMessage ( $this ) ; issues . push ( issue ) ; } } ) ; $link = createLinkElement ( labelText ) ; $link . attr ( 'href' , '#/issues' ) ; overlayManager . add ( / ^\/issues$ / , function ( ) { return new CleanupOverlay ( { issues : issues , headingText : headingText } ) ; } ) ; if ( $metadata . length ) { $link . insertAfter ( $ ( 'h1#section_0' ) ) ; $metadata . remove ( ) ; } }
Render a banner in a containing element.
Render a banner in a containing element .
// clean it up a little