Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Explanation  





2 See also  





3 TemplateData  














Template:(!/doc







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:(!

This templates produces the {| sequence (i.e., start of wikitable), so that wikitables can be built inside templates.

Explanation

[edit]

The problem is that if a pipe character "|" appears in a template, the template parser assumes that the pipe is part of the template; and so if there is a table within a template the pipe symbols that are usually interpreted as part of the table syntax will be interpreted first as part template.

To prevent this happening it is possible to "hide" the pipe character of the table from the template parser by substituting {{!}} for a pipe character.

To aid with building a table there are some additional template which can be used to help

See mw:Help:Magic words#Other and mw:Help:Template#A parameter value containing a pipe character

See also

[edit]
  • talk
  • edit
  • Template call
    (m for magic word)
    Output (delayed interpretation as wikimarkup) HTML alternative (never interpreted as wikimarkup)
    {{!}} (m) | &#124; or {{pipe}}
    {{=}} (m) = &#61;
    {{!!}} || &#124;&#124;
    {{!(}} [ &#91;
    {{)!}} ] &#93;
    {{!((}} [[ &#91;&#91;
    {{))!}} ]] &#93;&#93;
    {{(}} { &#123;
    {{)}} } &#125;
    {{((}} {{ &#123;&#123;
    {{))}} }} &#125;&#125;
    {{(((}} {{{ &#123;&#123;&#123;
    {{)))}} }}} &#125;&#125;&#125;
    {{(!}} {| &#123;&#124;
    {{!+}} |+ &#124;&#43;
    {{!-}} |- &#124;&#45;
    {{!)}} |} &#124;&#125;

    TemplateData

    [edit]
    This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:(! in articles based on its TemplateData.

    TemplateData for (!

    This template produces {| as ordinary text.

    Template parameters

    ParameterDescriptionTypeStatus
    No parameters specified



    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:(!/doc&oldid=1182400599"

    Hidden category: 
    Template documentation pages
     



    This page was last edited on 29 October 2023, at 03:14 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki