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/doc: Difference between revisions

Template page
Usage: Add example output
Add support for {{NW2/sandbox}}
 
Line 1: Line 1:
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{TemplateBox
{{TemplateBox
| name = NW2
| name = NW2{{\s}}
| mbox =
| mbox =
{{Uses TemplateStyles|Template:Nowrap/styles.css|Template:Mono/styles.css}}
{{Uses TemplateStyles|Template:Nowrap/styles.css|Template:Mono/styles.css}}
Line 13: Line 13:
| usergroup = all
| usergroup = all
| usage-notes =
| usage-notes =
The order doesn't matter as long as the ''text'' goes last (e.g. {{tld|NW2|c|nw|''text''}} is the same as {{tld|NW2|nw|c|''text''}}).
The order doesn't matter as long as the ''text'' goes last (e.g. {{tld|NW2|c|nw|''text''}} is the same as {{tld|NW2{{\s}}|nw|c|''text''}}).


* {{tld|NW2|c|''text''}} - nowrap + {{tag|plaincode=1|code|o}}
* {{tld|NW2{{\s}}|c|''text''}} - nowrap + {{tag|plaincode=1|code|o}}
*: {{NW2|c|''text''}}
*: {{NW2{{\s}}|c|''text''}}
* {{tld|NW2|tt|''text''}} - nowrap + {{tag|plaincode=1|tt|o}}
* {{tld|NW2{{\s}}|tt|''text''}} - nowrap + {{tag|plaincode=1|tt|o}}
*: {{NW2|tt|''text''}}
*: {{NW2{{\s}}|tt|''text''}}
* {{tld|NW2|nw|''text''}} - nowrap + {{xtag|plaincode=1|nowiki|o}}
* {{tld|NW2{{\s}}|nw|''text''}} - nowrap + {{xtag|plaincode=1|nowiki|o}}
*: {{NW2|nw|''text''}}
*: {{NW2{{\s}}|nw|''text''}}
* {{tld|NW2|c|nw|''text''}} - nowrap + {{tag|plaincode=1|code|o}} + {{xtag|plaincode=1|nowiki|o}}
* {{tld|NW2{{\s}}|c|nw|''text''}} - nowrap + {{tag|plaincode=1|code|o}} + {{xtag|plaincode=1|nowiki|o}}
*: {{NW2|c|nw|''text''}}
*: {{NW2{{\s}}|c|nw|''text''}}
* {{tld|NW2|nw|tt|''text''}} - nowrap + {{tag|plaincode=1|tt|o}} + {{xtag|plaincode=1|nowiki|o}}
* {{tld|NW2{{\s}}|nw|tt|''text''}} - nowrap + {{tag|plaincode=1|tt|o}} + {{xtag|plaincode=1|nowiki|o}}
*: {{NW2|nw|tt|''text''}}
*: {{NW2{{\s}}|nw|tt|''text''}}
 
Edge cases:
* {{tld|NW2{{\s}}|tt|c|''text''}} → {{NW2{{\s}}|tt|c|''text''}}
* {{tld|NW2{{\s}}|c|tt|''text''}} → {{NW2{{\s}}|c|tt|''text''}}


| relieson =
| relieson =

Latest revision as of 18:05, 19 September 2021

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.