Template:Native name checker
| This template is used on approximately 86,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
{{Native name checker}} inspects the value in the |native_name= parameter in infoboxes that support that parameter, and returns that value and, when appropriate, an error message.
Usage
Typical use is:
|dataxx={{Native name checker|{{{native_name|}}}}}
Error messages
{{Native name checker}} 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,{{Native name checker}}emits this error message. - Error {{native name checker}}: list markup expected for multiple names – when
{{Native name checker}}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 class="plainlist">...</div>html list markup. When that markup is not detected,{{Native name checker}}emits this error message. Data from multiple{{Native name}}templates can be combined into a single{{Native name list}}template or multiple{{Native name}}templates can be listed using{{Plainlist}}. - Error {{native name checker}}: <br /> lists not allowed – Per MOS:NOBREAKS, the use of
<br />to separate items of a list is proscribed. Usually<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 />variants. Data from multiple{{Native name}}templates can be combined into a single{{Native name list}}template or multiple{{Native name}}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 (2)
See also
- IETF language tag list
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.