• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.154
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Native name checker

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Native name

{{Native name checker}} 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:

|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 a lang= 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 (0)

The above documentation is transcluded from Template:Native name checker/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Native_name_checker&oldid=24599"
Category:
  • Lua-based templates
Last edited on 15 January 2022, at 12:59

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 15 January 2022, at 12:59.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop