User:THE OWL/Sandbox/Templates/Documentation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
This is the potential future of the Documentation template. So far, the development is at an early stage.
This is the potential future of the Documentation template. So far, the development is at an early stage.


-->{{DISPLAYTITLE:Template:Detonator}}
-->{{DISPLAYTITLE:Template:Detonator}}__NOEDITSECTION__
<div style="display:flex; align-items:center; gap:.5em; margin-bottom:-2px; padding:.6em .75em; border:1px solid #525252; border-radius:4px 4px 0 0; background:linear-gradient(0deg, #3D3D3D, #404040); color:#DDD; line-height:24px; font-size:1.4em">
<div class="plainlinks" style="display:flex; align-items:center; gap:.5em; padding:.55em .6em; border:1px solid #525252; border-radius:4px 4px 0 0; background:#3D3D3D; color:#DFDFDF; line-height:28px; font-size:1.4em">
<div style="width:42px; height:28px; background:#EEE; clip-path:{{:{{FULLPAGENAME}}|brackets}}"></div>
<div style="min-width:42px; height:28px; background:#EEE; clip-path:{{:{{FULLPAGENAME}}|brackets}}"></div> Template Documentation
<div>Template Documentation</div>
<table class="TablePager" cellpadding="3" style="writing-mode:sideways-lr; margin-left:auto; border:0; border-radius:5px; background:#262626; line-height:18px; font-size:.8em">
<div style="display:flex; gap:inherit; margin-left:auto">
<tr><td style="position:relative; border:0; border-radius:4px">
<div style="display:flex; align-items:center; gap:.5em; box-shadow:0 0 12px rgb(0 0 0 / 4%); background:linear-gradient(0deg, rgb(0 0 0 / 28%), rgb(0 0 0 / 25%)); border-radius:4px; user-select:none; padding:.1em .45em; margin-left:auto">
<div style="width:18px; height:18px; background:#FFF; clip-path:{{:{{FULLPAGENAME}}|view}}"></div>
<div style="width:18px; height:18px; background:#EEE; clip-path:{{:{{FULLPAGENAME}}|view}}"></div>
<!-- <div style="writing-mode:lr">&nbsp;View</div> -->
<div style="opacity:20%; font-size:.75em">|</div>
[{{canonicalurl:{{FULLPAGENAME}}/Sample text}} <hr class="vector-menu-checkbox">]
<div style="margin-top:-4px">[[File:icon-edit-filled.png|14px|link=https://developer.valvesoftware.com/w/index.php?title=User:THE_OWL/Sandbox/Templates/Documentation/Sample_text&action=edit|Edit English documentation]]</div>
</td></tr>
<div style="opacity:20%; font-size:.75em">|</div>
<div style="width:18px; height:18px; background:#EEE; clip-path:{{:{{FULLPAGENAME}}|history}}"></div>
<td style="display:block; margin:4px 0; padding:0; border-color:#444; border-radius:1px"></td>
<div style="opacity:20%; font-size:.75em">|</div>
<div style="margin-top:-3px">[[File:icon-sandbox.png|18px|link=Valve Developer Community:Sandbox|Visit the wiki sandbox to test the template]]</div>
<tr><td style="position:relative; border:0; border-radius:4px">
</div>
<div style="width:18px; height:18px; background:#FFF; clip-path:{{:{{FULLPAGENAME}}|edit}}"></div>
<div style="display:flex; align-items:center; gap:.35em; box-shadow:0 0 12px rgb(0 0 0 / 4%); background:linear-gradient(0deg, rgb(0 0 0 / 28%), rgb(0 0 0 / 25%)); border-radius:4px; user-select:none; padding:.1em .45em; margin-left:auto">
<!-- <div style="writing-mode:lr">&nbsp;Edit</div> -->
<div style="margin-top:-4px">[[File:flag-en.png|16px|link=]]</div><span style="font-size:.81em">English</span>
[{{canonicalurl:{{FULLPAGENAME}}/Sample text}}?action=edit <hr class="vector-menu-checkbox">]
</div>
</td></tr>
</div>
<td style="display:block; margin:4px 0; padding:0; border-color:#444; border-radius:1px"></td>
<tr><td style="position:relative; border:0; border-radius:4px">
<div style="width:18px; height:18px; background:#FFF; clip-path:{{:{{FULLPAGENAME}}|history}}"></div>
<!-- <div style="writing-mode:lr">&nbsp;History</div> -->
[{{canonicalurl:{{FULLPAGENAME}}/Sample text}}?action=history <hr class="vector-menu-checkbox">]
</td></tr>
<td style="display:block; margin:4px 0; padding:0; border-color:#444; border-radius:1px"></td>
<tr><td style="position:relative; border:0; border-radius:4px">
<div style="width:18px; height:18px; background:#FFF; clip-path:{{:{{FULLPAGENAME}}|sandbox}}"></div>
<!-- <div style="writing-mode:lr">&nbsp;Sandbox</div> -->
[{{canonicalurl:Project:Sandbox}} <hr class="vector-menu-checkbox">]
</td></tr>
</table>
<div style="display:flex; align-items:center; gap:.35em; padding:0 .45em; border-radius:5px; background:#262626; font-size:.8em; user-select:none">[[File:Flag-en.png|16x11px|link=]] English</div>
</div>
</div>
<div style="margin-top:2px; padding:.75em 1em 1em; border:1px solid #525252; border-top:0; border-radius:0 0 4px 4px; background:#2D2D2D">
<div style="padding:.75em 1em 1em; border:1px solid #525252; border-top:0; border-radius:0 0 4px 4px; background:#2D2D2D">
{{/Sample text}}
{{/Sample text}}
</div><includeonly>
</div>
<includeonly>


<onlyinclude>{{#switch:{{{1|}}}
<onlyinclude>{{#switch:{{{1|}}}
Line 31: Line 49:


| view = path('M4.73 11.68C3.58 10.7 2.77 9.58 2.38 9c.39-.58 1.2-1.7 2.35-2.68C5.91 5.3 7.36 4.5 9 4.5s3.1.8 4.27 1.82c1.15.98 1.96 2.1 2.35 2.68-.39.58-1.2 1.7-2.35 2.68C12.1 12.7 10.64 13.5 9 13.5c-1.64 0-3.09-.8-4.27-1.82ZM9 3C6.86 3 5.07 4.05 3.75 5.18 2.42 6.32 1.51 7.6 1.1 8.23.79 8.7.79 9.3 1.1 9.77c.41.63 1.32 1.91 2.65 3.05C5.07 13.95 6.86 15 9 15s3.93-1.05 5.25-2.18c1.33-1.14 2.24-2.42 2.65-3.05.31-.47.31-1.07 0-1.54-.41-.63-1.32-1.91-2.65-3.05C12.93 4.05 11.14 3 9 3ZM7.5 9c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5S7.5 9.83 7.5 9ZM9 6C7.34 6 6 7.34 6 9s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3Z')
| view = path('M4.73 11.68C3.58 10.7 2.77 9.58 2.38 9c.39-.58 1.2-1.7 2.35-2.68C5.91 5.3 7.36 4.5 9 4.5s3.1.8 4.27 1.82c1.15.98 1.96 2.1 2.35 2.68-.39.58-1.2 1.7-2.35 2.68C12.1 12.7 10.64 13.5 9 13.5c-1.64 0-3.09-.8-4.27-1.82ZM9 3C6.86 3 5.07 4.05 3.75 5.18 2.42 6.32 1.51 7.6 1.1 8.23.79 8.7.79 9.3 1.1 9.77c.41.63 1.32 1.91 2.65 3.05C5.07 13.95 6.86 15 9 15s3.93-1.05 5.25-2.18c1.33-1.14 2.24-2.42 2.65-3.05.31-.47.31-1.07 0-1.54-.41-.63-1.32-1.91-2.65-3.05C12.93 4.05 11.14 3 9 3ZM7.5 9c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5S7.5 9.83 7.5 9ZM9 6C7.34 6 6 7.34 6 9s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3Z')
| edit = path('M12.34 6.85 5.62 13.57l-1.59.4.4-1.59 6.74-6.74 1.17 1.21Zm1.69-3.01.13.13c.29.29.29.77 0 1.06l-.76.76-1.17-1.21.74-.74c.29-.29.77-.29 1.06 0ZM11.91 2.78 10.65 4.04 3.22 11.47c-.1.1-.16.22-.2.35l-.75 3c-.06.25.01.52.2.71.19.19.46.26.71.2l3-.75c.13-.04.25-.1.35-.2l7.39-7.39 1.3-1.3c.88-.88.88-2.3 0-3.18l-.13-.13c-.88-.88-2.3-.88-3.18 0Z')


| history = path('m3.76 8.68.96-.96c.29-.29.77-.29 1.06 0s.29.77 0 1.06L3.53 11.03c-.14.14-.33.22-.53.22s-.39-.08-.53-.22L.22 8.78c-.29-.29-.29-.77 0-1.06s.77-.29 1.06 0l.98.98c.16-4.01 3.45-7.2 7.49-7.2 4.14 0 7.5 3.36 7.5 7.5s-3.36 7.5-7.5 7.5c-2.36 0-4.46-1.09-5.83-2.79-.26-.32-.21-.79.11-1.05.32-.26.79-.21 1.05.11C6.18 14.13 7.87 15 9.75 15c3.31 0 6-2.69 6-6s-2.69-6-6-6C6.54 3 3.92 5.52 3.76 8.68ZM9.75 3.75c.41 0 .75.34.75.75V8.69l2.03 2.03c.29.29.29.77 0 1.06-.29.29-.77.29-1.06 0L9.22 9.53C9.08 9.39 9 9.2 9 9V4.5c0-.41.34-.75.75-.75Z')
| history = path('m3.76 8.68.96-.96c.29-.29.77-.29 1.06 0s.29.77 0 1.06L3.53 11.03c-.14.14-.33.22-.53.22s-.39-.08-.53-.22L.22 8.78c-.29-.29-.29-.77 0-1.06s.77-.29 1.06 0l.98.98c.16-4.01 3.45-7.2 7.49-7.2 4.14 0 7.5 3.36 7.5 7.5s-3.36 7.5-7.5 7.5c-2.36 0-4.46-1.09-5.83-2.79-.26-.32-.21-.79.11-1.05.32-.26.79-.21 1.05.11C6.18 14.13 7.87 15 9.75 15c3.31 0 6-2.69 6-6s-2.69-6-6-6C6.54 3 3.92 5.52 3.76 8.68ZM9.75 3.75c.41 0 .75.34.75.75V8.69l2.03 2.03c.29.29.29.77 0 1.06-.29.29-.77.29-1.06 0L9.22 9.53C9.08 9.39 9 9.2 9 9V4.5c0-.41.34-.75.75-.75Z')
| sandbox = path('M2.9 4.8 8.6 1.6q.4-.2.8 0l5.7 3.2q.4.2.6.5l1 1.8q.4.8-.1 1.1l-.9.5v3.8q0 .3-.3.5l-6 3.4q-.4.2-.9 0L2.5 13q-.3-.2-.3-.6V8.2q-.4.3-.8 0-.7-.5-.1-1.3l1-1.6q.2-.3.6-.5m.9 7.1 4.4 2.5v-5L3.8 6.9ZM9 8.1l4.4-2.5L9 3.1Zm1 1.2.4.7L15 7.3l-.4-.7Zm-.2 5.1 4.4-2.5V9.6l-3.6 2.1q-.4.2-.8 0Z')


}}
}}

Revision as of 19:33, 18 October 2025

This template can break pages.

Usage

 This template prefers inline formatting of parameters.

To use it, insert {{Detonator}} into the desired page and specify the parameters you need, which can be found in the table below, to the right of the template name in the following format: {{Detonator|parameter 1 = value|parameter 2 = value}}.

Parameters Description Preview
| <Text>
| 1 = <Text>
The text that will be displayed. Can contain links, templates and raw html. Icon-gnome-terminal.png Bomb it!
| reason = <Text> First Line.
Second Line.
Third Line.
Icon-gnome-terminal.png Bomb it!

See Also

  • Template:Bomb, a template that marks something as a candidate for deletion.