Inyandikorugero:Article list
Error: no parameter
This template uses Lua: |
Usage
hinduraThis 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
hindura{{Article list |Q5457812, Q7195231, Q15179086}}
produces
- No sitelink for Flat Top Island Light
- No sitelink for Pine Islet Light
- No sitelink for Albino Rock lighthouse
In the next example, the unnecessary words "light" and "lighthouse" are removed.
{{Article list |Q5457812, Q7195231, Q15179086 |remove=light,lighthouse}}
produces
- No sitelink for Flat Top Island Light
- No sitelink for Pine Islet Light
- No sitelink for Albino Rock lighthouse
To preserve the order you have manually chosen, use |sort=no
.
{{Article list |Q5457812, Q7195231, Q15179086 |sort=no}}
produces
- No sitelink for Flat Top Island Light
- No sitelink for Pine Islet Light
- No sitelink for Albino Rock lighthouse
Uses
hinduraConvert helper template
hinduraYou 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. }}