A Project of the Center for Advanced Study in the Visual Arts, National Gallery of Art
History of Early American Landscape Design

Template:!/doc

[http://www.nga.gov/content/ngaweb/research/casva/research-projects.html A Project of the National Gallery of Art, Center for Advanced Study in the Visual Arts ]
< Template:!
Revision as of 15:47, April 18, 2012 by Emily Pugh (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#invoke:Fallback | autotranslate

      |base = Documentation subpage
      |lang = 
      |page = Template:!
    }}


Usage

This is the {{!}} meta-template. Its use is analogous to an escape character.

This is an auxiliary template allowing the encoding of "|" within template parameters, because the pipe character is normally interpreted as a separator. This template is necessary if the character is used in wiki table syntax, or if the parameter is automatically wikilinked and you wish to use a pipe to specify different link text from the target page name. In other cases it is better to use "&#124;".

This template cannot be used for putting the character as text in a wiki table; in that case, again, "&#124;" can be used.

Note that no special template is needed for "!" (exclamation mark).

This is a high-risk template, and it usually cannot be substituted (see conditions for substing on the section below).

Substitution

It is possible to substitute {{!}} only if an unescaped "|" works as expected, i.e. after substituting the template containing {{!}}, or after eliminating an #if containing {{!}}.

A simple example

The following template code for {{Quotation}} using an ordinary pipe character,

  • {{Quotation|It is not possible to use an ordinary pipe character | in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}

produces:

It is not possible to use an ordinary pipe character

in template parameters, as it will be interpreted as a separator., Help:Template

whereas this code using the {{!}} meta-template,

  • {{Quotation|It is not possible to use an ordinary pipe character {{!}} in template parameters, as it will be interpreted as a separator.|[[Help:Template#Usage hints and workarounds]]}}

produces:

It is not possible to use an ordinary pipe character | in template parameters, as it will be interpreted as a separator.

Help:Template

See also


es:Plantilla:!/doc or:ଟେମ୍ପଲେଟ:!/doc ro:Format:!/doc ru:Шаблон:!/doc

Retrieved from "https://heald.nga.gov/mediawiki/index.php?title=Template:!/doc&oldid=233"

History of Early American Landscape Design contributors, "Template:!/doc," History of Early American Landscape Design, , https://heald.nga.gov/mediawiki/index.php?title=Template:!/doc&oldid=233 (accessed October 20, 2021).

A Project of the Center for Advanced Study in the Visual Arts

National Gallery of Art, Washington