模块:Excerpt/portals/doc
来自戏曲百科
这是模块:Excerpt/portals的文档页面
文件:OOjs UI icon bold-b.svg | 此Moduledocumentation已评为beta版,可进行广泛使用。因其新近完成,请谨慎使用,以确保输出结果符合预期。 |
文件:Ambox warning yellow.svg | 此Module被引用於許多頁面。 為了避免造成大規模的影響,所有對此Module的編輯應先於沙盒或測試樣例上測試。 測試後無誤的版本可以一次性地加入此Module中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
🪧 | 此-{zh-hans:模块; zh-hant:模組;}-使用Lua语言: |
文件:Farm-Fresh css add.svg | 本-{zh-hans:模块; zh-hant:模組;}-使用以下模板样式: |
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
See also