Template:Doc/sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Testing the use of MultiPage for doc pages.)
mNo edit summary
Line 21: Line 21:
}}</div><div style="display:table;height:19px;border:1px solid #AAA;border-bottom:0"><!--
}}</div><div style="display:table;height:19px;border:1px solid #AAA;border-bottom:0"><!--


{{MultiPage|page={{{docpage|{{FULLPAGENAME}}}}}
{{MultiPage|page={{{docpage|{{FULLPAGENAME}}}}} |base=Template:Doc/sandbox}}


</div><div style="width:100%;display:flex;{{Dir|rtl=flex-direction:row-reverse;}}"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-docexamples" style="display:none;{{#if:{{{noscroll|}}}||scrollbar-width:thin;scrollbar-gutter:stable;overflow-y:auto;}}max-height:10em;position:absolute;border:1px solid #65635F;background:#242424;margin:2px 1px 0 1px;padding:4px;z-index:10;border-radius:4px"><kbd>{{{examples}}}</kbd></div></div>}}</div>
</div><div style="width:100%;display:flex;{{Dir|rtl=flex-direction:row-reverse;}}"><div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-docexamples" style="display:none;{{#if:{{{noscroll|}}}||scrollbar-width:thin;scrollbar-gutter:stable;overflow-y:auto;}}max-height:10em;position:absolute;border:1px solid #65635F;background:#242424;margin:2px 1px 0 1px;padding:4px;z-index:10;border-radius:4px"><kbd>{{{examples}}}</kbd></div></div>}}</div>

Revision as of 19:10, 31 March 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Number of strings:1
Approximate status of translation:English (en) 100% 

Header

Test page that uses for testing the new style of the template.

Changes made

  • Added {{{DocParam1}}} ~ {{{DocParam5}}} for /doc page
Useful for pages transcluding from a page and needing a very small change.

Example

{{Doc/sandbox|docpage=abc|DocParam1=Half-Life 2|DocParam2=hl2}}

In a /doc page:

{{ {{{DocParam1|Half-Life 2}}}|4|nt={{{DocParam2|}}} }}

== Test parameters ==