Template:This is a: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(rewrite should be complete!) |
||
Line 1: | Line 1: | ||
<!-- | |||
Page display name | |||
-->{{#if:{{{ | -->{{#if:{{{name|}}} | ||
|{{yesno|{{{notitlechange|no}}} | |||
|yes = | |||
|no = {{#switch:{{{1}}} | |||
|#default = {{DISPLAYTITLE:{{Code|preset=0|style=color:white|select=all|background=transparent|{{{name}}} }}|noreplace}} | |||
|console command|console variable|pixel shader|vertex shader = | |||
}} | |||
}} | |||
}}<!-- | |||
Icon for entity | |||
-->{{ | -->{{yesno|{{{sprite|no}}} | ||
|yes = [[File:{{{name|{{PAGENAME}} }}}.png|left|link=]] | |||
|def = [[File:{{{sprite}}}|left|link=]] | |||
}}<!-- | }}<!-- | ||
Icon for game | |||
-->{{ | -->{{yesno|{{{icon|no}}} | ||
|yes = {{Game icon|{{{game}}} }} | |||
|def = {{Game icon|{{{icon}}} }} | |||
}}<!-- | |||
All the actual text | |||
-->{{this is a/strings|this is a | |||
|this = {{#if:{{{name|}}} | |||
|{{Code|select=all| {{{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" --> | |||
}} | |||
|internal = {{yesno|{{{internal|}}}|yes={{this is a/strings|internal}} }} | |||
|cut = {{yesno|{{{cut|}}}|yes={{this is a/strings|cut}} }} | |||
| | |||
|type = {{if empty|{{this is a/strings|type|{{{1}}} }} |{{{1}}} }} <!-- if not a valid type, default to whatever the parameter says --> | |||
|in = {{#if:{{{game|}}}<!-- | |||
-->|{{this is a/strings|list | |||
|{{game icon|{{{game}}}|4}}<!-- | |||
-->|{{game icon|{{{game1}}}|4}}<!-- | |||
-->|{{game icon|{{{game2}}}|4}}<!-- | |||
-->|{{game icon|{{{game3}}}|4}}<!-- | |||
-->|{{game icon|{{{game4}}}|4}}<!-- | |||
-->|{{game icon|{{{game5}}}|4}}<!-- | |||
-->}} | |||
|{{#if:{{{series|}}} | |||
|{{series icon|{{{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}} }}<!-- | |||
-->}} | |||
}} | |||
}} | |||
}} | |||
|since = {{#if:{{{since|}}}|{{this is a/strings|since|since={{game icon|{{{since}}}|4}} }} }} | |||
|before = {{#if:{{{before|}}}|{{this is a/strings|before|before={{game icon|{{{before}}}|4}} }} }} | |||
|except = {{#if:{{{except|}}}|{{this is a/strings|except|except={{game icon|{{{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}}}|type={{{type}}}|in={{{game}}} |cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | |||
-->{{#if:{{{game1|}}}|{{this is a/category|{{{1}}}|type={{{type}}}|in={{{game1}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | |||
-->{{#if:{{{game2|}}}|{{this is a/category|{{{1}}}|type={{{type}}}|in={{{game2}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | |||
-->{{#if:{{{game3|}}}|{{this is a/category|{{{1}}}|type={{{type}}}|in={{{game3}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | |||
-->{{#if:{{{game4|}}}|{{this is a/category|{{{1}}}|type={{{type}}}|in={{{game4}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | |||
-->{{#if:{{{game5|}}}|{{this is a/category|{{{1}}}|type={{{type}}}|in={{{game5}}}|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | |||
-->{{# | -->{{#if:{{{engine|}}} |{{this is a/category|{{{1}}}|type={{{type}}}|in={{{engine}}} base |cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | ||
-->{{#if:{{{engine1|}}}|{{this is a/category|{{{1}}}|type={{{type}}}|in={{{engine1}}} base|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | |||
-->{{#if:{{{engine2|}}}|{{this is a/category|{{{1}}}|type={{{type}}}|in={{{engine2}}} base|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | |||
-->{{#if:{{{series|}}}|{{this is a/category|{{{1}}}|type={{{type}}}|in={{{series}}} series|cut={{{cut|}}}|internal={{{internal|}}} }} }}<!-- | |||
Add to Category:Source base (type) if game, engine, and series are all unspecified | |||
-->{{#if: {{{game|}}} | -->{{#if:{{{game|}}}{{{engine|}}}{{{series|}}}||{{this is a/category|{{{1}}}|type={{{type}}}|in=source base|cut={{{cut|}}}|internal={{{internal|}}} }} }} | ||
}} | |||
}}<!-- | }}<!-- | ||
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><!-- | ||
--> | --><noinclude>{{doc}}</noinclude> | ||
Revision as of 18:07, 18 May 2024
This {{{dx}}} is a {{{semi-internal}}} {{{1}}} {{{for the shader}}} available in all Source games.
The above documentation is transcluded from Template:This is a/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.