सामग्री पर जाएँ

फलकम्:!/doc

विकिपीडिया, कश्चन स्वतन्त्रः विश्वकोशः

फलकम्:Transclusionless

The magic word {{!}} is used to escape a vertical bar character "|" in wikitext markup, causing the parser to temporarily not interpret it as a special character.

This used to be a template, but for speed reasons, the MediaWiki parser was changed in July 2014 to instantly interpret {{!}} as "|" and ignore this template, making {{!}} a magic word. You can continue to use the code in exactly the same way as before.

Do not use syntax like {{Template:!}}, and do not supply a parameter, for example {{!|foo}}. In those cases, the template transcludes as an error message: स्क्रिप्ट त्रुटि: "Error" ऐसा कोई मॉड्यूल नहीं है।


The code {{!}} is used to escape the vertical bar character, |, so that it is interpreted later than it would be otherwise. This is mostly useful when trying to include a table in a template. For example,

{{cquote|text=
{| class="wikitable"
|+ Caption text
|-
! Header text !! Header text
|-
| Example1 || Example2
|-
| Example3 || Example4
|}
}}

yields nonsense:

{

— Example1

However escaping the bars with this magic word and similar templates gives:

{{cquote|text=
{{(!}} class{{=}}"wikitable"
{{!+}} Caption text
{{!-}}
! Header text !! Header text
{{!-}}
{{!}} Example1 {{!!}} Example2
{{!-}}
{{!}} Example3 {{!!}} Example4
{{!)}}
}}
फलकम्:!+ Caption text
Header text Header text
Example1 Example2
Example3 Example4

For how to include a table in a footnote, do:

Example 1{{refn|group=note|This is a note before}}

Example 2{{refn|group=note|1=<nowiki></nowiki>{{(!}}class{{=}}"wikitable"
{{!}}+ Example table with two columns
! A column
! Another column
{{!}}-
{{!}} Some data
{{!}} Some more data
{{!)}}<nowiki></nowiki>}}

Example 3{{refn|group=note|This is a note after}}

==Notes==
{{Reflist|group=note}}

Be careful to follow this formatting, otherwise the table may gobble up the subsequent footnote. This can be unnoticeable if there is only one footnote, only causing an issue if a second footnote is added.

Example 1[note १]

Example 2[note २]

Example 3[note ३]

  1. This is a note before
  2. Example table with two columns
    A column Another column
    Some data Some more data
  3. This is a note after

फलकम्:Escape template list Documentation for the magic word may be found in the MediaWiki documentation at mw:Help:Magic words#Other.


"https://sa.wikipedia.org/w/index.php?title=फलकम्:!/doc&oldid=488200" इत्यस्माद् प्रतिप्राप्तम्