Die Seite für Alsterweiler von Matthias C.S. Dreyer u.a.
MediaWiki:Common.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K |
K |
||
| (10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 18: | Zeile 18: | ||
*/ | */ | ||
| − | if (wgNamespaceNumber==6 && wgAction=='view') { | + | if (mw.config.get('wgNamespaceNumber')==6 && mw.config.get('wgAction')=='view') { |
| − | mw.loader.load('// | + | mw.loader.load('//imagemapedit.toolforge.org/ime.js'); |
}; | }; | ||
| Zeile 25: | Zeile 25: | ||
* Icons on the top right of the article. | * Icons on the top right of the article. | ||
* See also CSS | * See also CSS | ||
| − | + | * @source https://www.mediawiki.org/wiki/Snippets/Top_icons | |
| − | |||
* @version 5 | * @version 5 | ||
*/ | */ | ||
| Zeile 36: | Zeile 35: | ||
.prependTo( '#firstHeading' ); | .prependTo( '#firstHeading' ); | ||
} ); | } ); | ||
| + | |||
| + | |||
/**LINK FÜR ASK_ABFRAGEN ZU | /**LINK FÜR ASK_ABFRAGEN ZU | ||
* Additional linked icon for the searchlabel of result format "feed" | * Additional linked icon for the searchlabel of result format "feed" | ||
| − | + | * @since 1.9.0 | |
| − | + | * @rev 1 | |
| − | |||
| − | |||
* @author mwjames | * @author mwjames | ||
*/ | */ | ||
$( '.smw-feed-furtherresults > a' ).addClass( 'feedlink' ); | $( '.smw-feed-furtherresults > a' ).addClass( 'feedlink' ); | ||
| + | |||
| + | |||
| + | /**Answer_AI_rechtsunten | ||
| + | * gesteuert über eigene Anwendung extern und eingespeist in common.js | ||
| + | * mit dem folgenden Code | ||
| + | */ | ||
| + | |||
| + | const c = "<script type=\"text/javascript\" src=\"https://app.qanswer.ai/integration/widget.js\" async=\"true\" data-name=\"Alsterweiler\" data-owner=\"Alsterweiler\" data-type=\"text\" data-frontend=\"https://app.qanswer.ai/\"></script>" | ||
| + | const d = new DOMParser().parseFromString(c, "text/xml") | ||
| + | const sp = d.getElementsByTagName('script')[0] | ||
| + | const sc = document.createElement('script') | ||
| + | for (var i = 0; i < sp.attributes.length; i++) sc.setAttribute(sp.attributes[i].name, sp.attributes[i].value) | ||
| + | document.head.appendChild(sc) | ||
Aktuelle Version vom 4. Februar 2026, 12:41 Uhr
/**'''AUF KEINEN FALL LÖSCHEN'''
* WikiMiniAtlas is a popup click and drag world map.
* See [[meta:WikiMiniAtlas]] for more information.
* Maintainers: [[w:User:Dschwen]] Früher stand unten statt MediaWiki:OSM - MediaWiki:Wikiminiatlas - geändert am 23.11.29015
*/
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=MediaWiki:WikiMiniatlas.js&action=raw&ctype=text/javascript&smaxage=21600&maxage=86400' );
var wma_settings =
{
height : 400,
width : 700
}
/*'''AUF KEINEN FALL LÖSCHEN'''
* EditMap wird benötigt um die ImageKarten bearbeiten zu können.
* siehe dazu: https://meta.wikimedia.org/wiki/User:Dapete/ImageMapEdit#English
*/
if (mw.config.get('wgNamespaceNumber')==6 && mw.config.get('wgAction')=='view') {
mw.loader.load('//imagemapedit.toolforge.org/ime.js');
};
/**
* Icons on the top right of the article.
* See also CSS
* @source https://www.mediawiki.org/wiki/Snippets/Top_icons
* @version 5
*/
$( function ( $ ) {
$( '.Top_icon_raw' )
.removeClass( 'Top_icon_raw' )
.addClass( 'Top_icon_dynamic' )
.prependTo( '#firstHeading' );
} );
/**LINK FÜR ASK_ABFRAGEN ZU
* Additional linked icon for the searchlabel of result format "feed"
* @since 1.9.0
* @rev 1
* @author mwjames
*/
$( '.smw-feed-furtherresults > a' ).addClass( 'feedlink' );
/**Answer_AI_rechtsunten
* gesteuert über eigene Anwendung extern und eingespeist in common.js
* mit dem folgenden Code
*/
const c = "<script type=\"text/javascript\" src=\"https://app.qanswer.ai/integration/widget.js\" async=\"true\" data-name=\"Alsterweiler\" data-owner=\"Alsterweiler\" data-type=\"text\" data-frontend=\"https://app.qanswer.ai/\"></script>"
const d = new DOMParser().parseFromString(c, "text/xml")
const sp = d.getElementsByTagName('script')[0]
const sc = document.createElement('script')
for (var i = 0; i < sp.attributes.length; i++) sc.setAttribute(sp.attributes[i].name, sp.attributes[i].value)
document.head.appendChild(sc)