Difference between revisions of "Module:Excerpt/doc"

From Asmbly Wiki
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Shared Template Warning|Module:Excerpt|Module:Excerpt}}
+
{{Module rating|beta}}
 
+
{{high-use|6644}}
{{Lua|Module:Transcluder|Module:Yesno}}
+
{{Uses Lua|Module:Excerpt/config|Module:Transcluder|Module:Yesno|Module:TNT}}
  
 
This module implements [[Template:Excerpt]].
 
This module implements [[Template:Excerpt]].
  
 
* See [[Template:Excerpt]] for documentation on the template parameters
 
* See [[Template:Excerpt]] for documentation on the template parameters
 +
* See [[mw:Module:Excerpt]] for documentation on this module
 
* See [[Module:Excerpt/config]] for configuration of this module
 
* See [[Module:Excerpt/config]] for configuration of this module
* See [[c:Data:I18n/Module:Excerpt.tab]] for localizing this module
 
 
== Usage ==
 
 
Basic usage is:
 
 
<pre>{{#invoke:Excerpt|main}}</pre>
 
 
To localize the parameters to other languages and/or set default values, use the following pattern:
 
  
<pre>
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
{{#invoke:Excerpt|main
+
<!-- Categories below this line, please; interwikis at Wikidata -->
| 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
 
}}
 
}}
 
</pre>
 
  
See [[:es:Template:Extracto]] for an example of a full localization with default values and other possibilities.
+
}}</includeonly>

Latest revision as of 01:42, 24 December 2022

Page Module:Message box/ombox.css has no content.

Page Module:Message box/ombox.css has no content.

This module implements Template:Excerpt.