Template:KeyValue: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Tag: Undo |
||
Line 1: | Line 1: | ||
{{Lang}} | {{Lang}}{{Documentation}}<includeonly><onlyinclude>{{#if:{{{new|}}}{{{sectiontitle|}}}||{{#switch:{{{1|}}}|start|divider|end=|<!-- | ||
{{ | |||
<includeonly><onlyinclude>{{#if:{{{new|}}}{{{sectiontitle|}}}||{{#switch:{{{1|}}}|start|divider|end=|<!-- | |||
-->; {{#if: {{{deprecated|}}} | <del> }}<!-- | -->; {{#if: {{{deprecated|}}} | <del> }}<!-- | ||
-->{{{1}}}<!-- | -->{{{1}}}<!-- | ||
Line 21: | Line 19: | ||
-->{{#if: {{{3|}}} | {{{3}}}}}<!-- | -->{{#if: {{{3|}}} | {{{3}}}}}<!-- | ||
-->}}}}</onlyinclude></includeonly> | -->}}}}<!-- | ||
New: | |||
-->{{#switch:{{{1|}}} | |||
|start=<table cellpadding="4" width="100%" style="border:1px solid #525252"> | |||
<tr style="z-index:100; background-color:#949494; box-shadow:0 2px 0 rgb(38 38 38); color:#141414; position:sticky; margin-bottom:2px; top:0;"> | |||
<th width="8%" style="box-shadow:2px 0 rgb(38 38 38)">{{KV/strings|Key}} <span style="opacity:.7; user-select:none; cursor:help" title="{{KV/strings|KeyHelp}}">(?)</span></th> | |||
<th width="8%" style="box-shadow:2px 0 rgb(38 38 38)">{{KV/strings|Variable}}</th> | |||
<th>{{KV/strings|Source}} <span style="opacity:.7; user-select:none; cursor:help" title="{{KV/strings|SourceHelp}}">(?)</span></th> | |||
<th width="10%" style="box-shadow:2px 0 rgb(38 38 38)">{{KV/strings|PropertyName}}</th> | |||
<th width="10%" style="box-shadow:2px 0 rgb(38 38 38)">{{KV/strings|DefaultValue}}</th> | |||
<th>{{KV/strings|Desc}}</th> | |||
</tr> | |||
|}}<!-- | |||
Section title: | |||
-->{{#if:{{{sectiontitle|}}}|<tr><td colspan="6" bgcolor="#303030" align="center"><h3 style="font-size:1em; color:#b9b7b5; padding:0; margin:2px 0">{{{sectiontitle|}}}</h3></td></tr>|}}<!-- | |||
Divider: | |||
-->{{#switch:{{{1|}}}|divider=<tr><td colspan="6" bgcolor="#303030" align="center"><span style="pointer-events:none; user-select:none"> </span></td></tr>|}}<!-- | |||
Text input: | |||
-->{{#if:{{{new|}}} | |||
|<tr bgcolor="#{{#if:{{{deprecated|}}}|423333|3a3a3a}}"> | |||
<td bgcolor="#{{#if:{{{deprecated|}}}|423333|363636}}" align="center"><kbd>{{{1|}}}{{#if:{{{toKey|}}}| <span style="opacity:.7">to</span> {{{toKey|}}}|}}</kbd></td> | |||
<td align="center">{{KV Type|{{{2}}}}}</td> | |||
<td align="center">{{#if:{{{src|}}}|'''{{{src|}}}'''}}</td> | |||
<td>{{{3|}}}{{#if:{{{toPN|}}}| <span style="opacity:.7">to</span> {{{toPN|}}}|}}</td> | |||
<td align="center" {{#if:{{{color|}}}|style="background-color:rgb({{{color|}}}); color:{{#switch:{{{color|}}}|255 255 255=#141414|}};"|}}>{{{color|{{{value|}}}}}}{{#if:{{{rawValue|}}}|<div>{{Code|{{{rawValue|}}}}}</div>|}}</td> | |||
<td style="padding:0"><div style="max-height:240px; box-sizing:border-box; overflow-y:auto; padding:4px"><!-- | |||
--><div style="display:flex; align-items:center; flex-wrap:wrap; gap:6px"><!-- | |||
-->{{#if: {{{deprecated|}}} | {{obs|4}} }}<!-- | |||
-->{{#if: {{{only|}}} | {{#ifexist: Template:{{{only}}} only | {{{{{only}}} only}} | {{only|{{{only}}}}}}} }}<!-- | |||
-->{{#if: {{{since|}}} | {{#ifexist: Template:{{{since}}} add | {{{{{since}}} add}} | {{since|{{{since}}}}}}} }}<!-- | |||
-->{{#if: {{{removed|}}} | {{removed|{{{removed}}}}} }}<!-- | |||
-->{{#if: {{{not|}}} | {{#ifexist: Template:{{{not}}} not | {{{{{not}}} not}} | {{not|{{{not}}}}}}} }}<!-- | |||
-->{{#if: {{{also|}}} | {{#ifexist: Template:{{{also}}} also | {{{{{also}}} also}} | {{also|{{{also}}}}}}} }}<!-- | |||
-->{{#if: {{{nofgd|}}} | {{Not in FGD}} }}<!-- | |||
--></div>{{{4|}}}</div></td> | |||
</tr>|}}<!-- | |||
End: | |||
-->{{#switch:{{{1|}}}|end=</table>|}}</onlyinclude></includeonly> |
Revision as of 06:48, 2 May 2023
The above documentation is transcluded from Template:KeyValue/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.