Template:MatProxyCell
来自Valve Developer Community
跳转到导航
跳转到搜索

文档页面 Template:MatProxyCell/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
Usage
This template is designed to be used for List of material proxies. It is a text block with a headline. Multiple of these will display next to each other, filling row by row.
One can link to a block like a section using the {{material proxy}} template with the {{{title}}} as first parameter, e. g. {{material proxy|LessOrEqual}}
→ LessOrEqual
.
Parameters
- {{{title}}} – The proxy name;
- {{{desc}}} – The proxy description;
- {{{arguments}}} – The proxy arguments that can or must be provided. Use two types of lines: ; <code>argument name</code> for argument names and : argument description for descriptions.
Examples
Wikitext | Result |
---|---|
{{MatProxyCell|title={{param|title}}|desc={{param|desc}}|arguments= {{param|arguments}} }} |
<div id="{{{title}}}" style="display:grid; vertical-align: top; padding:.5em; margin:.5em; background: rgba(255,255,255,0.03);"> {{{title}}} {{{desc}}} {{{arguments}}} |
{{MatProxyCell|title=LessOrEqual|desc=Compares the first value to the second.|arguments= ; <code>lessEqualVar</code> : If <code>srcVar1 <= srcVar2</code> then the value of this variable is copied into <code>resultVar</code> ; <code>greaterVar</code> : If <code>srcVar1 > srcVar2</code> then the value of this variable is copied into <code>resultVar</code> ; <code>srcVar1</code> ; <code>srcVar2</code> ; <code>resultVar</code> }} |
LessOrEqual Compares the first value to the second.
|