User:Bosco/Unsigned helper.js: Difference between revisions
From Test Wiki
Content deleted Content added
fix references to object removed in previous edit |
test literal '{{}}' |
||
| Line 11: | Line 11: | ||
m = '0' + m; |
m = '0' + m; |
||
const formattedTimestamp = `${h}:${m}, ${ts.getUTCDate()} ${months[ts.getUTCMonth()]} ${ts.getUTCFullYear()} (UTC)`; |
const formattedTimestamp = `${h}:${m}, ${ts.getUTCDate()} ${months[ts.getUTCMonth()]} ${ts.getUTCFullYear()} (UTC)`; |
||
return ' |
return '{{subst:' + template + '|' + user + '|' + formattedTimestamp + '}}'; |
||
} |
} |
||
| Line 60: | Line 60: | ||
} }, |
} }, |
||
modal: true, |
modal: true, |
||
title: 'Adding |
title: 'Adding {{unsigned}}' |
||
}); |
}); |
||
| Line 188: | Line 188: | ||
if (!window.charinsertCustom['Insert']) |
if (!window.charinsertCustom['Insert']) |
||
window.charinsertCustom['Insert'] = ''; |
window.charinsertCustom['Insert'] = ''; |
||
window.charinsertCustom['Insert'] += ' |
window.charinsertCustom['Insert'] += ' {{unsigned}}\x10unsignedHelperAddUnsignedTemplate'; |
||
if (!window.charinsertCustom['Wiki markup']) |
if (!window.charinsertCustom['Wiki markup']) |
||
window.charinsertCustom['Wiki markup'] = ''; |
window.charinsertCustom['Wiki markup'] = ''; |
||
window.charinsertCustom['Wiki markup'] += ' |
window.charinsertCustom['Wiki markup'] += ' {{unsigned}}\x10unsignedHelperAddUnsignedTemplate'; |
||
if (window.updateEditTools) |
if (window.updateEditTools) |
||
window.updateEditTools(); |
window.updateEditTools(); |
||