Information for "MediaWiki:Gadget-switcher.js"

MediaWiki interface page

Basic information

Display titleMediaWiki:Gadget-switcher.js
Default sort keyGadget-switcher.js
Page length (in bytes)1,519
Namespace ID8
NamespaceMediaWiki
Page ID2756
Page content languageen - English
Page content modelJavaScript
Indexing by robotsAllowed
Number of redirects to this page0
Number of subpages of this page0 (0 redirects; 0 non-redirects)

Page protection

EditAllow only users with "editsitejs" permission (infinite)
MoveAllow only users with "editsitejs" permission (infinite)
View the protection log for this page.

Edit history

Page creatorTimothy (talk | contribs)
Date of page creation13:51, 31 March 2024
Latest editorTimothy (talk | contribs)
Date of latest edit13:51, 31 March 2024
Total number of edits1
Total number of distinct authors1
Recent number of edits (within past 90 days)0
Recent number of distinct authors0

SEO properties

Description

Content

Article description: (description)
This attribute controls the content of the description and og:description elements.
'use strict'; $( function () { $.each( document.querySelectorAll( '.switcher-container' ), function ( i, container ) { if ( i == 0 ) { mw.loader.using(['mediawiki.util'], function(){mw.util.addCSS('.switcher-container label input{margin-right:0.5em}')}) } var selected, $radio; var switchers = [] var radioName = 'switcher-' + i; $.each( container.children, function ( j, switcher ) { var label = switcher.querySelector( '.switcher-label' ); if ( !label || !label.childNodes.length ) { return; } switchers.push( switcher ); $radio = $( '<input>' ).prop({ type: 'radio', name: radioName }).on( 'click', function () { $( selected ).hide(); $( switcher ).show(); selected = switcher; } ); if ( !selected ) { // Mark the first one as selected selected = switcher; $radio.prop( 'checked', true ); } else if ( label.getAttribute( 'data-switcher-default' ) !== null ) { // Custom default $radio.click(); } else { // Hide non-default $( switcher ).hide(); } $( '<label style="display:block"></label>' ).append( $radio, label.childNodes ).appendTo( container ); $( label ).remove(); } ); if ( switchers.length > 1 ) { $( '<label style="display:block">Show all</label>' ).prepend( $( '<input>' ).prop({ type: 'radio', name: radioName }).on( 'click', function () { $( switchers ).show(); selected = switchers; } ) ).appendTo( container ); } if ( switchers.length === 1 ) { $radio.remove(); } } ); } );
Information from Extension:WikiSEO