Template:Dialog/pipetrick/doc
This is a documentation subpage for Template:Dialog/pipetrick It may contain usage information, categories and other content that is not part of the original template page. |
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
editSpecify the raw wiki markup through the unnamed parameter.
Examples
editinput | output | |
---|---|---|
[[foo|]]
|
[[foo|foo]]
|
OK |
[[w:foo (bar)|]]
|
[[w:foo (bar)|foo]]
|
OK |
[[:en:b:foo, bar, quux|]]
|
[[:en:b:foo, bar, quux|b:foo]]
|
OK |
[[foo, bar (quux)|]]
|
[[foo, bar (quux)|foo, bar]]
|
OK |
[[w:foo#bar (quux)|]]
|
[[w:foo#bar (quux)|]]
|
OK |
Limitations
editFor 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
editThis is considered a dialog tool simply because dialog seems the only situation where one would manipulate raw wiki markup text.
See also
edit