Module:Excerpt/doc

From Bonkipedia
< Module:Excerpt
Revision as of 16:32, 13 December 2020 by [[mw:]]>Sophivorus
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Excerpt

warning Warning:Do not edit. This page is maintained by an automated tool. All edits should be done at mediawiki.org. (translate this warning)
Please help translate this page.

This module implements Template:Excerpt.

Usage

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.