Template:Doc/sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 57: Line 57:
{{:{{{docpage|{{FULLPAGENAME}}/doc}}}}}}}}}}}}}
{{:{{{docpage|{{FULLPAGENAME}}/doc}}}}}}}}}}}}}
</div></div>
</div></div>
{{#ifexist:{{FULLPAGENAME}}/doc|<div class="plainlinks" style="background:#323232; border:1px solid #505050; border-radius:2px; padding:0.4em 1em; margin-top:1em;">
''The above [[WP:Template_documentation|documentation]] is [[WP:Help:Transclusion|transcluded]] from [[{{FULLPAGENAME}}/doc]].'' <small>([[{{FULLPAGENAME}}&action=edit|edit]] {{!}} [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history])</small><br>
''Editors can experiment in this template's [[{{FULLPAGENAME}}/sandbox|sandbox]]'' <small>([{{fullurl:{{FULLPAGENAME}}/sandbox|action={{#ifexist:{{FULLPAGENAME}}/sandbox|edit|create}}}} {{#ifexist:{{FULLPAGENAME}}/sandbox|edit|create}}])</small> ''and [[{{FULLPAGENAME}}/testcases|testcases]]'' <small>([{{fullurl:{{FULLPAGENAME}}/testcases|action={{#ifexist:{{FULLPAGENAME}/testcases|edit|create}}}} {{#ifexist:{{FULLPAGENAME}}/testcases|edit|create}}])</small> pages.</div>|}}
| 0 = {{messagebox|borderstyle=|image=[[File:Edit-copy.png|40px|link=]]
| 0 = {{messagebox|borderstyle=|image=[[File:Edit-copy.png|40px|link=]]
|text=<div style="display:flex"><div style="display:flex; align-items:center">{{autolang|1=This is a documentation subpage for&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|eo=Ĉi tio estas priigan paĝido por&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|de=Dies ist eine Unterseite zur Dokumentation für&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|es=Esta es una subpágina de documentación para&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|ru=Это подстраница документации для&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|zh=这是&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]]&nbsp;的文档子页面。|ka=ეს არის დოკუმენტაცია&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].}}&nbsp;</div><div style="display:flex; align-items:center; justify-content:center; margin-left:auto"><div>[{{fullurl:{{NAMESPACE}}:{{ROOTPAGENAME}}|action=purge}} <font style="display:inline-flex; background:#36C; border-radius:3px; color:#FFF; font-weight:bold; white-space:nowrap; position:relative; z-index:10; padding:6px 10px">{{Language subpage/strings|Purge}}</font>]</div></div></div>[[Category:Template documentation pages]]}}
|text=<div style="display:flex"><div style="display:flex; align-items:center">{{autolang|1=This is a documentation subpage for&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|eo=Ĉi tio estas priigan paĝido por&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|de=Dies ist eine Unterseite zur Dokumentation für&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|es=Esta es una subpágina de documentación para&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|ru=Это подстраница документации для&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].|zh=这是&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]]&nbsp;的文档子页面。|ka=ეს არის დოკუმენტაცია&nbsp;[[:{{{page|{{SUBJECTSPACE}}:{{ROOTPAGENAME}}}}}]].}}&nbsp;</div><div style="display:flex; align-items:center; justify-content:center; margin-left:auto"><div>[{{fullurl:{{NAMESPACE}}:{{ROOTPAGENAME}}|action=purge}} <font style="display:inline-flex; background:#36C; border-radius:3px; color:#FFF; font-weight:bold; white-space:nowrap; position:relative; z-index:10; padding:6px 10px">{{Language subpage/strings|Purge}}</font>]</div></div></div>[[Category:Template documentation pages]]}}
Line 71: Line 68:
| 4 = {{messagebox|borderstyle=|image=[[File:Edit-copy.png|40px|link=]]
| 4 = {{messagebox|borderstyle=|image=[[File:Edit-copy.png|40px|link=]]
|text={{autolang|1=This is a documentation subpage for use on multiple pages{{#if:{{{list|}}}|&nbsp;listed in [[:{{{list}}}]]}}.|eo=Ĉi tio estas priigan paĝidon por uzo en pluraj paĝoj|ru=Это подстраница документации для использования на нескольких страницах{{#if:{{{list|}}}|&nbsp;указанных {{#switch:{{NAMESPACE:{{{list}}}}}|#default=на странице|Category=в категории}} [[:{{{list}}}]]}}.|zh=这是用于{{#if:{{{list|}}}|&nbsp;[[:{{{list}}}]] 中列出的}}多个页面上的文档子页面。}}}}[[Category:Template documentation pages]]
|text={{autolang|1=This is a documentation subpage for use on multiple pages{{#if:{{{list|}}}|&nbsp;listed in [[:{{{list}}}]]}}.|eo=Ĉi tio estas priigan paĝidon por uzo en pluraj paĝoj|ru=Это подстраница документации для использования на нескольких страницах{{#if:{{{list|}}}|&nbsp;указанных {{#switch:{{NAMESPACE:{{{list}}}}}|#default=на странице|Category=в категории}} [[:{{{list}}}]]}}.|zh=这是用于{{#if:{{{list|}}}|&nbsp;[[:{{{list}}}]] 中列出的}}多个页面上的文档子页面。}}}}[[Category:Template documentation pages]]
}}</onlyinclude></includeonly>
}}
{{#ifexist:{{FULLPAGENAME}}/doc|<div class="plainlinks" style="background:#323232; border:1px solid #505050; border-radius:2px; padding:0.4em 1em; margin-top:1em;">
''The above [[WP:Template_documentation|documentation]] is [[WP:Help:Transclusion|transcluded]] from [[{{FULLPAGENAME}}/doc]].'' <small>([{{fullurl:{{FULLPAGENAME}}|action=edit}} edit] {{!}} [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history])</small><br>
''Editors can experiment in this template's [[{{FULLPAGENAME}}/sandbox|sandbox]]'' <small>([{{fullurl:{{FULLPAGENAME}}/sandbox|action={{#ifexist:{{FULLPAGENAME}}/sandbox|edit|create}}}} {{#ifexist:{{FULLPAGENAME}}/sandbox|edit|create}}])</small> ''and [[{{FULLPAGENAME}}/testcases|testcases]]'' <small>([{{fullurl:{{FULLPAGENAME}}/testcases|action={{#ifexist:{{FULLPAGENAME}/testcases|edit|create}}}} {{#ifexist:{{FULLPAGENAME}}/testcases|edit|create}}])</small> pages.</div>|}}</onlyinclude></includeonly>

Revision as of 21:51, 30 May 2023

Tip.pngIdea:https://developer.valvesoftware.com/w/index.php?title=Template:Doc/sandbox&oldid=290395
Todo: Exclude Sandbox subpage and other from this template.
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 ==