Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:NW2: Difference between revisions

Template page
Created page with '<span style="white-space:nowrap">{{#switch:{{{2}}} |c|tt={{#ifeq:{{{2}}}|c|<code>|<tt>}}{{#tag:nowiki|{{{3}}}}}{{#ifeq:{{{2}}}|c|</code>|</tt>}} |nw={{#ifeq:{{{1...'
 
Fix Linter errors.
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<span style="white-space:nowrap">{{#switch:{{{2}}}
<onlyinclude><span style="white-space:nowrap">{{#switch:{{{2}}}
  |c|tt={{#ifeq:{{{2}}}|c|<code>|<tt>}}{{#tag:nowiki|{{{3}}}}}{{#ifeq:{{{2}}}|c|</code>|</tt>}}
  |c|tt={{#ifeq:{{{2}}}|c|<code>|<span style="font-family: monospace, monospace;">}}{{#tag:nowiki|{{{3}}}}}{{#ifeq:{{{2}}}|c|</code>|</span>}}
  |nw={{#ifeq:{{{1}}}|c|<code>|<tt>}}{{#tag:nowiki|{{{3}}}}}{{#ifeq:{{{1}}}|c|</code>|</tt>}}
  |nw={{#ifeq:{{{1}}}|c|<code>|<span style="font-family: monospace, monospace;">}}{{#tag:nowiki|{{{3}}}}}{{#ifeq:{{{1}}}|c|</code>|</span>}}
  |{{#switch:{{{1}}}
  |{{#switch:{{{1}}}
   |c=<code>{{{2}}}</code>
   |c=<code>{{{2}}}</code>
   |tt=<tt>{{{2}}}</tt>
   |tt=<span style="font-family: monospace, monospace;">{{{2}}}</span>
   |nw={{#tag:nowiki|{{{2}}}}}
   |nw={{#tag:nowiki|{{{2}}}}}
   |{{{1}}}
   |{{{1}}}
  }}
  }}
}}</span><noinclude>
}}</span></onlyinclude>
 
{{Documentation}}
----
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
Prevents wrapping of lines like {{tl|nowrap}} (redirect: {{tl|NW}}) plus the option to also apply &lt;tt>/&lt;code> tags or &lt;nowiki> tags or both.
 
Note: The if using the nowiki option, it will not work correctly with templates due to a bug with using {{mwl|tag}}.
 
[[Category:Formatting templates|{{PAGENAME}}]]
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.