User:Wisdurm/Sandbox/Template:Test: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><onlyinclude>{{#switch:{{{mode|}}}
<includeonly><onlyinclude>{{#switch:{{{mode|}}}
| inline = <{{#if:{{{text|}}}{{{1|}}}|div|span}} style="margin:{{#if:{{{text|{{{1|}}}}}}|.5em 0|0}}; margin-{{text-dir|ltr=left|rtl=right}}:calc(2em * {{#expr:{{{offset|0}}}.}}); display:{{#if:{{{text|{{{1|}}}}}}|flex|inline-flex}}; {{#if:{{{text|{{{1|}}}}}}|gap:4px;|}}{{#if:{{{text|}}}|background:linear-gradient(90deg, rgba({{{color|240,240,240}}},.04) 0%, transparent 100%); border-left:2px solid rgb({{{color|240,240,240}}}); border-radius:2px; padding:{{#if:{{{text|{{{1|}}}}}}|6px 0 4px 12px|2px 0 0 8px}};|<!-- Empty -->}} {{{root_inline_style|}}}"><!--
| inline = <{{#if:{{{text|}}}{{{1|}}}|div|span}} style="margin:{{#if:{{{text|{{{1|}}}}}}|.5em 0|0}}; margin-{{text-dir|ltr=left|rtl=right}}:calc(2em * {{#expr:{{{offset|0}}}.}}); display:{{#if:{{{text|{{{1|}}}}}}|flex|inline-flex}}; {{#if:{{{text|{{{1|}}}}}}|gap:4px;|}} background:linear-gradient(90deg, rgba({{{color|240,240,240}}},.04) 0%, transparent 100%); border-left:2px solid rgb({{{color|240,240,240}}}); border-radius:2px; padding:{{#if:{{{text|{{{1|}}}}}}|6px 0 4px 12px|2px 0 0 8px}}; {{{root_inline_style|}}}"><!--


-->{{#if:{{{type|}}}|<strong style="display:table-cell; color:rgb({{{color|240,240,240}}}); white-space:nowrap; {{{type style|}}}"><span style="user-select:none; {{{img style|}}}">{{#if:{{{img|}}}|<span style="margin-right:4px;">[[File:{{{img|}}}|{{#if:{{{size|}}}|{{{size}}}{{!}}|}}link=]]</span>}}</span>{{{type|}}}{{#if:{{{text|{{{1|}}}}}}|:|}}</strong>|}}<!--
-->{{#if:{{{type|}}}|<strong style="display:table-cell; color:rgb({{{color|240,240,240}}}); white-space:nowrap; {{{type style|}}}"><span style="user-select:none; {{{img style|}}}">{{#if:{{{img|}}}|<span style="margin-right:4px;">[[File:{{{img|}}}|{{#if:{{{size|}}}|{{{size}}}{{!}}|}}link=]]</span>}}</span>{{{type|}}}:</strong>|}}<!--


--><span style="display:table-cell; {{{text style|}}}">{{{text|{{{1|}}}}}}</span></{{#if:{{{text|}}}{{{1|}}}|div|span}}>
--><span style="display:table-cell; {{{text style|}}}">{{{text|{{{1|}}}}}}</span></{{#if:{{{text|}}}{{{1|}}}|div|span}}>

Revision as of 13:10, 23 July 2024