User:Wisdurm/Template:Sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{User:Wisdurm/Template:Sandbox
<includeonly><onlyinclude>{{User:Wisdurm/Sandbox/Template:Test|
| mode = inline
| mode = inline
| type = {{Dictionary/notices|How}}
| type = {{Dictionary/Todo/{{pagelang}}}}
| text = TEST
| img = blank_image.png
}}
| {{{text|{{{1|}}}}}}
<includeonly><onlyinclude>{{#switch:{{{mode|}}}
| color = 139,197,63
| 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}}},.07) 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|}}}">{{#if:{{{img|}}}|<span style="user-select:none; margin-right:4px; {{{img style|}}}">[[File:{{{img|}}}|{{#if:{{{size|}}}|{{{size}}}{{!}}|}}link=]]}}</span>{{{type|}}}:</strong>|}}<!--
 
--><span style="display:table-cell; {{{text style|}}}">{{{text|{{{1|}}}}}}</span></{{#if:{{{text|}}}{{{1|}}}|div|span}}>
 
| #default = <div style="{{{style:default|}}}background-color:rgba(159,159,159,.05); border:1px solid rgba(159,159,159,.3); border-left:4px solid #9F9F9F; border-radius:3px; padding:10px 12px; margin-bottom:6px">{{{text|{{{1|}}}}}}</div>
 
}}</onlyinclude></includeonly>
}}</onlyinclude></includeonly>

Latest revision as of 13:09, 23 July 2024