User:Max34/Sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
| colspan="2" | The text that will be displayed. Can contain links, templates and raw html, except when the {{Param|lang}} parameter is used.
| colspan="2" | The text that will be displayed. Can contain links, templates and raw html, except when the {{Param|lang}} parameter is used.
|-
|-
| style="background:#1F1F1F; font-family:monospace" | <syntaxhighlight style="margin:-1em 0" lang="wikitext">{{Code|Hello, World!}}</syntaxhighlight>
| style="padding-block:0; background:#1F1F1F" | <syntaxhighlight lang="wikitext">{{Code|Hello, World!}}</syntaxhighlight>
| style="background:#262626" | {{Code|Hello, World!}}
| style="background:#262626" | {{Code|Hello, World!}}
|-
|-
| style="background:#1F1F1F; font-family:monospace" | <syntaxhighlight style="margin:-1em 0" lang="wikitext">{{Code|1 = Text With = Symbol!}}</syntaxhighlight>
| style="padding-block:0; background:#1F1F1F" | <syntaxhighlight lang="wikitext">{{Code|1 = Text With = Symbol!}}</syntaxhighlight>
| style="background:#262626" | {{Code|1 = Text With = Symbol!}}
| style="background:#262626" | {{Code|1 = Text With = Symbol!}}
|-
|-
Line 24: Line 24:
| colspan="2" | Adds syntax highlighting for the language specified using [[mw:Extension:SyntaxHighlight|syntaxhighlight]] tag with [[mw:Extension:SyntaxHighlight#inline|inline]] attribute. <br> [[mw:Extension:SyntaxHighlight#Supported_languages|List of Supported languages]].
| colspan="2" | Adds syntax highlighting for the language specified using [[mw:Extension:SyntaxHighlight|syntaxhighlight]] tag with [[mw:Extension:SyntaxHighlight#inline|inline]] attribute. <br> [[mw:Extension:SyntaxHighlight#Supported_languages|List of Supported languages]].
|-
|-
| style="background:#1F1F1F; font-family:monospace" | <syntaxhighlight style="margin:-1em 0" lang="wikitext">{{Code|lang=c|int main() { return 0; } }}</syntaxhighlight>
| style="padding-block:0; background:#1F1F1F" | <syntaxhighlight lang="wikitext">{{Code|lang=c|int main() { return 0; } }}</syntaxhighlight>
| style="background:#262626" | {{Code|lang=c|int main() { return 0; } }}
| style="background:#262626" | {{Code|lang=c|int main() { return 0; } }}
|-
|-
Line 30: Line 30:
| colspan="2" | CSS styles. Note that some styles require {{Code|!important}} to be specified.
| colspan="2" | CSS styles. Note that some styles require {{Code|!important}} to be specified.
|-
|-
| style="background:#1F1F1F; font-family:monospace" | <syntaxhighlight style="margin:-1em 0" lang="wikitext">{{Code|style=color:#EF9B9B !important|Colored text}}</syntaxhighlight>
| style="padding-block:0; background:#1F1F1F" | <syntaxhighlight lang="wikitext">{{Code|style=color:#EF9B9B !important|Colored text}}</syntaxhighlight>
| style="background:#262626" | {{Code|style=color:#EF9B9B !important|Colored text}}
| style="background:#262626" | {{Code|style=color:#EF9B9B !important|Colored text}}
|}
|}
Line 158: Line 158:


<tr><td style="position:relative; display:flex; align-items:center; gap:4px; padding:0 5px; border:0; background-image:var(--C); {{#ifexist:Talk:{{Language/interface}}/{{FULLPAGENAME}}||color:#688BA8}}">
<tr><td style="position:relative; display:flex; align-items:center; gap:4px; padding:0 5px; border:0; background-image:var(--C); {{#ifexist:Talk:{{Language/interface}}/{{FULLPAGENAME}}||color:#688BA8}}">
<div style="width:18px; height:18px; background:#EEE; clip-path:path('{{#ifexist:Talk:{{Language/interface}}/{{FULLPAGENAME}}||M9.5 6.5H7v2H9.5V11h2V8.5H14v-2H11.5V4h-2Z}}M17.8 13.8c.2.3.3 1.4-1.3 1.2-.7-.1-1.8-.2-3.5-1.2q-1.2.4-2.1.4-1.9 2.3-4.5 2.3-1.1 0-1.8-.3-1.6 1-3.9 1c-.7 0-.7-1-.5-1.2s1.1-1.6 1.2-2.5Q.8 12.3.8 10.9.8 7.5 4 5.8c.7-2.9 3.4-5 6.5-5 3.7 0 6.8 3 6.8 6.7q0 1.4-.7 2.9c-.1 1.3.5 2.4 1.2 3.4ZM5.3 7.5c0 2.9 2.3 5.3 5.2 5.3q1.2 0 2.3-.6.4-.2.7.1.8.9 2.3 1.1c-1.1-2.6-.8-3.3-.5-3.7q.5-.7.5-2.2c0-2.9-2.4-5.2-5.3-5.2S5.3 4.6 5.3 7.5Zm-1.5.2Q2.3 8.8 2.3 10.9q0 1.1.5 2c.2.4.2 1.1-.6 2.7q.8-0 2-.8.3-.2.6-.1.7.3 1.6.3Q8 15 9 14.1c-3-.7-5.2-3.3-5.2-6.4Z')"></div> {{int:Talk}}
<div style="width:18px; height:18px; background:#EEE; clip-path:path('m17.8 13.8c.2.3.3 1.4-1.3 1.2-.7-.1-1.8-.2-3.5-1.2q-1.2.4-2.1.4-1.9 2.3-4.5 2.3-1.1 0-1.8-.3-1.6 1-3.9 1c-.7 0-.7-1-.5-1.2s1.1-1.6 1.2-2.5q-.6-1.2-.6-2.6Q.8 7.5 4 5.8c.7-2.9 3.4-5 6.5-5 3.7 0 6.8 3 6.8 6.7q0 1.4-.7 2.9c-.1 1.3.5 2.4 1.2 3.4zM5.3 7.5c0 2.9 2.3 5.3 5.2 5.3q1.2 0 2.3-.6.4-.2.7.1.8.9 2.3 1.1c-1.1-2.6-.8-3.3-.5-3.7q.5-.7.5-2.2c0-2.9-2.4-5.2-5.3-5.2S5.3 4.6 5.3 7.5zm-1.5.2q-1.5 1.1-1.5 3.2 0 1.1.5 2c.2.4.2 1.1-.6 2.7q.8 0 2-.8.3-.2.6-.1.7.3 1.6.3Q8 15 9 14.1c-3-.7-5.2-3.3-5.2-6.4zm3.7-1.2q1 0 1 1t-1 1-1-1 1-1m3 0q1 0 1 1t-1 1-1-1 1-1m3 0q1 0 1 1t-1 1-1-1 1-1')"></div> {{int:Talk}}
[{{canonicalurl:Talk:{{Language/interface}}/{{FULLPAGENAME}}}} <hr class="vector-menu-checkbox">]
[{{canonicalurl:Talk:{{Language/interface}}/{{FULLPAGENAME}}}} <hr class="vector-menu-checkbox">]
</td></tr>
</td></tr>


<tr><td style="position:relative; display:flex; align-items:center; gap:4px; padding:0 5px; border:0; background-image:var(--C)">
<tr><td style="position:relative; display:flex; align-items:center; gap:4px; padding:0 5px; border:0; background-image:var(--C)">
<div style="width:18px; height:18px; background:#EEE; clip-path:path('M7 1q.2-.2.5-.2h6Q15.8.8 15.8 3V15q0 2.3-2.3 2.3h-9q-2.2 0-2.2-2.3V6q0-.3.2-.5Zm6.5 1.3H8.3V6q0 .8-.8.8H3.8V15q0 .8.7.8h9q.8 0 .8-.8V3q0-.7-.8-.7Zm-8.7 3h2v-2Zm.5 4.5Q5.3 9 6 9h6q.8 0 .8.8 0 .8-.8.8H6q-.7 0-.7-.8Zm0 3q0-.8.7-.8h6q.8 0 .8.8 0 .8-.8.8H6q-.7 0-.7-.8Z')"></div> {{#switch:{{Language/interface}}|#default=Documentation|ru=Документация}}
<div style="width:18px; height:18px; background:#EEE; clip-path:path('M7 1q.2-.2.5-.2h6Q15.8.8 15.8 3V15q0 2.3-2.3 2.3h-9q-2.2 0-2.2-2.3V6q0-.3.2-.5Zm6.5 1.3H8.3V6q0 .8-.8.8H3.8V15q0 .8.7.8h9q.8 0 .8-.8V3q0-.7-.8-.7Zm-8.7 3h2v-2Zm.5 4.5Q5.3 9 6 9h6q.8 0 .8.8 0 .8-.8.8H6q-.7 0-.7-.8Zm0 3q0-.8.7-.8h6q.8 0 .8.8 0 .8-.8.8H6q-.7 0-.7-.8Z')"></div> {{#switch:{{Language/interface}}|#default=About Translations|ru=О переводах}}
[{{canonicalurl:Project:Alternative Languages}}?uselang={{Language/interface}} <hr class="vector-menu-checkbox">]
[{{canonicalurl:Project:Alternative Languages}}?uselang={{Language/interface}} <hr class="vector-menu-checkbox">]
</td></tr>
</td></tr>

Revision as of 01:47, 17 November 2025

A completely normal text that definitely doesn't change in any way during the preview when editing this page.

Usage

This template prefers inline formatting of parameters

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

Stuff for Templates

This template prefers inline formatting of parameters.

This template prefers block formatting of parameters.

This template requires special formatting of parameters.

Header

Some Text:

Example text

Button Imitation

Useful Interface messages

  • Preview
  • (Preview not available)
  • No description available.
  • Examples
  • Deprecated parameters
  • Additional parameters
  • Parameter name
  • This parameter is required.
  • This parameter is deprecated.
  • the empty string
  • Default: value
  • Default: (empty)
  • Must be empty
    • Can be empty, or value
  • Type: float
    • Type: list of floats
  • Type: integer
    • Type: list of integers
  • Only accepts pages that exist.
  • Accepts non-existent pages.
  • username
  • The "value" parameter must be set.
  • Actions
  • Translate
  • Language:
  • Valve Developer Community does not have namespace "$1".
  • Credits
  • Data types
  • Examples:
    • Examples:
  • Deprecated.
  • deprecated
  • Source: value
  • Parameter value1 cannot be used without value2.
  • File does not exist.
  • Unknown error.
  • Page content.
  • Title of the page.


Anchor with margin

Gallery stuff

Wayback svg icon

My reworked version is more pixel accurate, but still looks bad at smaller sizes.


Windows Windows

My First Windows 98 Program
This is my Windows 98!



My First Windows XP Program
This is my Windows XP!



My First Windows 7 Program
This is my Windows 7!



My First Windows 7 Aero Program
This
is
my
Windows
7
Aero
!



scroll-margin-top works!



06:38

Hi, i’m Test!
Text Size:
Размер текста:

Named Colors