https://bugzilla.wikimedia.org/show_bug.cgi?id=45845

--- Comment #3 from Danny B. <[email protected]> ---
If you actually need this to determine whether to syntaxhilight or parse the
page in Module namespace, then better approach would be to have another
message, let's say "scribunto-noscript-pages" as a blacklist of those not to be
hilighted / whitelist of those to be parsed. Similar to title blacklist, bad
image list and others. Or have a new magic word, let's say __NOCODE__ or
something like that to be added to pages which should be parsed.

Hardcoding some pattern is definitely not good approach because it is so very
limmiting, besides it can cause issues in case the name which would match the
patter would have to be actually used for the code.

(In reply to comment #2)
> Which would mean you'd be able to put the documentation at
> something like "Project:Module documentation/$1", or generally add any prefix
> or suffix to $1
> $1 could be either {{FULLPAGENAME}} or {{PAGENAME}}, with the default being
> either "$1/doc" or "Module:$1/doc" to match.

That's exactly what I'm suggesting. To be able to add any prefix/suffix to the
name itself. Which implies, that having {{PAGENAME}} for $1 is obviously better
than {{FULLPAGENAME}}, since it's easy to add namespace as prefix, but quite
impossible to remove it.

Looking forward this solution the sooner the better, preferably before the
wider deployment of Scribunto on WMF wikis to save the further work with
relocations.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to