Last modified: 2011-08-01 15:14:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32146, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30146 - Allow users to suppress automatic substitution
Allow users to suppress automatic substitution
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Unprioritized trivial (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-31 08:43 UTC by anminh2008
Modified: 2011-08-01 15:14 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description anminh2008 2011-07-31 08:43:48 UTC
Adding "Suppress automatic operation" (or something similar) button to let users edit without automatic substitution of wiki-text
Comment 1 Dan Collins 2011-07-31 17:36:02 UTC
There are only a few automatic substitutions. (I was just playing with this bit of the parser, so I'll list them:)
* Signatures
* "Pipe trick" links ([[Foo (disambiguation)|]] is changed to [[Foo (disambiguation)|Foo]])
* Templates, parser functions, and variables that have the {{subst:}} keyword
* Windows style newlines to unix style newlines

Are you suggesting that it be possible to bypass these transforms when saving, are you referring to some other automatic substitution (regular templates? wikitext?) Does <nowiki> do what you want?

(General/Unknown -> Parser, maybe?)
Comment 2 anminh2008 2011-08-01 06:56:35 UTC
No, that's not I want. For example Template:3~, Template:4~, Template:5~ on Wikipedia has <noinclude></noinclude> between tildes to suppress automatic substitution, but I want to remove it. <nowiki>~~~~</nowiki> is useless because it, when substituted, render as ~~~~, not the signature.
Comment 3 Dan Collins 2011-08-01 15:14:16 UTC
Sounds like the only example you have, there's already a perfectly good way to do it. This is a rather esoteric test case where you want the ability to override the pre-save transform for a template but not when the template is substituted. If you need to have a template perform a pre-save transform when it is substituted in, either pass the input as a parameter or use noinclude tags to break it up. If you want to display the input to a pre-save transform without it being replaces, use nowiki tags. These will both inhibit the transform, one will inhibit it even after substitution, and one will cause it to be parsed on substitution. Closing worksforme.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links