MediaWiki talk:MatchSplit.js: Difference between revisions
Add topicm →ru |
Waldyrious (talk | contribs) add link to docs |
||
| Line 1: | Line 1: | ||
{{notice|For documentation about this tool, see [[:en:Help:Match and split]].}} |
|||
==fa.wikisource== |
==fa.wikisource== |
||
please add |
please add |
||
Latest revision as of 12:55, 3 May 2024
| For documentation about this tool, see en:Help:Match and split. |
fa.wikisource
[edit]please add
- 'fa':'برگه',
or
- 'fa':'%D8%A8%D8%B1%DA%AF%D9%87', (like other none Latin wikis)
- also
- 'fa': 104,
thank you Reza1615 12:02, 5 October 2011 (UTC)
Done Candalua 19:38, 23 January 2012 (UTC)
et.wikisource
[edit]Please add
- 'et':'Lehek%C3%BClg',
and
- 'et': 102,
Thanks! 88.196.241.249 12:34, 14 June 2012 (UTC)
- done — Phe 12:54, 14 June 2012 (UTC)
Syntaxe
[edit]Server side now support adding a step= to the __MATCH__ pagename, old syntaxe is supported ==__MATCH__:[[Page:Columelle - L'Économie rurale, Tome 1, trad Du Bois, 1844.djvu/127]]== do the same things than ==__MATCH__:[[Page:Columelle - L'Économie rurale, Tome 1, trad Du Bois, 1844.djvu/127|step=1]]== while ==__MATCH__:[[Page:Columelle - L'Économie rurale, Tome 1, trad Du Bois, 1844.djvu/127|step=2]]== while try to match page 127, then 129, then 131. This allow to match and split bilingual works. step= can use any integer value though I guess only step=2 is useful. — Phe 13:47, 12 February 2016 (UTC)
bn.wikisource
[edit]- 'bn':'পাতা',
or
- 'bn':'.E0.A6.AA.E0.A6.BE.E0.A6.A4.E0.A6.BE', -- Bodhisattwa (talk) 15:54, 7 September 2016 (UTC)
- @Bodhisattwa:
Done (I don't fell confortable with JavaScript, can someone confirm it work). Cdlt, VIGNERON (talk) 15:58, 9 September 2016 (UTC)
nap.source
[edit]Can you please add:
nap:Paggena
Thanks! --Ruthven (talk) 08:56, 21 December 2019 (UTC)
- I don’t have the rights to do it (see m:Interface administrators) @Ankry, Jon Harald Søby: could you do it? Cdlt, VIGNERON (talk) 09:19, 21 December 2019 (UTC)
pt
[edit]Please change pt value to Página. Lugusto (talk) 20:21, 26 March 2020 (UTC)
ru
[edit]@Phe, Candalua: in Russian Wikisource don't works the link "split" addition due to a typo in namespace. Could you in "function add_split_button()" replace
var prefix = page_prefixes[mw.config.get('wgContentLanguage')]+":";
to
var prefix = mw.config.get('wgFormattedNamespaces')[104]+":";
? In addition, then the "page_prefixes" definition may become unnecessary. --Vladis13 (talk) 12:08, 31 May 2020 (UTC)
- Actually, the ID 104 doesn't correspond to the Page namespace in all Wikisources. On pt.ws, for example, its 106. Meanwhile, this code should work:
pageNamespace = mw.config.get('wgNamespaceIds')['page']; mw.config.get('wgFormattedNamespaces')[pageNamespace];
- Albertoleoncio (talk) 14:24, 26 January 2024 (UTC)
Toolbar button for the "new" toolbar
[edit]Hi, The gadget doesn't add a button to the current standard toolbar as advertised. Something like the following works:
var customizeToolbar = function () {
$('#wpTextbox1').wikiEditor('addToToolbar', {
'section': 'advanced',
'group': 'insert',
'tools': {
'smile': {
label: 'Match',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/2/25/Ic_set_split_24px.svg/24px-Ic_set_split_24px.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "==__MATCH__:[[",
post: "]]=="
}
}
}
}
});
};
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar … */
if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {
mw.loader.using( 'user.options' ).then( function () {
// This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]])
if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {
$.when(
mw.loader.using( 'ext.wikiEditor' ), $.ready
).then( customizeToolbar );
}
} );
}
Does anyone still use the old toolbar? I can't even get it to show up any more! Inductiveload (talk) 10:43, 27 November 2020 (UTC)