Module:Excerpt/doc
Appearance
| This is a documentation subpage for Module:Excerpt. It contains usage information, categories and other content that is not part of the original Module page. |
| Uses Lua: |
This module implements Template:Excerpt.
- See Template:Excerpt for documentation on the template parameters
- See Module:Excerpt/config for configuration of this module
- See c:Data:I18n/Module:Excerpt.tab for localizing this module
Usage
[edit]Basic usage is:
{{#invoke:Excerpt|main}}
To localize the parameters to other languages and/or set default values, use the following pattern:
{{#invoke:Excerpt|main
| files = {{{archivos|1}}} <!-- "archivos" means "files" in Spanish; set 1 as the default value -->
| lists = {{{listas|}}} <!-- "listas" means "lists" in Spanish -->
| tables = {{{tablas|}}} <!-- "tablas" means "tables" in Spanish -->
| only = {{#switch:{{{solo|}}} <!-- "solo" means "only" in Spanish -->
| listas = lists <!-- Notice the translation comes first here -->
| tablas = tables
}}
}}
See es:Template:Extracto for an example of a full localization with default values and other possibilities.