“模板:Side box/doc”的版本间的差异

来自能源智库
跳转至: 导航搜索
(创建页面,内容为“本模块用于执行模板 {{tl|side box}}。 == 从维基代码中使用 == 本模块不能直接用于维基文本,只能通过 {{tl|side box}} 模板使用...”)
 
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
本模块用于执行模板 {{tl|side box}}
+
<includeonly><!-- 在這裡加入模板的保護標識 --></includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
 +
<!-- 在本行下編輯模板說明 -->
 +
{{lua|Module:Side box}}
 +
== 模板介紹 ==
 +
{{clear right}}
 +
{{Side box |metadata=no |image={{smaller|(image)}} |imageright={{smaller|(image<br />right)}}
 +
|above=在主体上方以单独一行显示的内容{{smaller|(above)}}
 +
|text=显示在框中的文字{{smaller|(text)}}
 +
|below=在主体下方以单独一行显示的内容{{smaller|(below)}}
 +
}}
 +
本模板是一个用于创建拥有合理样式的浮动内容框的元模板。
  
== 从维基代码中使用 ==
+
== 使用方法 ==
 +
{| class="wikitable"
 +
|-
 +
|style="width:9.0em;"| {{para|text}} || 显示在框中的文本
 +
|-
 +
| {{para|image}}      || 图像标签(或其他内容),若留空或输入none就不会显示图像
 +
|-
 +
| {{para|imageright}} || 在右侧以单独的表格显示图像标签(或其他内容)
 +
|-
 +
| {{para|position}}  || 输入{{code|left}}就会浮动在左边而不是右边
 +
|-
 +
| {{para|metadata}}  || 若输入{{code|no}}就会去除“metadata”HTML class
 +
|-
 +
| {{para|class}}      || 为此框设置 CSS class
 +
|-
 +
| {{para|style}}      || 为此框设置样式
 +
|-
 +
| {{para|textstyle}}  || 为此框设置文本样式
 +
|-
 +
| {{para|above}}      || 在顶端显示的内容
 +
|-
 +
| {{para|abovestyle}} || 为此框的顶端设置样式
 +
|-
 +
| {{para|below}}      || 在底端显示的内容
 +
|}
  
本模块不能直接用于维基文本,只能通过 {{tl|side box}} 模板使用。请看模板页说明。
+
== 參見 ==
 +
*{{tl|mbox}}
 +
*{{tl|Sidebar box}}
  
== 从 Lua 模块中使用 ==
+
<includeonly>
 
+
<!-- 本行下加入模板的分類 -->
为了在别的 Lua 模块中使用先载入本模块。
+
{{DEFAULTSORT:{{PAGENAME}}}}
 
+
[[Category:维基百科元模板|{{PAGENAME}}]]
<source lang="lua">
+
<!-- 本行下加入模板的跨語言鏈接 -->
local mSideBox = require('Module:Side box')
+
[[be:Шаблон:Side box]]
</source>
+
[[be-x-old:Шаблён:Бакавы блёк]]
 
+
[[bs:Šablon:Sporedni okvir]]
然后使用 _main 函数生成侧边框。
+
[[ca:Plantilla:Caixa lateral]]
 
+
[[ceb:Plantilya:Side box]]
<source lang="lua">
+
[[cy:Nodyn:Blwch ymyl]]
mSideBox._main(args)
+
[[diq:Şablon:Side box]]
</source>
+
[[dsb:Pśedłoga:Bocny kašćik]]
<!--
+
[[dv:ފަންވަތް:Side box]]
<var>args</var> 变量应该是 a table containing the arguments to pass to the module. To see the different arguments that can be specified and how they affect the module output, please refer to the {{tl|side box}} template documentation.
+
[[en:Template:Side box]]
-->
+
[[et:Mall:Äärekast]]
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
[[eo:Ŝablono:Flanka kesto]]
<!-- Categories go here and interwikis go in Wikidata. -->
+
[[fa:الگو:Side box]]
 
+
[[ga:Teimpléad:Side box]]
}}</includeonly>
+
[[gl:Modelo:Caixa lateral]]
 +
[[gv:Clowan:Side box]]
 +
[[hi:साँचा:Side box]]
 +
[[hsb:Předłoha:Bóčny kašćik]]
 +
[[id:Templat:Side box]]
 +
[[ja:Template:Side box]]
 +
[[jv:Cithakan:Side box]]
 +
[[km:ទំព័រគំរូ:Side box]]
 +
[[kn:ಟೆಂಪ್ಲೇಟು:Side box]]
 +
[[ko:틀:사이드 박스]]
 +
[[map-bms:Cithakan:Side box]]
 +
[[min:Templat:Side box]]
 +
[[mr:साचा:Side box]]
 +
[[ms:Templat:Side box]]
 +
[[mt:Mudell:Kaxxa ġenb]]
 +
[[ne:ढाँचा:Side box]]
 +
[[no:Mal:Sideboks]]
 +
[[or:ଛାଞ୍ଚ:Side box]]
 +
[[pa:ਫਰਮਾ:Side box]]
 +
[[pt:Predefinição:Side box]]
 +
[[ro:Format:Side Box]]
 +
[[ru:Шаблон:Side box]]
 +
[[simple:Template:Side box]]
 +
[[sr:Шаблон:Side box]]
 +
[[uk:Шаблон:Side box]]
 +
[[ur:سانچہ:Side box]]
 +
[[tl:Suleras:Side box]]
 +
[[tr:Şablon:Side box]]
 +
[[vi:Bản mẫu:Side box]]
 +
[[yo:Àdàkọ:Side box]]
 +
[[zu:Template:Side box]]
 +
</includeonly>

2016年8月7日 (日) 14:28的最新版本

Lua错误:无法创建进程:proc_open不可用。请检查PHP的指令配置“disable_functions”。

模板介紹

Lua错误:无法创建进程:proc_open不可用。请检查PHP的指令配置“disable_functions”。 本模板是一个用于创建拥有合理样式的浮动内容框的元模板。

使用方法

|text= 显示在框中的文本
|image= 图像标签(或其他内容),若留空或输入none就不会显示图像
|imageright= 在右侧以单独的表格显示图像标签(或其他内容)
|position= 输入left就会浮动在左边而不是右边
|metadata= 若输入no就会去除“metadata”HTML class
|class= 为此框设置 CSS class
|style= 为此框设置样式
|textstyle= 为此框设置文本样式
|above= 在顶端显示的内容
|abovestyle= 为此框的顶端设置样式
|below= 在底端显示的内容

參見