“模板:Infobox Railway”与“模块:Arguments/doc”:页面之间的差异

来自NebulaeWiki
(页面间差异)
(已保护“模板:Infobox Railway”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期)))
 
(已保护“模块:Arguments/doc”([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期)))
 
第1行: 第1行:
<includeonly>
{{Documentation}}
{| class="infobox floatright"
{{Wikipedia template}}
|-class="infobox-image"
 
| {{#if:{{{Picture|}}}|[[文件:{{{Picture|}}}|center|400px|link=]]<p style="text-align:center; padding-top:-10px;">{{{Description|}}}</p>|}}
'''Module:Arguments''' provides easy processing of arguments passed from #invoke. It is a meta-module, meant for use by other modules, and should not be called from #invoke directly. Its features include:
|-class="infobox-title" style="text-align:center;"
* Easy trimming of arguments and removal of blank arguments.
! <span>{{#if:{{{Logo|}}}|[[文件:{{{Logo|}}}|x24px|link=]]|[[文件:Train.svg|x24px|link=]]}}{{{Name|}}}</span>
* Arguments can be passed by both the current frame and by the parent frame at the same time. (More details below.)
|-class="infobox-data infobox-col1"
* Arguments can be passed in directly from another Lua module or from the debug console.
! <hr/>
* Arguments are fetched as needed, which can help avoid (some) problems with {{tag|ref}} tags.
|-class="infobox-data infobox-col2"
* Most features can be customized.
! 运营地点
| {{{Location|}}}
|-class="infobox-data infobox-col2"
! 服务类型
| {{{Type|}}}
|-class="infobox-data infobox-col2"
! 所属系统
| {{{System|}}}
|-class="infobox-data infobox-col2"
! 目前状况
| {{{Situation|}}}
|-class="infobox-data infobox-col2"
! 起点站
| {{{Start|}}}
|-class="infobox-data infobox-col2"
! 终点站
| {{{End|}}}
|-class="infobox-data infobox-col2"
! 系统代号
| {{{Code|}}}
|-class="infobox-data infobox-col1"
! <hr/>
|-class="infobox-data infobox-col2"
! 线路结构
| {{{Structure|}}}
|-class="infobox-data infobox-col2"
! 线路长度
| {{{Length|}}}
|-class="infobox-data infobox-col2"
! 最高速度
| {{{Speed|}}}
|-class="infobox-data infobox-col2"
! 正线数目
| {{{Lines|}}}
|-class="infobox-data infobox-col2"
! 车站数目
| {{{Stations|}}}
|-class="infobox-data infobox-col2"
! 轨距
| {{{Gauge|}}}
|-class="infobox-data infobox-col2"
! 电气化方式
| {{{Electrification|}}}
|-class="infobox-data infobox-col2"
! 闭塞方式
| {{{Blocking|}}}
|-class="infobox-data infobox-col2"
! 信号系统
| {{{Signal|}}}
|-class="infobox-data infobox-col2"
! 车辆基地
| {{{Depot|}}}
|-class="infobox-data infobox-col2"
! 使用车型
| {{{Model|}}}
|-class="infobox-data infobox-col2"
! 列车编组
| {{{Formation|}}}
|-class="infobox-data infobox-col1"
! <hr/>
|-class="infobox-data infobox-col2"
! 开通运营
| {{#if:{{{Opening|}}}|{{{Opening|}}}|暂未开通}}
|-class="infobox-data infobox-col2"
! 最近延伸
| {{{Extending|}}}
|-class="infobox-data infobox-col2"
! 拥有者
| {{{Owner|}}}
|-class="infobox-data infobox-col2"
! 运营者
|style="margin-bottom: 14px"| {{{Operator|}}}
|}
<templatestyles src="Template:Infobox/styles.css" />
<templatestyles src="Template:Infobox Railway/styles.css" />
</includeonly>
<noinclude>
{{/doc}}
</noinclude>

2023年9月23日 (六) 22:34的最新版本

Module:Arguments provides easy processing of arguments passed from #invoke. It is a meta-module, meant for use by other modules, and should not be called from #invoke directly. Its features include:

  • Easy trimming of arguments and removal of blank arguments.
  • Arguments can be passed by both the current frame and by the parent frame at the same time. (More details below.)
  • Arguments can be passed in directly from another Lua module or from the debug console.
  • Arguments are fetched as needed, which can help avoid (some) problems with <ref>...</ref> tags.
  • Most features can be customized.