User:N0one/Sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(test)
Line 4: Line 4:


Experimenting...
Experimenting...
 
<onlyinclude><includeonly>{{Software
<pre>
| 1 = {{{1|}}}
{{bug|test}} test {{bugNotice|test}} test
| ico = Hl2 icon.png
{{clarify|test}} test {{confirm|test}} test {{elaborate|test}} test {{todo|test}} test {{when|test}} test {{where|test}} test {{which|test}} test {{why|test}} test
| ico size = 18px
{{fix|test}} test
| link = {{{link|Half-Life 2}}}
{{code fix|test}} test
| name = {{#switch: {{language}}
{{deprecated|test}} test
| #default = Half-Life 2
{{important|test}} test
| eo = Duonvivo 2
{{note|test}} test
| ko = 하프라이프 2
{{placement tip|test}} test
| zh = 半衰期2
{{placementTip|test}} test
}}
{{question|test}} test
| name0 = {{#switch: {{language}}
{{tip|test}} test
| #default = HL2
{{warning|test}} test
| eo = Dv2
{{workaround|test}} test
}}
{{clarify|test {{code fix|test}} test}} test
| namehl2 = {{#switch: {{language}}
{{clarify|test {{code fix|test {{warning|test}} test}} test}} test
| #default = HL2
{{todo|test {{code fix|test {{warning|test {{important|test {{placementTip|test {{question|test {{workaround|test}} test}} test}} test}} test}} test}} test}} test
| eo = Dv2
{{todo|test {{code fix|test {{warning|test {{important|test {{placementTip|test {{question|test {{workaround|test}}}}}}}}}}}}}} test
}}
 
| namereg = Half-Life® 2<!-- same as above but registered trademark. -->
{{#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>
| col = #E6AC39
|
| addtext-front = {{{addtext-front|}}}
}}
| addtext = {{{addtext|}}}
 
| nt = {{{nt|}}}
{{#if:{{{frame|}}}
}}</includeonly></onlyinclude>
|<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>
=== Examples ===
|
{| class="wikitable"
}}
 
== 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
| Default
| → {{ {{FULLPAGENAME}} }}
|-
|-
| Row 2, Cell 1 || Row 2, Cell 2 || Row 2, Cell 3
| bold
|}
| → {{{{FULLPAGENAME}}|bold}}
 
|-
{| class="wikitable" border="1"
| 1
! Header 1  
| → {{{{FULLPAGENAME}}|1}}
! Header 2  
|-
! Header 3
| 1.bold
| → {{{{FULLPAGENAME}}|1.bold}}
|-
| 2
| → {{{{FULLPAGENAME}}|2}}
|-
| 2.bold
| → {{{{FULLPAGENAME}}|2.bold}}
|-
| 3
| → {{{{FULLPAGENAME}}|3}}
|-
| 3.1
| → {{{{FULLPAGENAME}}|3.1}}
|-
| 3.1.nolink
| → {{{{FULLPAGENAME}}|3.1.nolink}}
|-
| 3.2  
| → {{{{FULLPAGENAME}}|3.2}}
|-
| 4
| → {{{{FULLPAGENAME}}|4}}
|-
| 4.1
| → {{{{FULLPAGENAME}}|4.1}}
|-
| 4.2  
| → {{{{FULLPAGENAME}}|4.2}}
|-
| nt=0
| → {{{{FULLPAGENAME}}|4|nt=0}}
|-
| nt=1
| → {{{{FULLPAGENAME}}|4|nt=1}}
|-
| nt=2
| → {{{{FULLPAGENAME}}|4|nt=2}}
|-
| nt=3
| → {{{{FULLPAGENAME}}|4|nt=3}}
|-
| nt=4
| → {{{{FULLPAGENAME}}|4|nt=4}}
|-
| nt=hl2
| → {{{{FULLPAGENAME}}|4|nt=hl2}}
|-
| in
| → {{{{FULLPAGENAME}}|in}}
|-
| only
| → {{{{FULLPAGENAME}}|only}}
|-
| since
| → {{{{FULLPAGENAME}}|since}}
|-
| not
| → {{{{FULLPAGENAME}}|not}}
|-
| removed
| → {{{{FULLPAGENAME}}|removed}}
|-
| name
| → {{{{FULLPAGENAME}}|name}}
|-
| ico
| → {{{{FULLPAGENAME}}|ico}}
|-
| link
| → {{{{FULLPAGENAME}}|link}}
|-
| extlink
| → {{{{FULLPAGENAME}}|extlink}}
|-
| col
| → {{{{FULLPAGENAME}}|col}}
|-
| colspan=2 | Additional parameters for template series:
|-
| ico1
| → {{{{FULLPAGENAME}}|ico1}}
|-
| ico2
| → {{{{FULLPAGENAME}}|ico2}}
|-
| ico3
| → {{{{FULLPAGENAME}}|ico3}}
|-
| ico1 name
| → {{{{FULLPAGENAME}}|ico1 name}}
|-
|-
| Row 1, Cell 1
| ico2 name
| Row 1, Cell 2
| → {{{{FULLPAGENAME}}|ico2 name}}
| Row 1, Cell 3
|-
|-
| Row 2, Cell 1
| ico3 name
| Row 2, Cell 2
| → {{{{FULLPAGENAME}}|ico3 name}}
| 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>

Revision as of 11:01, 26 September 2025

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

Sandbux.

Experimenting...

Examples

Default Half-Life 2
bold Half-Life 2
1 Half-Life 2
1.bold Half-Life 2
2 Half-Life 2 Half-Life 2
2.bold Half-Life 2 Half-Life 2
3 Half-Life 2
3.1 Half-Life 2
3.1.nolink Half-Life 2
3.2 Half-Life 2
4 Half-Life 2 Half-Life 2
4.1 Half-Life 2 Half-Life 2
4.2 Half-Life 2 Half-Life 2
nt=0 Half-Life 2 HL2
nt=1 Half-Life 2 Half-Life 2
nt=2 Half-Life 2 Half-Life 2
nt=3 Half-Life 2 Half-Life 2
nt=4 Half-Life 2 Half-Life 2
nt=hl2 Half-Life 2 HL2
in (in Half-Life 2)
only (only in Half-Life 2)
since (in all games since Half-Life 2)
not (not in Half-Life 2)
removed (removed since Half-Life 2)
name → Half-Life 2
ico → Hl2 icon.png
link → Half-Life 2
extlink → No external link
col → #E6AC39
Additional parameters for template series:
ico1 → No icon 1
ico2 → No icon 2
ico3 → No icon 3
ico1 name → No ico1 name
ico2 name → No ico2 name
ico3 name → No ico3 name