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

Template:Article list/convert

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

Contents

  • 1 Usage
    • 1.1 Examples
    • 1.2 Uses
    • 1.3 Convert helper template

Usage

This template will take a comma-separated list of Wikidata QIDs and output a list of articles. It is designed for use in navigation templates and will ensure that the links stay up to date even if articles are moved or deleted from Wikipedia.

Links can be piped to remove any unnecessary words by using the |remove= parameter.

The module will automatically sort the list alphabetically. If you would prefer to keep the order you have used, then set |sort=no.

Examples

{{Article list |Q5457812, Q7195231, Q15179086}} produces Lua error in Module:Article_list at line 42: attempt to index field 'wikibase' (a nil value).

In the next example, the unnecessary words "light" and "lighthouse" are removed.

{{Article list |Q5457812, Q7195231, Q15179086 |remove=light,lighthouse}} produces Lua error in Module:Article_list at line 42: attempt to index field 'wikibase' (a nil value).

To preserve the order you have manually chosen, use |sort=no.

{{Article list |Q5457812, Q7195231, Q15179086 |sort=no}} produces Lua error in Module:Article_list at line 42: attempt to index field 'wikibase' (a nil value).

Uses

  • [1]

Convert helper template

You can use {{subst:Article list/convert}} to convert a list of wikilinks into a comma-separated list of QIDs. Currently this will not work if the wikilink is to a redirect, but this should be working shortly. If no QID is found then an HTML comment will be left in the article to alert you.

{{subst:Article list/convert|
* [[Link 1]]
* [[Link 2|Pipe]], etc.
}}
The above documentation is transcluded from Template:Article list/convert/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:Article_list/convert&oldid=5312"
Categories:
  • Pages with script errors
  • Lua-based templates
  • Wikidata modules
  • Templates using data from Wikidata
  • Internal link templates
Last edited on 26 February 2022, at 10:35

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 26 February 2022, at 10:35.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop