Template:Transclude random excerpt/doc: Difference between revisions

Content deleted Content added
Documenting new template
 
Update to reflect recent changes to Module:Excerpt
Line 9:
===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.
*A list of file (image) numbers such as <code>files=1</code>; the default is no images. Note that images within infoboxes etc. are not available.
*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
Eachparagraphs= namedand parameterfiles= acceptseach accept a comma-separated list containing numbers and/or number ranges in the format min-max.
 
===TemplateData===
Line 58 ⟶ 59:
"example": "(more)",
"default": "no link"
},
"errors": {
"label": "errors",
"description": "Sllow Lua error messages to appear in the output?",
"type": "boolean",
"required": false,
"example": "true",
"default": "false"
},
}