Gebruiker:Southparkfan/defsam.js: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
(Nieuwe pagina aangemaakt met '//******************************** // Eigen script om standaard * // samenvattingen mogelijk te * // maken. * // ...') |
|||
Regel 7: | Regel 7: | ||
// Problemen/bugs: Mijn overleg * | // Problemen/bugs: Mijn overleg * | ||
//******************************** | //******************************** | ||
− | + | ||
//****************************************** | //****************************************** | ||
//Toevoegen van de samenvattingen: | //Toevoegen van de samenvattingen: | ||
// | // | ||
− | + | ||
array_sam = | array_sam = | ||
− | { " | + | { "dplinkfix": "foutieve verwijzing naar dp veranderd mbv [[Speciaal:Disambiguations]]", |
− | " | + | "linkfix": "link gewijzigd", |
− | " | + | "dplinkfix with tool": "link->dp-fix met [[Gebruiker:Sumurai8/tools|dp-tool]]", |
− | " | + | "Ontwees": "Pagina ontweest met behulp van [[Speciaal:Weespaginas]]", |
− | " | + | "Automatisch": "(Semi-)automatisch ahv bron" |
} | } | ||
− | + | ||
//Tot hier | //Tot hier | ||
//****************************************** | //****************************************** | ||
− | + | ||
jQuery( document ).ready( function( $ ) { | jQuery( document ).ready( function( $ ) { | ||
$('<span id="standaardsamenvattingen">Standaard: </span>').insertBefore( $('#wpSummaryLabel') ) | $('<span id="standaardsamenvattingen">Standaard: </span>').insertBefore( $('#wpSummaryLabel') ) |
Versie van 23 mei 2013 21:00
//********************************
// Eigen script om standaard *
// samenvattingen mogelijk te *
// maken. *
// *
// By: Sumurai8 *
// Problemen/bugs: Mijn overleg *
//********************************
//******************************************
//Toevoegen van de samenvattingen:
//
array_sam =
{ "dplinkfix": "foutieve verwijzing naar dp veranderd mbv [[Speciaal:Disambiguations]]",
"linkfix": "link gewijzigd",
"dplinkfix with tool": "link->dp-fix met [[Gebruiker:Sumurai8/tools|dp-tool]]",
"Ontwees": "Pagina ontweest met behulp van [[Speciaal:Weespaginas]]",
"Automatisch": "(Semi-)automatisch ahv bron"
}
//Tot hier
//******************************************
jQuery( document ).ready( function( $ ) {
$('<span id="standaardsamenvattingen">Standaard: </span>').insertBefore( $('#wpSummaryLabel') )
jQuery.each(array_sam, function(naam, sam) {
$('#standaardsamenvattingen').append(
$('<a style="cursor:pointer; cursor:hand;"></a>').text(naam).click( function() {
$('#wpSummary').val(sam);
} )
)
} )
$(document.createTextNode('; ')).insertAfter('#standaardsamenvattingen a')
} );