Template:Transclude random excerpt/doc: Difference between revisions

Content deleted Content added
+fileargs
+see also
Line 8:
 
===Usage===
 
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:
*A list of paragraphs such as <code>paragraphs=1,3-5</code>; the default is all paragraphs.
Line 16 ⟶ 15:
*<code>errors=</code> to allow Lua error messages to appear in the output
paragraphs= and files= each accept a comma-separated list containing numbers and/or number ranges in the format min-max.
 
===See also===
*{{tl|Transclude lead excerpt}}: specifies the article explicitly
*{{tl|Transclude selected excerpt}} - chooses the article from a list using an index such as the week number
 
===TemplateData===