قالب:shortcut/شرح
Usage
تعديلThis template uses Lua: |
{{shortcut | TEXT }}
{{shortcut | TEXT | tag = TAG }}
{{shortcut | TEXT | tag = TAG | style = STYLE }}
Examples
تعديل- {{shortcut | {{Infobox}} }} →
- {{shortcut | {{Unbulleted list|1=first|2=second}} | tag = pre }} →
- {{shortcut|tag=pre|style=background-color:#fafad2;|{{URL|www.Example.com}}}} →
- a{{shortcut | 0001 }}b → ab
- a{{shortcut | 1000 }}b → ab
- a{{shortcut |\0001}}b → ab
- a{{shortcut | 1000 }}b → a
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}}
.
- {{shortcut | [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 1</ref><#<>{{=}}{{!}}'" }} →
- {{shortcut | {{nowiki2| [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 2</ref><#<>{{=}}{{!}}'" }} }} →
- {{shortcut | {{#tag:nowiki| [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 3</ref><#<>{{=}}{{!}}'" }} }} →
- {{#tag:nowiki | {{nowiki2| [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 4</ref><#<>{{=}}{{!}}'" }} }} → [[ويكيبيديا]]{{}}Shortcut/شرح{{{1}}}222'"`UNIQ--ref-00000037-QINU`"'<#<>=|'"
- {{#tag:nowiki | {{#tag:nowiki| [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 5</ref><#<>{{=}}{{!}}'" }} }} → [[ويكيبيديا]]{{}}Shortcut/شرح{{{1}}}222[5]<#<>=|'"
- {{#tag:nowiki | [[ويكيبيديا]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 6</ref><#<>{{=}}{{!}}'" }} → [[ويكيبيديا]]{{}}Shortcut/شرح{{{1}}}222[6]<#<>=|'"
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 }}