Template:Article list/doc
![]() | This template uses Lua: |
Usage
[edit]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
[edit]{{Article list |Q5457812, Q7195231, Q15179086}}
produces
In the next example, the unnecessary words "light" and "lighthouse" are removed.
{{Article list |Q5457812, Q7195231, Q15179086 |remove=light,lighthouse}}
produces
To preserve the order you have manually chosen, use |sort=no
.
{{Article list |Q5457812, Q7195231, Q15179086 |sort=no}}
produces
Uses
[edit]Convert helper template
[edit]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.
}}