Template:MatProxyCell: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added slight background and margin to be able to tell multiple of these cells apart visually. Made title stand out more. Added doc.)
(<code> -> <tt> in cell title because apparently <code> has received a background today.)
Line 2: Line 2:


--><div style="display:inline-block; vertical-align: top; width:24em; padding:.5em; margin:.5em; background: rgba(255,255,255,0.03);">
--><div style="display:inline-block; vertical-align: top; width:24em; padding:.5em; margin:.5em; background: rgba(255,255,255,0.03);">
<code style="color:#fff; font-weight:bold; font-size:120%; display:block; border-bottom: 1px solid #888; padding-bottom:.75em;">{{{title}}}</code>
<tt style="color:#fff; font-weight:bold; font-size:120%; display:block; border-bottom: 1px solid #888; padding-bottom:.75em;">{{{title}}}</tt>
{{#if: {{{desc|}}} | <em>{{{desc}}}</em> | {{todo}} }}
{{#if: {{{desc|}}} | <em>{{{desc}}}</em> | {{todo}} }}
{{#if: {{{arguments|}}} | {{{arguments}}} }}
{{#if: {{{arguments|}}} | {{{arguments}}} }}

Revision as of 18:53, 27 November 2024


English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

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}}
}}

{{{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.

lessEqualVar
If srcVar1 <= srcVar2 then the value of this variable is copied into resultVar
greaterVar
If srcVar1 > srcVar2 then the value of this variable is copied into resultVar
srcVar1
srcVar2
resultVar