Template:nowiki2
From HandWiki
Revision as of 18:58, 19 February 2021 by imported>Jworkorg (1 revision imported)
Script error: No such module "LuaCall".
Usage
Lua error in Module:Lua_banner at line 113: attempt to index field 'edit' (a nil value).
{{nowiki2 | TEXT }}
{{nowiki2 | TEXT | tag = TAG }}
{{nowiki2 | TEXT | tag = TAG | style = STYLE }}
Examples
- {{nowiki2 | {{infobox}} }} → Script error: No such module "LuaCall".
- {{nowiki2 | {{unbulleted list|1=first|2=second}} | tag = pre }} →
Script error: No such module "LuaCall".
- {{nowiki2|tag=pre|style=background-color:#fafad2;|{{URL|www.Example.com}}}} →
Script error: No such module "LuaCall".
- a{{nowiki2 | 0001 }}b → aScript error: No such module "LuaCall".b
- a{{nowiki2 | 1000 }}b → aScript error: No such module "LuaCall".b
- a{{nowiki2 |\0001}}b → aScript error: No such module "LuaCall".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}}
.
- {{nowiki2 | [[Wikipedia]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 1</ref><#<>{{=}}{{!}}'" }} → Script error: No such module "LuaCall".
- {{nowiki2 | {{nowiki2| [[Wikipedia]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 2</ref><#<>{{=}}{{!}}'" }} }} → Script error: No such module "LuaCall".
- {{nowiki2 | {{#tag:nowiki| [[Wikipedia]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 3</ref><#<>{{=}}{{!}}'" }} }} → Script error: No such module "LuaCall".
- {{#tag:nowiki | {{nowiki2| [[Wikipedia]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 4</ref><#<>{{=}}{{!}}'" }} }} → <strong class="error"><span class="scribunto-error" id="mw-scribunto-error-11">Script error: No such module "LuaCall".</span></strong>
- {{#tag:nowiki | {{#tag:nowiki| [[Wikipedia]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 5</ref><#<>{{=}}{{!}}'" }} }} → [[Wikipedia]][[:Template:Foo]]{{}}Nowiki2{{{1}}}222[1]<#<>=|'"
- {{#tag:nowiki | [[Wikipedia]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 6</ref><#<>{{=}}{{!}}'" }} → [[Wikipedia]][[:Template:Foo]]{{}}Nowiki2{{{1}}}222[2]<#<>=|'"
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 }}