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.
Revision as of 17:50, 3 November 2022 by commons>Jonesey95 (Fix Linter errors.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{{1}}}

Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:NW2/doc.

Prevents wrapping of lines like {{nowrap}} (redirect: {{NW}}) plus the option to also apply ‎<tt>/‎<code> tags or ‎<nowiki> tags or both. This also works without any of those but if all you want is the no wrapping part use {{nowrap}} instead.

Note: The nowiki option makes use of {{#tag:}}, which doesn't work correctly with templates.

Usage

{{NW2 |1= |2= |3= }}

The order doesn't matter as long as the text goes last (e.g. {{NW2|c|nw|text}} is the same as {{NW2|nw|c|text}}).

  • {{NW2|c|text}} - nowrap + ‎<code>
    text
  • {{NW2|tt|text}} - nowrap + ‎<tt>
    text
  • {{NW2|nw|text}} - nowrap + ‎<nowiki>
    ''text''
  • {{NW2|c|nw|text}} - nowrap + ‎<code> + ‎<nowiki>
    ''text''
  • {{NW2|nw|tt|text}} - nowrap + ‎<tt> + ‎<nowiki>
    ''text''

Edge cases:

  • {{NW2|tt|c|text}}''text''
  • {{NW2|c|tt|text}}''text''

Template parameters

ParameterDescriptionDefaultStatus
1Option 1The first optionemptysuggested
2Option 2The second optionemptyoptional
3TextThe text contentemptyrequired

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Relies on:

See also

Localization

This template is not intended to be localized.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.