Content deleted Content added
Miscellaneous options |
still being added ...hard to keepup |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 1:
{{Documentation subpage}}
{{Lua|Module:Excerpt/portals}}
'''Transclude random excerpt''' transcludes the lead of an article as an excerpt. It is designed for use in [[WP:portal|portal]]s. It returns the text of an article up to but excluding the first header, after removing:
*initial templates such as infoboxes, hatnotes and article improvement tags
Line 8:
===Usage===
<pre style="overflow:auto">{{Transclude random excerpt | 1= | 2= | paragraphs= | files= | fileargs
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.
*<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:
}}</includeonly>
|