Template:Para/doc:修订间差异
无编辑摘要 |
无编辑摘要 |
||
第6行: | 第6行: | ||
{{High-use|78,000+}} |
{{High-use|78,000+}} |
||
<!-- 在本行下編輯模板說明 --> |
<!-- 在本行下編輯模板說明 --> |
||
{{Distinguish|Template:Paragraph break|Template:Param}} |
<includeonly>{{Distinguish|Template:Paragraph break|Template:Param}}</includeonly> |
||
== Usage == |
== Usage == |
||
This template is for giving examples of [[Wikipedia:Template messages|template]] parameter source code (useful in template documentation and talk page discussions of template code). It must have one or two parameters itself. The first parameter is the name of the example parameter to display (this may be ''empty'', but it must be ''present''), and the second (optional) parameter is a value for the first example parameter or, if the first {{tlx|para}} parameter is empty, an unnamed example parameter. |
This template is for giving examples of [[Wikipedia:Template messages|template]] parameter source code (useful in template documentation and talk page discussions of template code). It must have one or two parameters itself. The first parameter is the name of the example parameter to display (this may be ''empty'', but it must be ''present''), and the second (optional) parameter is a value for the first example parameter or, if the first {{tlx|para}} parameter is empty, an unnamed example parameter. |
2019年7月1日 (一) 02:07的版本
此頁面是Template:Para的Template文档。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
此Template文档被引用於148,000+個頁面。 為了避免造成大規模的影響,所有對此Template文档的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此Template文档中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
Usage
This template is for giving examples of template parameter source code (useful in template documentation and talk page discussions of template code). It must have one or two parameters itself. The first parameter is the name of the example parameter to display (this may be empty, but it must be present), and the second (optional) parameter is a value for the first example parameter or, if the first {{para}}
parameter is empty, an unnamed example parameter.
Examples
Code | Result | Notes |
---|---|---|
{{para|name}}
|
|name=
|
|
{{para|title|{{var|book title}}}}
|
|title=book title
|
|
{{para| |section}}
|
|section
|
For unnamed parameters; note empty first parameter in the code |
{{para|{{var|parameter}}|{{var|value}}}}
|
|parameter=value
|
When using literal, pre-specified values, simply provide the value (as in the third example above). When illustrating hypothetical, variable, or user-definable values, use {{var|value}}
(as in the second example above). The same should be done for non-literal, example parameters (fourth example above).
See also
See also the three tables below; they describe the family of approximately forty templates built for talking about templates.
Here are some related templates or subjects not found in the tables:
}}</includeonly>