Module:Excerpt/portals/doc: Difference between revisions
From Kenshi Wiki
More actions
Created page with "{{Module rating|beta}} {{high-use}} {{Lua|Module:Yesno|Module:Hatnote|Module:Transcluder}} {{Uses TemplateStyles|Template:Excerpt/styles.css}} == Usage == ;<code><nowiki>{{</nowiki>#invoke:Excerpt/portals|lead}}</code> :Transcludes the lead of an article as an excerpt. ''Main documentation: {{tl|Transclude lead excerpt/doc}}'' ;<code><nowiki>{{</nowiki>#invoke:Excerpt/portals|linked}}</code> :Transcludes as an excerpt the lead of an article selected randomly from wikil..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Lua|Module:Yesno|Module:Hatnote|Module:Transcluder}} | {{Lua|Module:Yesno|Module:Hatnote|Module:Transcluder}} | ||
{{Uses TemplateStyles|Template:Excerpt/styles.css}} | {{Uses TemplateStyles|Template:Excerpt/styles.css}} | ||
Line 30: | Line 28: | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Module config pages]] | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
[[Category:Module | [[Category:Module documents]] | ||
[[Category:Module config documents]] | |||
</noinclude> | </noinclude> |
Latest revision as of 02:37, 11 March 2025
Uses Lua: |
This module uses TemplateStyles: |
Usage
{{#invoke:Excerpt/portals|lead}}
- Transcludes the lead of an article as an excerpt. Main documentation: {{Transclude lead excerpt/doc}}
{{#invoke:Excerpt/portals|linked}}
- Transcludes as an excerpt the lead of an article selected randomly from wikilinks on a page. Main documentation: {{Transclude linked excerpt/doc}}
{{#invoke:Excerpt/portals|listitem}}
- Transcludes as an excerpt the lead of an article selected randomly from list items on a page. Main documentation: {{Transclude list item excerpt/doc}}
{{#invoke:Excerpt/portals|random}}
- Transcludes as an excerpt the lead of an article selected randomly from the parameters. Main documentation: {{Transclude random excerpt/doc}}
{{#invoke:Excerpt/portals|selected}}
- Transcludes the lead of a selected article as an excerpt. Main documentation: {{Transclude selected excerpt/doc}}
Note
Before saving a change to this module, please preview with:
- Template:Transclude lead excerpt/testcases
- Template:Transclude linked excerpt/testcases
- Template:Transclude list item excerpt/testcases
- Template:Transclude random excerpt/testcases
- Template:Transclude selected excerpt/testcases