Template:Random article/doc
(Redirected from Template:Random articles/doc)
This is a documentation subpage for Template:Random article. It may contain usage information, categories and other content that is not part of the original template page. |
Usage
editThis template creates a link to a random article from a specified category and its subcategories. The tool used in the background for this comes from User:Erwin.
Kopiervorlage
edit{{Random article|Towns|Display}}
Parameter
edit- 1
- Title of the category to be used for the search.
- mandatory
- Several categories may be separated by a pipe:
{{!}}
. - 2
- Alternative description of the link (default: Random article)
- (optional)
Example
editUse with a category (Random article):
{{Random article|Freiburg im Breisgau}}
Use with a category and other names (Random article from Freiburg):
{{Random article|Freiburg im Breisgau|Random article from Freiburg}}
Use with several categories (Random Hanseatic city article):
{{Random article|Hamburg{{!}}Bremen|Random Hanseatic city article}}