User:N0one/Sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(78 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{{lang}}}|en
To [[User:N0one/Sandbox/template]] for template testing.
| {{#ifeq:{{pagelang}}|en
 
|
''Sandbux''.
<!-- en flag on en page so show selected flag -->
 
<span style="background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.3); border-radius:2px; padding:0 1px; margin:1px"><span style="user-select:none; position:relative; top:-1px">{{Flag|en}}</span></span>
Experimenting...
 
<pre>
|
{{bug|test}} test {{bugNotice|test}} test
<!-- en flag on non-en page so show unselected flag -->
{{clarify|test}} test {{confirm|test}} test {{elaborate|test}} test {{todo|test}} test {{when|test}} test {{where|test}} test {{which|test}} test {{why|test}} test
<span style="margin:1px; border:1px solid transparent"><span style="user-select:none; position:relative; top:-1px">{{Flag|en|link={{NAMESPACE}}:{{{param1}}}}}</span></span>
{{fix|test}} test
{{code fix|test}} test
}}
{{deprecated|test}} test
{{important|test}} test
{{note|test}} test
| {{#switch: {{PROTECTIONEXPIRY:move|{{NAMESPACE}}:{{{lang}}}/{{{param1}}}}}{{NAMESPACE}}
{{placement tip|test}} test
{{placementTip|test}} test
{{question|test}} test
<!-- if Category page doesn't exist check if any pages are in that category and if so show flag as red -->
{{tip|test}} test
| Category = {{#ifeq:{{PAGESINCATEGORY:{{{lang}}}/{{{param1}}}}}|0
{{warning|test}} test
|
{{workaround|test}} test
| <span style="background:rgba(255,0,0,0.3); border:1px solid rgba(255,0,0,1); border-radius:2px; padding:0 1px; margin:1px"><span style="user-select:none; position:relative; top:-1px">{{Flag|{{{lang}}}|link={{NAMESPACE}}:{{{lang}}}/{{{param1}}}}}</span></span>
{{clarify|test {{code fix|test}} test}} test
}}
{{clarify|test {{code fix|test {{warning|test}} test}} test}} test
{{todo|test {{code fix|test {{warning|test {{important|test {{placementTip|test {{question|test {{workaround|test}} test}} test}} test}} test}} test}} test}} test
{{todo|test {{code fix|test {{warning|test {{important|test {{placementTip|test {{question|test {{workaround|test}}}}}}}}}}}}}} test
| {{NAMESPACE}} = <!-- empty string protection expiry means page doesn't exist so no flag is shown -->
 
{{#if:{{{frame|}}}|<div style="background:{{{frame bg|{{#switch:{{{theme|}}}| dark = #0f0f0f | #default = #232323 }}}}}; box-shadow:0 5px 10px rgba(0,0,0,.5); border-radius:{{{radius frame cover|{{#switch:{{{style|}}}|1=6px|1em}} }}}; display:flow-root; padding:{{{padding frame cover|{{#switch:{{{style|}}}|1=0.5px|1em}}}}}; "></div>
|
| #default = {{#switch: {{#if: {{PROTECTIONEXPIRY:edit|Template:TranslationMark/{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{param1}}}}}
| {{TranslationMark/{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{param1}}}|{{{lang}}}}}
}}
<!-- translation mark used, show the flag as orange (same color that Template:translate uses) -->
| U | T | F = {{#ifeq:{{pagelang}}|{{{lang}}}
| <span style="background:rgba(242, 133, 0,0.3); border:1px solid rgba(242, 133, 0,1); border-radius:2px; padding:0 1px; margin:1px"><span style="user-select:none; position:relative; top:-1px">{{Flag|{{{lang}}}|link={{fullurl:{{NAMESPACE}}:{{{lang}}}/{{{param1}}}|redirect=no}}}}</span></span>
| <span style="background:rgba(242, 133, 0,0.3); border:1px solid rgba(242, 133, 0,0.3); border-radius:2px; padding:0 1px; margin:1px"><span style="user-select:none; position:relative; top:-1px">{{Flag|{{{lang}}}|link={{fullurl:{{NAMESPACE}}:{{{lang}}}/{{{param1}}}|redirect=no}}}}</span></span>
}}
| #default = {{#ifeq: {{pagelang}} | {{{lang}}}
|
<!-- {{{lang}}} flag on {{pagelang}} page (ru flag on Ru/ prefixed page) so show selected flag-->
<span style="background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.3); border-radius:2px; padding:0 1px; margin:1px"><span style="user-select:none; position:relative; top:-1px">{{Flag|{{{lang}}}}}</span></span>
|  
<!-- {{{lang}}} flag on non-{{pagelang}} page (ru flag on Zh/ prefixed page) so show unselected flag -->
<span style="margin:1px; border:1px solid transparent"><span style="user-select:none; position:relative; top:-1px">{{Flag|{{{lang}}}| link ={{NAMESPACE}}:{{{lang}}}/{{{param1}}} }}</span></span>
}}
}}{{#ifeq:{{pagelang}} | en
| {{#ifeq: {{{lang}}} | en
|
| {{#switch: {{NAMESPACE}} ||Category|Valve Developer Community|Help=[[Category:Translation]]}}
}}
}}
}}
}}
}}
{{#if:{{{frame|}}}
|<div style="background:{{{frame bg|{{#switch:{{{theme|}}}| dark = #0f0f0f | #default = #232323 }}}}}; box-shadow:0 5px 10px rgba(0,0,0,.5); border-radius:{{{radius frame cover|{{#switch:{{{style|}}}|1=6px|1em}} }}}; display:flow-root; padding:{{{padding frame cover|{{#switch:{{{style|}}}|1=0.5px|1em}}}}}; "></div>
|
}}
== Elements ==
<div>
<span></span>
<span>
</div>
<div style="background: #123ABC; box-shadow:0 5px 10px rgba(0,0,0,.5);" class="test"></div>
<syntaxhighlight>abc</syntaxhighlight>
<syntaxhighlight lang=cpp>abc</syntaxhighlight>
<syntaxhighlight lang="cpp">abc</syntaxhighlight>
&gt;
== Numbers ==
.123.345.678.9.0
123.345.678.9.0
== Headers ==
== Heading level 2 ==
=== Heading level 3 ===
==== Heading level 4 ====
== Links ==
[[Main Page]]
[[Valve Developer Community|VDC Wiki]]
[[User:Example]]
{{L|Main Page}}
{{L|Valve Developer Community|VDC Wiki}}
[[User:Example]]
[[File:Example.jpg|thumb|alt=Example image|Caption]]
[https://developer.valvesoftware.com/wiki Main Site]
[https://developer.valvesoftware.com/wiki]
https://developer.valvesoftware.com/wiki lorem
https://developer.valvesoftware.com/wiki
== Categories ==
{{ACategory|Mapping}}
{{ACategory|Source Engine}}
{{ACategory|Tutorials}}
[[Category:Mapping]]
[[Category:Source Engine]]
[[Category:Tutorials]]
== Templates ==
{{Infobox map
|name = Example Map
|game = Left 4 Dead 2
|author = User123
}}
{{quote|This is a nested template {{Italic|with italics}} inside.}}
{{KV|one|intn=abc|two|three}}
{{KV|1=one|intn=abc|two|three}}
{{KV|test {{=}} test|intn=abc|two|three}}
== Parser Functions and Magic Words ==
{{#if:{{{parameter|}}}|Parameter is set|Parameter is empty}}
{{#switch: {{{color|red}}}
| red = Red text
| blue = Blue text
| #default = Default color
}}
{{PAGENAME}}
{{REVISIONID}}
{{NUMBEROFARTICLES}}
{{CURRENTYEAR}}
{{CURRENTMONTHNAME}}
{{CURRENTTIME}}
== Variables / Parameters ==
{{{variable}}}
{{{variable|default value}}}
{{{variable|}}}
== HTML tags ==
<b>Bold Text</b>
<i>Italic Text</i>
<u>Underlined Text</u>
<nowiki>Raw text with &lt;tags&gt;</nowiki>
<div style="color:blue;">Styled Text</div>
<!-- Comment -->
== Lists ==
* Unordered list item 1
** Nested unordered item
# Numbered list item 1
## Nested numbered item
: Test
:: Test
; Test
;; Test
== Tables ==
{| class="wikitable" border="1"
! Header 1 !! Header 2 !! Header 3
|-
| Row 1, Cell 1 || Row 1, Cell 2 || Row 1, Cell 3
|-
| Row 2, Cell 1 || Row 2, Cell 2 || Row 2, Cell 3
|}
{| class="wikitable" border="1"
! Header 1
! Header 2
! Header 3
|-
| Row 1, Cell 1
| Row 1, Cell 2
| Row 1, Cell 3
|-
| Row 2, Cell 1
| Row 2, Cell 2
| Row 2, Cell 3
|}
== File inclusions ==
[[File:Example.png|thumb|200px|Example Image Caption]]
== Other ==
{{DISPLAYTITLE:Custom Page Title}}
{{TOCright}}
{{Anchor|top}}
== Show all character ==
Tab:
Spaces:         
Endl:
== More complex nested templates ==
{{#if:{{{param|}}}
  | {{bug|{{todo|{{important|value}}}}}}
  | No templates nested
}}
== HTML entities ==
&amp;
&lt;
&gt;
&quot;
&apos;
no wiki:
&amp;amp;
&amp;lt;
&amp;gt;
&amp;quot;
&amp;apos;
== Editor ==
Search test:
__REPLACE_1__
__REPLACE_2__
__REPLACE_ALL__
__REPLACE_ALL__
</pre>

Latest revision as of 13:48, 10 September 2025

To User:N0one/Sandbox/template for template testing.

Sandbux.

Experimenting...

{{bug|test}} test {{bugNotice|test}} test
{{clarify|test}} test {{confirm|test}} test {{elaborate|test}} test {{todo|test}} test {{when|test}} test {{where|test}} test {{which|test}} test {{why|test}} test
{{fix|test}} test
{{code fix|test}} test
{{deprecated|test}} test
{{important|test}} test
{{note|test}} test
{{placement tip|test}} test
{{placementTip|test}} test
{{question|test}} test
{{tip|test}} test
{{warning|test}} test
{{workaround|test}} test
{{clarify|test {{code fix|test}} test}} test
{{clarify|test {{code fix|test {{warning|test}} test}} test}} test
{{todo|test {{code fix|test {{warning|test {{important|test {{placementTip|test {{question|test {{workaround|test}} test}} test}} test}} test}} test}} test}} test
{{todo|test {{code fix|test {{warning|test {{important|test {{placementTip|test {{question|test {{workaround|test}}}}}}}}}}}}}} test

{{#if:{{{frame|}}}|<div style="background:{{{frame bg|{{#switch:{{{theme|}}}| dark = #0f0f0f | #default = #232323 }}}}}; box-shadow:0 5px 10px rgba(0,0,0,.5); border-radius:{{{radius frame cover|{{#switch:{{{style|}}}|1=6px|1em}} }}}; display:flow-root; padding:{{{padding frame cover|{{#switch:{{{style|}}}|1=0.5px|1em}}}}}; "></div>
|
}}

{{#if:{{{frame|}}}
|<div style="background:{{{frame bg|{{#switch:{{{theme|}}}| dark = #0f0f0f | #default = #232323 }}}}}; box-shadow:0 5px 10px rgba(0,0,0,.5); border-radius:{{{radius frame cover|{{#switch:{{{style|}}}|1=6px|1em}} }}}; display:flow-root; padding:{{{padding frame cover|{{#switch:{{{style|}}}|1=0.5px|1em}}}}}; "></div>
|
}}

== Elements ==
<div>
	<span></span>
	<span>
</div>

<div style="background: #123ABC; box-shadow:0 5px 10px rgba(0,0,0,.5);" class="test"></div>

<syntaxhighlight>abc</syntaxhighlight>
<syntaxhighlight lang=cpp>abc</syntaxhighlight>
<syntaxhighlight lang="cpp">abc</syntaxhighlight>

>

== Numbers ==
.123.345.678.9.0
123.345.678.9.0

== Headers ==
== Heading level 2 ==
=== Heading level 3 ===
==== Heading level 4 ====

== Links ==
[[Main Page]]
[[Valve Developer Community|VDC Wiki]]
[[User:Example]]

{{L|Main Page}}
{{L|Valve Developer Community|VDC Wiki}}
[[User:Example]]

[[File:Example.jpg|thumb|alt=Example image|Caption]]
[https://developer.valvesoftware.com/wiki Main Site]
[https://developer.valvesoftware.com/wiki]
https://developer.valvesoftware.com/wiki lorem
https://developer.valvesoftware.com/wiki

== Categories ==
{{ACategory|Mapping}}
{{ACategory|Source Engine}}
{{ACategory|Tutorials}}

[[Category:Mapping]]
[[Category:Source Engine]]
[[Category:Tutorials]]

== Templates ==
{{Infobox map
|name = Example Map
|game = Left 4 Dead 2
|author = User123
}}

{{quote|This is a nested template {{Italic|with italics}} inside.}}

{{KV|one|intn=abc|two|three}}

{{KV|1=one|intn=abc|two|three}}

{{KV|test {{=}} test|intn=abc|two|three}}

== Parser Functions and Magic Words ==
{{#if:{{{parameter|}}}|Parameter is set|Parameter is empty}}

{{#switch: {{{color|red}}}
 | red = Red text
 | blue = Blue text
 | #default = Default color
}}

{{PAGENAME}}
{{REVISIONID}}
{{NUMBEROFARTICLES}}

{{CURRENTYEAR}}
{{CURRENTMONTHNAME}}
{{CURRENTTIME}}

== Variables / Parameters ==
{{{variable}}}
{{{variable|default value}}}
{{{variable|}}}

== HTML tags ==
<b>Bold Text</b>
<i>Italic Text</i>
<u>Underlined Text</u>
Raw text with <tags>
<div style="color:blue;">Styled Text</div>
<!-- Comment -->

== Lists ==
* Unordered list item 1
** Nested unordered item
# Numbered list item 1
## Nested numbered item
: Test
:: Test
; Test
;; Test

== Tables ==
{| class="wikitable" border="1"
! Header 1 !! Header 2 !! Header 3
|-
| Row 1, Cell 1 || Row 1, Cell 2 || Row 1, Cell 3
|-
| Row 2, Cell 1 || Row 2, Cell 2 || Row 2, Cell 3
|}

{| class="wikitable" border="1"
! Header 1 
! Header 2 
! Header 3
|-
| Row 1, Cell 1 
| Row 1, Cell 2 
| Row 1, Cell 3
|-
| Row 2, Cell 1 
| Row 2, Cell 2 
| Row 2, Cell 3
|}

== File inclusions ==
[[File:Example.png|thumb|200px|Example Image Caption]]

== Other ==
{{DISPLAYTITLE:Custom Page Title}}
{{TOCright}}
{{Anchor|top}}

== Show all character ==
Tab: 			
Spaces:          
Endl: 

== More complex nested templates ==
{{#if:{{{param|}}}
  | {{bug|{{todo|{{important|value}}}}}}
  | No templates nested
}}

== HTML entities ==
& 
< 
> 
"
'

no wiki:

&amp; 
&lt; 
&gt; 
&quot;
&apos;

== Editor ==
Search test:

__REPLACE_1__

__REPLACE_2__

__REPLACE_ALL__

__REPLACE_ALL__