සැකිල්ල:Dialog/pipetrick
Appearance
This is a dialog formatting template. It is meant for use on interactive dialog pages, and may involve interactions between wiki markup, HTML, and JavaScript. Please carefully test any edits before making them. |
This template does pipe trick processing on a raw wiki markup string. (See also: Help:Editing#Piped_links)
Usage
[සංස්කරණය]Specify the raw wiki markup through the unnamed parameter.
Examples
[සංස්කරණය]input | output | |
---|---|---|
සැකිල්ල:(-foo|සැකිල්ල:-)
|
[[foo|foo]]
|
MISMATCH |
සැකිල්ල:(-w:foo (bar)|සැකිල්ල:-)
|
[[w:foo (bar)|foo]]
|
MISMATCH |
සැකිල්ල:(-:en:b:foo, bar, quux|සැකිල්ල:-)
|
[[:en:b:foo, bar, quux|b:foo]]
|
MISMATCH |
සැකිල්ල:(-foo, bar (quux)|සැකිල්ල:-)
|
[[foo, bar (quux)|foo, bar]]
|
MISMATCH |
සැකිල්ල:(-w:foo#bar (quux)|සැකිල්ල:-)
|
[[w:foo#bar (quux)|]]
|
OK |
Limitations
[සංස්කරණය]For precise simulation of the pipe trick, it shouldn't work in "ref" tags or "gallery" tags, nor with links to sections. As of this writing, the template duplicates the section-link exclusion (see example above), but not the tag exceptions.
Note
[සංස්කරණය]This is considered a dialog tool simply because dialog seems the only situation where one would manipulate raw wiki markup text.