Template:KeyValue: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) mNo edit summary |
SirYodaJedi (talk | contribs) m (Undo test) |
||
Line 2: | Line 2: | ||
{{todo|Prohibit omitting actual KV name; print some sort of text in red if missing.}} | {{todo|Prohibit omitting actual KV name; print some sort of text in red if missing.}} | ||
{{doc}} | {{doc}} | ||
<includeonly><onlyinclude>{{#if:||{{#switch:{{{1|}}}|start|divider|end=|<!-- | <includeonly><onlyinclude>{{#if:{{{new|}}}{{{sectiontitle|}}}||{{#switch:{{{1|}}}|start|divider|end=|<!-- | ||
-->; {{#if: {{{deprecated|}}} | <del> }}<!-- | -->; {{#if: {{{deprecated|}}} | <del> }}<!-- | ||
-->{{{1}}}<!-- | -->{{{1}}}<!-- | ||
Line 48: | Line 48: | ||
Text input: | Text input: | ||
-->{{#if:{{{new|}}}||}}<!-- | -->{{#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: | End: | ||
-->{{#switch:{{{1|}}}|end=</table>|}}</onlyinclude></includeonly> | -->{{#switch:{{{1|}}}|end=</table>|}}</onlyinclude></includeonly> |
Revision as of 09:30, 23 April 2024
Todo: Prohibit omitting actual KV name; print some sort of text in red if missing.
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.