This article's documentation is for anything that uses the Source engine. Click here for more information.

Template:This is a/sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(This template really isn't that laggy. I was looking at Category:Pages where expansion depth is exceeded and found pages with this template, but it seems unrelated to this template.)
Tag: Blanking
No edit summary
Line 1: Line 1:
<onlyinclude><!--


    Page display name
-->{{#if:{{{name|}}}
  |{{yesno|{{{notitlechange|no}}}
      |yes =
      |no = {{DISPLAYTITLE:{{{name}}}|noerror}}
    }}
}}<!--
    Icon for entity
-->{{yesno|{{{sprite|no}}}
  |yes = [[File:{{{name|{{SUBPAGENAME}} }}}.png|left|link=]]
  |def = [[File:{{{sprite}}}|left|link=]]
}}<!--
    Icon for game
-->{{yesno|{{{icon|no}}}
  |yes = {{ {{{game}}} }}&nbsp;
  |def = {{ {{{icon}}} }}&nbsp;
}}<!--
    All the actual text
-->{{this is a/strings|this is a
  |this = {{#if:{{{name|}}}
      |{{Code|{{{name}}}}}
      |{{yesno|{{{this}}}|yes={{{this|{{this is a/strings|this}} }}} }} <!-- If the parameter "this" is defined as anything except a 0, no etc., then it reads as a translation of the word "this" -->
    }}
  |dx = {{#switch:{{{dx}}}<!--
-->|#default=<!--
-->|dx8={{Dx8}}<!--
-->|dx9={{Dx9}}<!--
-->|dx95|dx90c={{Dx95}}
    }}
  |cut = {{yesno|{{{cut|}}}|yes={{this is a/strings|cut}} }}
  |internal = {{yesno|{{{internal|}}}|yes={{this is a/strings|internal}} }}
  |type = {{if empty <!-- if not a valid type, default to whatever the parameter says -->
      |{{this is a/strings|type|{{{1}}} }}
      |{{{1}}}
    }}
  |in = {{#if:{{{game|}}}<!--
    -->|{{this is a/strings|list
          |{{ {{{game}}}|4}}<!--
        -->|{{#if:{{{game1|}}}|{{ {{{game1}}}|4}} }}<!--
        -->|{{#if:{{{game2|}}}|{{ {{{game2}}}|4}} }}<!--
        -->|{{#if:{{{game3|}}}|{{ {{{game3}}}|4}} }}<!--
        -->|{{#if:{{{game4|}}}|{{ {{{game4}}}|4}} }}<!--
        -->|{{#if:{{{game5|}}}|{{ {{{game5}}}|4}} }}<!--
    -->}}
      |{{#if:{{{series|}}}
          |{{ {{{series}}} series|4}}
          |{{this is a/strings|all games
              |engine = {{this is a/strings|list
                  |{{ {{{engine|Source}}}|4}}<!--
                -->|{{#if:{{{engine1|}}}|{{ {{{engine1}}}|4}} }}<!--
                -->|{{#if:{{{engine2|}}}|{{ {{{engine2}}}|4}} }}<!--
            -->}}
            }}
        }}
    }}
  |for the shader = {{#if:{{{shader|}}}<!--
    -->|{{#ifeq:{{{1}}}|shader parameter|<!--
        -->{{this is a/strings|for the shader|shader=<!--
            -->{{this is a/strings|list<!--
                -->| [[{{{shader}}}]]<!--
                    -->|{{#if:{{{shader1|}}}|[[{{{shader1}}}]]}}<!--
                    -->|{{#if:{{{shader2|}}}|[[{{{shader2}}}]]}}<!--
                    -->|{{#if:{{{shader3|}}}|[[{{{shader3}}}]]}}<!--
                    -->|{{#if:{{{shader4|}}}|[[{{{shader4}}}]]}}<!--
                    -->|{{#if:{{{shader5|}}}|[[{{{shader5}}}]]}}<!--
            -->}}<!--
        -->}}<!--
    -->}}<!--
-->}}
  |since = {{#if:{{{since|}}}|{{this is a/strings|since|since={{ {{{since}}}|4}} }} }}
  |before = {{#if:{{{before|}}}|{{this is a/strings|before|before={{ {{{before}}}|4}} }} }}
  |except = {{#if:{{{except|}}}|{{this is a/strings|except|except={{ {{{except}}}|4}} }} }}
  |except-multi = {{#if:{{{except-multi|}}}|{{this is a/strings|except|except={{{except-multi}}} }} }}
}}<!--
    Categories
-->{{yesno|{{{nocat|no}}}
|yes =
|no = {{#if:{{this is a/strings|type|{{{1}}} }}
      |{{#if:{{{game|}}} |{{this is a/category|{{{1}}}|in={{{game}}} |cut={{{cut|}}}|internal={{{internal|}}} }} }}<!--
    -->{{#if:{{{game1|}}}|{{this is a/category|{{{1}}}|in={{{game1}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!--
    -->{{#if:{{{game2|}}}|{{this is a/category|{{{1}}}|in={{{game2}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!--
    -->{{#if:{{{game3|}}}|{{this is a/category|{{{1}}}|in={{{game3}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!--
    -->{{#if:{{{game4|}}}|{{this is a/category|{{{1}}}|in={{{game4}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!--
    -->{{#if:{{{game5|}}}|{{this is a/category|{{{1}}}|in={{{game5}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!--
    -->{{#if:{{{engine|}}} |{{this is a/category|{{{1}}}|in={{{engine}}} base |cut={{{cut|}}}|internal={{{internal|}}} }} }}<!--
    -->{{#if:{{{engine1|}}}|{{this is a/category|{{{1}}}|in={{{engine1}}} base|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!--
    -->{{#if:{{{engine2|}}}|{{this is a/category|{{{1}}}|in={{{engine2}}} base|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!--
    -->{{#if:{{{series|}}}|{{this is a/category|{{{1}}}|in={{{series}}} series|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!--
    Add to Category:Source base (type) if game, engine, and series are all unspecified
    -->{{#if:{{{game|}}}{{{engine|}}}{{{series|}}}||{{this is a/category|{{{1}}}|in=source base|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!--
    Add shaders to Category:Shaders
    -->{{#switch:{{{1}}}|pixel shader|vertex shader={{this is a/category|Shader|in=}}}}
    }}
}}<!--
    Top icons
-->{{#if:{{{engine|}}}|{{ {{{engine}}} topicon|nocat=1}} }}<!--
-->{{#if:{{{engine1|}}}|{{ {{{engine1}}} topicon|nocat=1}} }}<!--
-->{{#if:{{{engine2|}}}|{{ {{{engine2}}} topicon|nocat=1}} }}<!--
-->{{#if:{{{engine|}}}{{{game|}}}{{{series|}}}||{{source topicon|nocat=1}} }}<!--
    Warning if {{{1}}} is not present
--><includeonly>{{#if:{{{1|}}}||{{warning|{{this is a/strings|missing parameter }} }} }}</includeonly><!--
--></onlyinclude>

Revision as of 12:43, 5 December 2024

This is a {{{semi-internal}}} {{{1}}} available in all Source Source games.