mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
Do not link template parameters.
This commit is contained in:
@ -119,7 +119,15 @@
|
|||||||
{
|
{
|
||||||
$templatesDelimiter = '{{[^}]+}}|';
|
$templatesDelimiter = '{{[^}]+}}|';
|
||||||
} else {
|
} else {
|
||||||
$templatesDelimiter = '{{[^|]*?(?:(?:\[\[[^]]+]])?)[^|]*?(?:\||(?:}}))|';
|
// Match template names (ignoring any piped [[]] links in them)
|
||||||
|
// along with the trailing pipe and parameter name or closing
|
||||||
|
// braces; also match sequences of '|wordcharacters=' (without
|
||||||
|
// spaces in them) that usually only occur as parameter names in
|
||||||
|
// transclusions (but could also occur as wiki table cell contents).
|
||||||
|
// TODO: Find a way to match parameter names in transclusions, but
|
||||||
|
// not in table cells or other sequences involving a pipe character
|
||||||
|
// and equal sign.
|
||||||
|
$templatesDelimiter = '{{[^|]*?(?:(?:\[\[[^]]+]])?)[^|]*?(?:\|(?:\w+=)?|(?:}}))|\|\w+=|';
|
||||||
};
|
};
|
||||||
|
|
||||||
LinkTitles::$currentTitle = $title;
|
LinkTitles::$currentTitle = $title;
|
||||||
|
Reference in New Issue
Block a user