Template:Doc/sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Undo revision 290390 by THE OWL (talk))
Tag: Undo
mNo edit summary
Line 1: Line 1:
<div style="border: 1px solid #505050; border-radius:2px; overflow:hidden">
<onlyinclude><!--
<div class="plainlinks" style="display:flex; gap:8px; background:#505050; padding:6px 6px 6px 10px"><!--
 
--><span style="user-select:none; pointer-events:none">[[File:Curly_brackets_white.png|32px|link=]]</span><!--
--><div style="border: 1px solid #505050; border-radius:2px; overflow:hidden">
--><span style="display:flex; align-items:center; font-size:1.2em; color:#D8D8D8">Template Documentation</span>
<div class="plainlinks" style="display:flex; gap:8px; background:#505050; padding:6px 6px 6px 10px">
<div style="user-select:none; pointer-events:none">[[File:Curly_brackets_white.png|32px|link=]]</div>
<div style="display:flex; align-items:center; font-size:1.2em; color:#D8D8D8">Template Documentation</div>
<div style="display:flex; gap:6px; margin-left:auto"><!--
<div style="display:flex; gap:6px; margin-left:auto"><!--
-->[http://developer.valvesoftware.com/wiki/Template:Doc/sandbox <div style="display:inline-flex; justify-content:center; align-items:center; height:100%; box-sizing:border-box; background:#323232; border:1px solid rgba(255,255,255,.3); border-radius:2px; user-select:none; padding:0 4px">[[File:Icon-visibility.png|14px|link=]]</div>]<!--
-->[http://developer.valvesoftware.com/wiki/Template:Doc/sandbox <div style="display:inline-flex; justify-content:center; align-items:center; height:100%; box-sizing:border-box; background:#323232; border:1px solid rgba(255,255,255,.3); border-radius:2px; user-select:none; padding:0 4px">[[File:Icon-visibility.png|14px|link=]]</div>]<!--
Line 12: Line 14:
<div style="background:#323232; padding:4px 10px"><!--
<div style="background:#323232; padding:4px 10px"><!--
-->{{ModernNote|Work on the new design is not completed.}}{{:Template:Code/doc}}</div>
-->{{ModernNote|Work on the new design is not completed.}}{{:Template:Code/doc}}</div>
</div>
</div><!--
[[Category:Test]]
 
-->[[Category:Test]]</onlyinclude>

Revision as of 05:16, 30 March 2023

Template:ModernNote

This template will allow you to format text as a one-line code.

Usage

This template prefers inline formatting of parameters
Parameters Description Preview
| <Text>
| 1 = <Text>
The text that will be displayed. Can contain links, templates and raw html, except when the {{{lang}}} parameter is used. Hello, World!
| lang = <Option> Adds syntax highlighting for the language specified using syntaxhighlight tag with inline attribute.
List of Supported languages.
int main() { return 0; }
| style = <CSS> CSS styles. Note that some styles require !important to be specified. Colored text

See Also