1. {{shortcut | TEXT }}
  2. {{shortcut | TEXT | tag = TAG }}
  3. {{shortcut | TEXT | tag = TAG | style = STYLE }}

Examples

تعديل
  1. {{shortcut | {{Infobox}} }}
    • [[:|]]
  2. {{shortcut | {{Unbulleted list|1=first|2=second}} | tag = pre }}
    • [[:|
      • first
      • second
      ]]
  3. {{shortcut|tag=pre|style=background-color:#fafad2;|{{URL|www.Example.com}}}}
  4. a{{shortcut | 0001 }}b → a
    b
    1. a{{shortcut | 1000 }}b → a
      b
    2. a{{shortcut |\0001}}b → a
      b

Since this template use Lua function mw.text.nowiki() rather than {{#tag:nowiki}}, the following examples will show the difference between this template and {{#tag:nowiki}}.

  1. {{shortcut | [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 1</ref>&lt;#<>{{=}}{{!}}'" }}
  2. {{shortcut | {{nowiki2| [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 2</ref>&lt;#<>{{=}}{{!}}'" }} }}
    • [[:| [[ويكيبيديا]]{{}}Shortcut/شرح{{{1}}}222'"`UNIQ--ref-0000002C-QINU`"'&lt;#<>=|'"]]
  3. {{shortcut | {{#tag:nowiki| [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 3</ref>&lt;#<>{{=}}{{!}}'" }} }}
    • [[:| [[ويكيبيديا]]{{}}Shortcut/شرح{{{1}}}222[3]<#<>=|'" ]]
  4. {{#tag:nowiki | {{nowiki2| [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 4</ref>&lt;#<>{{=}}{{!}}'" }} }} → [[ويكيبيديا]]{{}}Shortcut/شرح{{{1}}}222'"`UNIQ--ref-00000037-QINU`"'&lt;#<>=|'"
  5. {{#tag:nowiki | {{#tag:nowiki| [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 5</ref>&lt;#<>{{=}}{{!}}'" }} }} → [[ويكيبيديا]]{{}}Shortcut/شرح{{{1}}}222[5]<#<>=|'"
  6. {{#tag:nowiki | [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 6</ref>&lt;#<>{{=}}{{!}}'" }} → [[ويكيبيديا]]{{}}Shortcut/شرح{{{1}}}222[6]<#<>=|'"

قالب:Reflist-talk

Nowiki templates and modules

تعديل

Templates and modules that implement <nowiki>TEXT</nowiki>

  • {{nowiki}} - usage: {{nowiki | TEXT }}
  • {{nowiki2}} - usage: {{nowiki2 | TEXT | tag = TAG | style = STYLE }}
  • Module:String2 nowiki(TEXT) - usage: {{#invoke:String2 | nowiki | TEXT }}
  1. ref example 1
  2. ref example 2
  3. ref example 3
  4. ref example 4
  5. ref example 5
  6. ref example 6