User:Max34/Sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{#if:{{REVISIONID}}|''A completely normal text that definitely doesn't change in any way during the preview when editing this page.''|<div style="border:2px solid #444; border-radius:6px; padding:6px; background:#323232; text-align:center; font-size:20px">Hi, <span style="color:white">{{REVISIONUSER}}</span>! I know You are in preview mode for editing this page :)</div>}}
{{#if:{{REVISIONID}}|''A completely normal text that definitely doesn't change in any way during the preview when editing this page.''|<div style="border:2px solid #444; border-radius:6px; padding:6px; background:#323232; text-align:center; font-size:20px">Hi, <span style="color:white">{{REVISIONUSER}}</span>! I know You are in preview mode for editing this page :)</div>}}


== VDCEditor Stuff ==
== Stuff for Templates ==
{{CodeBlock|src=Editor.js|lang=js|<nowiki>// MediaWiki Headers
<span style="display:inline-block; width:16px; height:16px; background:#FFF; vertical-align:text-bottom; clip-path:path('M0 4v8H1V4ZM9 4v8h1V4ZM3 6v4H7V6Zm9 0v4h4V6Z')"></span> This template prefers inline formatting of parameters.
Code = Code.replace(/^((<cmt\d{1,}>)*?)(={1,6})(.+?)(\3)((\s*?<cmt\d{1,}>)*?\s*?)$/gm, '$1<mwh>$3<mwht>$4</mwht>$5</mwh>$6');


// MediaWiki Formatting
<span style="display:inline-block; width:16px; height:16px; background:#FFF; vertical-align:text-bottom; clip-path:path('M1 1H0V7H1Zm15 1H3V6h13ZM1 9H0v6H1Zm10 1H3v4h8Z')"></span> This template prefers block formatting of parameters.
Code = Code.replace(/^((<cmt\d{1,}>)*?)(-{4,}|[*:;#]+)/gm, '$1<mwf>$3</mwf>');</nowiki>}}


<span style="display:inline-block; width:16px; height:16px; background:#FFF; vertical-align:text-bottom; clip-path:path('M1 1H0V7H1Zm6 1H3V6h4ZM1 9H0v6H1Zm10 1H3v4h8ZM9 1h1V7H9Zm3 1h4V6H12Z')"></span> This template requires special formatting of parameters.


{{CodeBlock|src=Style.css|lang=css|<nowiki>/* MediaWiki Header */
* [[mw:Template:TemplateData_header#Parameters]] (inline)
mwh
* [[mw:Template:Imbox#TemplateData]] (block)
{
all: unset;
color: #FF9200;
}


/* MediaWiki Header Title */
== Header ==
mwht
<div style="display:flex; gap:4px; margin:.4em 0 .5em 1.6em; font-style:italic"><div style="z-index:1; white-space:nowrap">Some Text:</div>
{
<div style="margin:{{#switch:0|*=-.3em 0 0 -.2em|#=-.3em 0 0 -1.8em|#default=-.4em 0 -.5em}}">
all: unset;
Example text
color: #EBC188;
</div></div>
}
 
/* MediaWiki Formatting */
mwf
{
all: unset;
color:#369FFF;
}</nowiki>}}


== Button ==
<div class="vector-menu-dropdown" style="all:unset; position:relative; display:inline-flex"><div class="vector-menu-heading" style="all:unset; padding:4px 6px; border:2px solid #333; border-radius:4px; background:#2D2D2D; color:#DDD; user-select:none">Button Imitation</div>
<div class="vector-menu-dropdown" style="all:unset; position:relative; display:inline-flex"><div class="vector-menu-heading" style="all:unset; padding:4px 6px; border:2px solid #333; border-radius:4px; background:#2D2D2D; color:#DDD; user-select:none">Button Imitation</div>
<div class="vector-menu-content" style="position:absolute; left:0; top:0; width:100%; height:100%; box-sizing:border-box; border:2px solid #FFF2; border-radius:4px; background:#FFF1; box-shadow:0; pointer-events:none; transition-property:opacity, visibility; transition-duration:.5s"></div>
<div class="vector-menu-content" style="position:absolute; left:0; top:0; width:100%; height:100%; box-sizing:border-box; border:2px solid #FFF2; border-radius:4px; background:#FFF1; box-shadow:0; pointer-events:none; transition-property:opacity, visibility; transition-duration:.5s"></div>
[[User:Max34|<span class="vector-menu-checkbox"></span>]]
[[User:Max34|<span class="vector-menu-checkbox"></span>]]
</div>
</div>
== Stuff for Templates ==
<span style="display:inline-block; width:16px; height:16px; background:#FFF; vertical-align:text-bottom; clip-path:path('M0 4v8H1V4ZM9 4v8h1V4ZM3 6v4H7V6Zm9 0v4h4V6Z')"></span> This template prefers inline formatting of parameters.
<span style="display:inline-block; width:16px; height:16px; background:#FFF; vertical-align:text-bottom; clip-path:path('M1 1H0V7H1Zm15 1H3V6h13ZM1 9H0v6H1Zm10 1H3v4h8Z')"></span> This template prefers block formatting of parameters.
<span style="display:inline-block; width:16px; height:16px; background:#FFF; vertical-align:text-bottom; clip-path:path('M1 1H0V7H1Zm6 1H3V6h4ZM1 9H0v6H1Zm10 1H3v4h8ZM9 1h1V7H9Zm3 1h4V6H12Z')"></span> This template requires special formatting of parameters.
* [[mw:Template:TemplateData_header#Parameters]] (inline)
* [[mw:Template:Imbox#TemplateData]] (block)


== Useful Interface messages ==
== Useful Interface messages ==
Line 306: Line 282:
</div>
</div>
<div class="window-body has-space" style="background:#f0f0f0; border:1px solid rgba(0,0,0,.7); box-shadow:0 0 1px 0.5px #fff; margin:0 6px 6px; padding:6px">This<br>is<br>my<br>Windows<br>7<br>Aero<br>!</div>
<div class="window-body has-space" style="background:#f0f0f0; border:1px solid rgba(0,0,0,.7); box-shadow:0 0 1px 0.5px #fff; margin:0 6px 6px; padding:6px">This<br>is<br>my<br>Windows<br>7<br>Aero<br>!</div>
</div>
<div style=text-align:center;background:lightgrey>
<span style="text-shadow:1px 0 1px #000, 0 1px 1px #000, -1px 0 1px #000, 0 -1px 1px #000;">Всякий текст ё-маё</span>
</div>
<div style=text-align:center;background:lightgrey>
<span style="text-shadow:1px 0 1px #000, 0 1px 1px #000, -1px 0 1px #000, 0 -1px 1px #000, 1px 1px 1px #000, -1px 1px 1px #000, 1px -1px 1px #000, -1px -1px 1px #000;">Всякий текст ё-маё</span>
</div>
<div style=text-align:center;background:lightgrey>
<span style="text-shadow:1px 0 1px #000, 0 1px 1px #000, -1px 0 1px #000, 0 -1px 1px #000;">Всякий текст ё-маё</span>
</div>
<div style=text-align:center;background:lightgrey>
<span style="text-shadow:1px 0 1px #0000008F, 0 1px 1px #0000008F, -1px 0 1px #0000008F, 0 -1px 1px #0000008F, 1px 1px 1px #0000008F, -1px 1px 1px #0000008F, 1px -1px 1px #0000008F, -1px -1px 1px #0000008F;">Всякий текст ё-маё</span>
</div>
<div style=text-align:center;background:lightgrey>
<span style="text-shadow:1px 0 0 #000, 0 1px 0 #000, -1px 0 0 #000, 0 -1px 0 #000, 1px 1px 0 #000, -1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;">Всякий текст ё-маё</span>
</div>
<div style=text-align:center;background:lightgrey>
<span style="-webkit-text-stroke:1px #000">Всякий текст ё-маё</span>
</div>
</div>



Revision as of 05:40, 5 November 2025

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

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:44

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

Named Colors