Template:NW2/doc: Difference between revisions
More actions
Create documentation subpage for {{NW2}} (move template documentation to subpage) |
→Usage: Add example output |
||
| Line 16: | Line 16: | ||
* {{tld|NW2|c|''text''}} - nowrap + {{tag|plaincode=1|code|o}} | * {{tld|NW2|c|''text''}} - nowrap + {{tag|plaincode=1|code|o}} | ||
*: {{NW2|c|''text''}} | |||
* {{tld|NW2|tt|''text''}} - nowrap + {{tag|plaincode=1|tt|o}} | * {{tld|NW2|tt|''text''}} - nowrap + {{tag|plaincode=1|tt|o}} | ||
*: {{NW2|tt|''text''}} | |||
* {{tld|NW2|nw|''text''}} - nowrap + {{xtag|plaincode=1|nowiki|o}} | * {{tld|NW2|nw|''text''}} - nowrap + {{xtag|plaincode=1|nowiki|o}} | ||
*: {{NW2|nw|''text''}} | |||
* {{tld|NW2|c|nw|''text''}} - nowrap + {{tag|plaincode=1|code|o}} + {{xtag|plaincode=1|nowiki|o}} | * {{tld|NW2|c|nw|''text''}} - nowrap + {{tag|plaincode=1|code|o}} + {{xtag|plaincode=1|nowiki|o}} | ||
*: {{NW2|c|nw|''text''}} | |||
* {{tld|NW2|nw|tt|''text''}} - nowrap + {{tag|plaincode=1|tt|o}} + {{xtag|plaincode=1|nowiki|o}} | * {{tld|NW2|nw|tt|''text''}} - nowrap + {{tag|plaincode=1|tt|o}} + {{xtag|plaincode=1|nowiki|o}} | ||
*: {{NW2|nw|tt|''text''}} | |||
| relieson = | | relieson = | ||
Revision as of 17:58, 18 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}}).
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Option 1 | The first option | empty | suggested |
2 | Option 2 | The second option | empty | optional |
3 | Text | The text content | empty | required |
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.