Diferencia entre revisiones de «Usuario:Stargazer/common.js»

m
Added a lot of reference templates to dropdown
m (Working on adding a dropdown for reference templates)
m (Added a lot of reference templates to dropdown)
});
 
//Add new references dropdown (eventually)
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
groups: {
list: {
tools: {
templates references: {
label: 'TemplatesReferences',
type: 'select',
list: {
'Pingbook-button': {
label: '{{Pingbook ref}}',
action: {
type: 'encapsulate',
options: {
pre: '{{Pingbook ref|',
post: '}}'
}
}
},
'Clearwob-button': {
label: 'Clear{{wob ref}}',
action: {
type: 'encapsulate',
options: {
pre: '{{Clear}}wob ref|',
post: '}}'
}
},
'Done-button': { },
label: 'Doneref-button',: {
action label: '{{ref}}',
type action: 'encapsulate',{
options type: {'encapsulate',
pre options: '{{Done}}'
} pre: '{{ref|',
post: '}}'
}
}
},
'epigraph-button': {
}
label: '{{epigraph ref}}',
}
action: {
}
type: 'encapsulate',
} );
options: {
pre: '{{epigraph ref|',
post: '}}'
}
}
},
'au-button': {
label: '{{au ref}}',
action: {
type: 'encapsulate',
options: {
pre: '{{au ref|',
post: '}}'
}
}
},
'msh-button': {
label: '{{msh ref}}',
action: {
type: 'encapsulate',
options: {
pre: '{{msh ref|',
post: '}}'
}
}
},
'file-button': {
label: '{{file ref}}',
action: {
type: 'encapsulate',
options: {
pre: '{{file ref|',
post: '}}'
}
}
},
'url-button': {
label: '{{url ref}}',
action: {
type: 'encapsulate',
options: {
pre: '{{url ref|',
post: '}}'
}
}
}
}
}
}
}
}
} );
};