Template:Transclude random excerpt/doc: Difference between revisions

Content deleted Content added
doc update
formatting
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:
*A list of paragraphs such as <code>paragraphs=1,3-5</code>; the default is all paragraphs.
Line 88 ⟶ 90:
</templatedata>
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox other| |
[[Category:Encyclopedic content templates]]
[[Category:Template-Class Portal pages]]