Template:Doc/sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:
<div class="plainlinks" style="display:flex; gap:8px; background:#505050; padding:6px 6px 6px 10px">
<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="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; align-items:center; font-size:1.2em; color:#D8D8D8">{{Doc/strings|TemplateDoc}}</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>]<!--

Revision as of 05:21, 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