2f76224ac0
Enable localization of special page.
...
- Improved: Special Page can now be translated using messages.
2017-09-03 14:24:28 +02:00
d34b2090c0
Harden test for redirects.
...
- Fix: Do not crash when testing redirect target on empty page.
2017-09-03 09:35:11 +02:00
b879fd409d
Fix regex for existing link detection.
...
- Fix: Detection of existing links had a bug.
2017-09-03 09:33:38 +02:00
96bce45172
Do not use the reserved word default as function name.
2017-09-01 05:39:51 +02:00
a461e19433
Fix CLI script to work with namespaces.
2017-08-31 21:24:23 +02:00
85e09b8f5d
Fix special page for use with namespaces.
2017-08-31 21:13:58 +02:00
4c67935491
Parse contents of <noautolink> tags.
...
- Fix: Contents of <noautolink> tags are now properly parsed as Wiki text.
Closes #34 .
2017-08-31 21:02:33 +02:00
b856d3487e
Add $wgLinkTitlesSameNamespace option.
2017-08-31 20:53:18 +02:00
256feb50d9
Add Source class, refactor.
2017-08-31 20:37:49 +02:00
6bf1d3f072
Change nameSpace to all lowercase everywhere.
...
Makes it consistent with MW's spelling of the term.
2017-08-31 13:56:42 +02:00
352add204f
Prefix links with namespace if needed.
...
- Fix: Links to other namespaces were not prefixed properly.
2017-08-31 13:52:57 +02:00
6294ee8679
Fix blacklist.
...
- Fix: Blacklist did not always work properly
2017-08-30 22:39:17 +02:00
4c3250e021
Add tests for headings.
2017-08-30 22:23:03 +02:00
9484e5b13d
Fix Splitter tests.
2017-08-30 17:48:04 +02:00
1ba5a7b799
Fix bug with non-latin languages.
...
- Fix: When $wgCapitalLinks was true, the extension would not work with non-latin languages.
Closes #7 .
2017-08-29 06:08:30 +02:00
04aa26d6a2
Add linker tests, fix firstOnly behavior.
...
- Fix: The firstOnly option finally also works if a page contains a link to a given other page that was not currently added by the extension, i.e. that existed prior to an edit or that was manually added.
Closes #12 .
2017-08-29 05:42:49 +02:00
0d9e74d7e9
Refactor Extension class.
2017-08-27 23:09:38 +02:00
2c0eb6839b
Revise Special class.
...
- Change: The $wgLinkTitlesBatchTimeLimit configuration variable was renamed to $wgLinkTitlesSpecialPageReloadAfter.
2017-08-27 23:06:50 +02:00
38284b11a1
Rename maintenance script.
2017-08-27 22:53:01 +02:00
1e27f47750
Rename Delimiters to Splitter; add tests.
2017-08-27 22:32:49 +02:00
3f2141e6c7
Add Target unit test.
2017-08-27 22:25:22 +02:00
35b174771e
Refactor Linker class, add Target class.
2017-08-27 22:18:22 +02:00
5f7c96459d
Make Linker class instantiable.
2017-08-27 10:42:10 +02:00
5fe5923bf7
Move processing to Linker class.
2017-08-26 22:12:50 +02:00
4d5554a74e
Add Delimiters class.
2017-08-26 22:01:52 +02:00
51fe6b3910
Rename LinkTitles_Extension.
2017-08-26 21:16:18 +02:00
e4f3da3ab6
Rename LinkTitles_Special.
2017-08-26 21:15:28 +02:00
0a519bbc18
Revise comments.
2017-08-26 21:14:59 +02:00
6c75eec1bb
Rename LinkTitles_Magic file.
2017-08-26 21:08:55 +02:00
3f32077884
Refactor, add Targets class.
2017-08-26 20:35:25 +02:00
c484323a70
First working test.
2017-08-26 05:34:54 +02:00
0dbddc795a
Use recursive regex to deal with nested braces.
...
- Fix: Properly handle templates that include other templates.
Addresses #29 .
2017-08-24 19:12:06 +02:00
9d11c5b270
Implement <autolinks> tag.
...
- New: Mark sections that are to be automatically linked with the new `<autolinks>..</autolinks>` tag. This tag only makes sense on pages with the `__NOAUTOLINKS__` magic word, or if both `$wgLinkTitlesParseOnEdit` and `$wgLinkTitlesParseOnRender` are set to false. Note that this tag is parsed when a page is rendered, not when it is saved. Therefore, the links will not appear in the page source.
Addresses #29 .
2017-08-24 14:18:13 +02:00
8f16e00952
Spaces to tabs.
2017-08-24 14:03:05 +02:00
d49acce467
Fix indentation.
2017-08-24 13:58:08 +02:00
2b5b1d4613
Add support for <noautolinks> tag.
...
- New: Mark sections that are not to be automatically linked with the new `<noautolinks>..</noautolinks>` tag.
Addresses #29 .
2017-08-24 13:48:40 +02:00
21ce7cab62
Bump copyright year.
2017-03-21 22:17:58 +01:00
aa8b163228
Fix detecting __NOAUTOLINKS__ on rendering.
...
- Fix: __NOAUTOLINKS__ was not respected during rendering.
The InternalParseBeforeLinks hook is called before the
mDoubleUnderScores instance variable is set.
2017-03-21 22:12:23 +01:00
36bf1fc384
Do not use doQuickEditContent.
...
- Fix: The special page and the maintenance script did not work in MW 1.28.
Closes #24 .
2017-02-16 06:25:46 +01:00
464aac0ccd
Fix incorrect namespace error.
...
- Fix: The special page did not work.
2017-01-19 09:02:30 +01:00
815e8a7822
Do not link inside <gallery>..</gallery> tags.
...
- Fix: Do not link inside <gallery>...</gallery> tags.
Closes #21 .
2017-01-14 06:30:13 +01:00
610c221211
Fix preventing linking to self.
2017-01-02 13:42:34 +01:00
9b25d404ce
Cache page titles.
...
- Improvement: Increase performance of special page and maintenance script.
2016-12-29 07:53:58 +01:00
8a6006236e
Merge pull request #16 from labster/develop
...
Use underscores when searching the page table, not spaces
2016-12-28 12:41:34 +01:00
8104ce66ff
Use namespace weight in page query.
...
- Fix: Custom namespace weights were not respected.
Closes #15 .
2016-12-28 12:19:40 +01:00
500d441b4b
Use underscores when searching the page table, not spaces
...
The old code replaced underscores with spaces, which was backwards.
Also we don't need to look for underscores or spaces in namespaces,
because they are all integers.
2016-12-28 01:11:02 -08:00
979b423e0a
Remove remnant error log call.
...
- Fix: Remove leftover error log call.
2016-12-14 21:16:39 +01:00
15d6be2c66
Fix page option in maintenance script.
...
- Fix: Maintenance script would crash if invoked with the --page option.
Closes #13 .
2016-12-14 21:15:51 +01:00
6f5696eb9d
Suppress second pass if $wgLinkTitlesFirstOnly is true.
...
- Fix: Do not link titles twice if $wgLinkTitlesFirstOnly and $wgLinkTitlesSmartMode are both true.
Closes #12 .
2016-11-30 06:09:11 +01:00
904f90c9f7
Fix __NOAUTOLINKS__ magic word.
...
- Fix: __NOAUTOLINKS__ magic word would not be respected when saving an edited page.
Closes #11 .
2016-11-22 22:03:15 +01:00