Difference between revisions of "Module:Excerpt/doc"

From Asmbly Wiki
 
w>Sophivorus
(Doesn't really use Module:Hatnote)
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:
+
== Portals ==
  
<pre>{{#invoke:Excerpt|main}}</pre>
+
Portals still use a previous version of this module:
  
To localize the parameters to other languages and/or set default values, use the following pattern:
+
* [[Module:Excerpt/portals]] / [[Module:Excerpt/portals/sandbox|sandbox]] — Used by:
 +
** {{tl|Transclude lead excerpt}} / [[Template:Transclude lead excerpt/sandbox|sandbox]] / [[Template:Transclude lead excerpt/testcases|testcases]]
 +
** {{tl|Transclude linked excerpt}} / [[Template:Transclude linked excerpt/sandbox|sandbox]] / [[Template:Transclude linked excerpt/testcases|testcases]]
 +
** {{tl|Transclude list item excerpt}} / [[Template:Transclude list item excerpt/sandbox|sandbox]] / [[Template:Transclude list item excerpt/testcases|testcases]]
 +
** {{tl|Transclude random excerpt}} / [[Template:Transclude random excerpt/sandbox|sandbox]] / [[Template:Transclude random excerpt/testcases|testcases]]
 +
** {{tl|Transclude selected excerpt}} / [[Template:Transclude selected excerpt/sandbox|sandbox]] / [[Template:Transclude selected excerpt/testcases|testcases]]
 +
* [[Module:Excerpt slideshow]] / [[Module:Excerpt slideshow/sandbox|sandbox]] — Uses Module:Excerpt/portals and is used by:
 +
** {{tl|Transclude excerpts as random slideshow}} / [[Template:Transclude excerpts as random slideshow/sandbox|sandbox]] / [[Template:Transclude excerpts as random slideshow/testcases|testcases]]
 +
** {{tl|Transclude linked excerpts as random slideshow}} / [[Template:Transclude linked excerpts as random slideshow/sandbox|sandbox]] / [[Template:Transclude linked excerpts as random slideshow/testcases|testcases]]
 +
** {{tl|Transclude list item excerpts as random slideshow}} / [[Template:Transclude list item excerpts as random slideshow/sandbox|sandbox]] / [[Template:Transclude list item excerpts as random slideshow/testcases|testcases]]
 +
* [[Module:Random slideshow]] / [[Module:Random slideshow/sandbox|sandbox]] — Uses Module:Excerpt/portals and is used by:
 +
** {{tl|Random slideshow}} / [[Template:Random slideshow/sandbox|sandbox]] / [[Template:Random slideshow/testcases|testcases]]
 +
** {{tl|Transclude files as random slideshow}} / [[Template:Transclude files as random slideshow/sandbox|sandbox]] / [[Template:Transclude files as random slideshow/testcases|testcases]]
  
<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>

Revision as of 20:32, 20 January 2022

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

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

This module implements Template:Excerpt.

Portals

Portals still use a previous version of this module: