Template:Transclude random excerpt/doc: Difference between revisions

Content deleted Content added
Line 8:
 
===Usage===
<pre style="overflow:auto">{{Transclude random excerpt | 1= | 2= | paragraphs= | files= | fileargs= | more= | errors= }}</pre>
 
The template accepts any number of page names as unnamed parameters. One of them is selected randomly, and the page with that title is transcluded. (If the selected page is invalid, the template will choose again.) Include a namespace where necessary. There are no other positional parameters, but there are some optional named parameters:
Line 14:
*A list of file (image) numbers such as <code>files=1</code>; the default is no images. Non-free images are removed.
*Arguments to pass to File: such as <code>fileargs=left</code> to move images to the left; the default is none.
*A link to the article itself such as <code>more=(more)</code>; the default is no link. Short cut: <code>more=</code> produces [[Wikipedia|Read more...]]
*<code>errors=</code> to allow Lua error messages to appear in the output
*<code>showall=</code> to show all articles simultaneously