Inyandikorugero:nowiki2/doc
Appearance
This is a documentation subpage for Inyandikorugero:Nowiki2. It contains usage information, categories and other content that is not part of the original inyandikorugero page. |
Usage
[hindura inkomoko]This template uses Lua: |
{{nowiki2 | TEXT }}
{{nowiki2 | TEXT | tag = TAG }}
{{nowiki2 | TEXT | tag = TAG | style = STYLE }}
Examples
[hindura inkomoko]- {{nowiki2 | {{infobox}} }} → '"`UNIQ--templatestyles-00000008-QINU`"'
- {{nowiki2 | {{unbulleted list|1=first|2=second}} | tag = pre }} →
<div class="plainlist"><ul><li>first</li><li>second</li></ul></div>
- {{nowiki2|tag=pre|style=background-color:#fafad2;|{{URL|www.Example.com}}}} →
<span class="url">[http://www.Example.com www<wbr/>.example<wbr/>.com]</span>
- a{{nowiki2 | 0001 }}b → a 0001 b
- a{{nowiki2 | 1000 }}b → a 1000 b
- a{{nowiki2 |\0001}}b → a\0001b
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><#<>{{=}}{{!}}'" }} → [[Wikipedia]]{{}}Nowiki2/doc{{{1}}}222'"`UNIQ--ref-00000016-QINU`"'<#<>=|'"
- {{nowiki2 | {{nowiki2| [[Wikipedia]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 2</ref><#<>{{=}}{{!}}'" }} }} →  [[Wikipedia]]{{}}Nowiki2/doc{{{1}}}222'"`UNIQ--ref-00000019-QINU`"'&lt;#<>=|'"
- {{nowiki2 | {{#tag:nowiki| [[Wikipedia]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 3</ref><#<>{{=}}{{!}}'" }} }} → '"`UNIQ--nowiki-0000001D-QINU`"'
- {{#tag:nowiki | {{nowiki2| [[Wikipedia]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 4</ref><#<>{{=}}{{!}}'" }} }} → [[Wikipedia]]{{}}Nowiki2/doc{{{1}}}222'"`UNIQ--ref-00000020-QINU`"'<#<>=|'"
- {{#tag:nowiki | {{#tag:nowiki| [[Wikipedia]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 5</ref><#<>{{=}}{{!}}'" }} }} → [[Wikipedia]]{{}}Nowiki2/doc{{{1}}}222[5]<#<>=|'"
- {{#tag:nowiki | [[Wikipedia]]{{foo}}{{}}{{PAGENAME}}{{{1}}}{{{2|222}}}<ref>ref example 6</ref><#<>{{=}}{{!}}'" }} → [[Wikipedia]]{{}}Nowiki2/doc{{{1}}}222[6]<#<>=|'"
References
Nowiki templates and modules
[hindura inkomoko]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 }}