Template:Native name checker/doc
This is a documentation subpage for Template:Native name checker. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
- REDIRECT Template:Template link code inspects the value in the
|native_name=
parameter in infoboxen that support that parameter, and returns that value and, when appropriate, an error message.
Usage
Typical use is:
- <syntaxhighlight lang="moin" inline="1">|dataxx=</syntaxhighlight>
Error messages
- REDIRECT Template:Template link code returns these error messages:
- Error {{native name checker}}: parameter value is malformed –
|native_name=
is expected to hold{{Native name}}
or{{Native name list}}
. The detector is looking for alang=
html attribute with a properly formatted IETF language tag. If not found,
- REDIRECT Template:Template link code emits this error message.
- Error {{native name checker}}: list markup expected for multiple names – when
- REDIRECT Template:Template link code detects more than one name in
|native_name=
, those names are expected to be listed using appropriate list markup. The detector is looking for<div></div>
html list markup. When that markup is not detected,{{Native name checker}}
emits this error message. Data from multiple - REDIRECT Template:Template link code templates can be combined into a single
- REDIRECT Template:Template link code template or multiple
- REDIRECT Template:Template link code templates can be listed using
{{Plainlist}}
.
- Error {{native name checker}}: <br /> lists not allowed – Per MOS:NOBREAKS, the use of
<br></br>
to separate items of a list is proscribed. Usually<br></br>
-separated lists are caught by the list markup expected detector but, occasionally, not. The detector looks for a variety of acceptable and unacceptable<br></br>
variants. Data from multiple
- REDIRECT Template:Template link code templates can be combined into a single
- REDIRECT Template:Template link code template or multiple
- REDIRECT Template:Template link code templates can be listed using
{{Plainlist}}
.
Mainspace articles with any of the above errors are listed in Category:Native name checker template errors. A help link at the end of each error message links to this page.
Tracking category
Category:Native name checker template errors (1)