Template:Transclude random excerpt/doc: Difference between revisions

Content deleted Content added
No edit summary
still being added ...hard to keepup
 
(4 intermediate revisions by 3 users not shown)
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
*<code>list=</code> to show a list of articles <big>{{warnsign| coding not compatible with mobile versions of Wikipedia causing display and accessibility problems}}</big>
<code>paragraphs=</code> and <code>files=</code> each accept a comma-separated list containing numbers and/or number ranges in the format min-max. Alternatively, <code>files=</code> can accept the name of a single image, e.g. <code>files=My image file.jpg</code>.
 
Line 116 ⟶ 115:
 
<includeonly>{{sandbox other||
[[Category:EncyclopedicArticle shared content templates]]
}}</includeonly>