Difference between revisions of "Module:Excerpt/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Dreamy Jazz
(update)
blackwiki>Ahecht
(Document {{excerpt}})
Line 24: Line 24:
 
:''Main documentation: {{tl|Transclude selected excerpt/doc}}''
 
:''Main documentation: {{tl|Transclude selected excerpt/doc}}''
 
Transcludes the lead of a selected article as an excerpt.
 
Transcludes the lead of a selected article as an excerpt.
 +
 +
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|excerpt}}</code>
 +
:''Main documentation: {{tl|Excerpt/doc}}''
 +
Transcludes part of an article into another article.
  
 
== Note ==
 
== Note ==
Line 32: Line 36:
 
* [[Template:Transclude random excerpt/testcases]]
 
* [[Template:Transclude random excerpt/testcases]]
 
* [[Template:Transclude selected excerpt/testcases]]
 
* [[Template:Transclude selected excerpt/testcases]]
 +
* [[Template:Excerpt/testcases]]
  
 
== See also ==
 
== See also ==

Revision as of 19:55, 23 April 2020

Template:Uses Lua

Usage

{{#invoke:Excerpt|lead}}

Main documentation: {{Transclude lead excerpt/doc}}

Transcludes the lead of an article as an excerpt.

{{#invoke:Excerpt|linked}}

Main documentation: {{Transclude linked excerpt/doc}}

Transcludes as an excerpt the lead of an article selected randomly from wikilinks on a page.

{{#invoke:Excerpt|listitem}}

Main documentation: {{Transclude list item excerpt/doc}}

Transcludes as an excerpt the lead of an article selected randomly from list items on a page.

{{#invoke:Excerpt|random}}

Main documentation: {{Transclude random excerpt/doc}}

Transcludes as an excerpt the lead of an article selected randomly from the parameters.

{{#invoke:Excerpt|selected}}

Main documentation: {{Transclude selected excerpt/doc}}

Transcludes the lead of a selected article as an excerpt.

{{#invoke:Excerpt|excerpt}}

Main documentation: {{Excerpt/doc}}

Transcludes part of an article into another article.

Note

Before saving a change to this module, please preview with:

See also