Template:Doc/sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Undo revision 311396 by Mailmanmicky (talk))
Tag: Undo
mNo edit summary
Line 71: Line 71:
{{#ifexist:{{FULLPAGENAME}}/doc|<div class="plainlinks" style="background:#323232; border:1px solid #505050; border-radius:2px; padding:0.4em 1em; margin-top:1em;">
{{#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>
''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 {{#ifexist:{{FULLPAGENAME}}/sandbox|[[{{FULLPAGENAME}}/sandbox|sandbox]]|sandbox}} <small>([{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit}} {{#ifexist:{{FULLPAGENAME}}/sandbox|edit|create}}]{{#ifexist:{{FULLPAGENAME}}/sandbox|| {{!}} [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit&preload={{urlencode:{{FULLPAGENAME}}}}&summary={{urlencode:Create sandbox version of {{FULLPAGENAME}}}}}} mirror]}})</small> and {{#ifexist:{{FULLPAGENAME}}/sandbox|[[{{FULLPAGENAME}}/testcases|testcases]]|testcases}} <small>([{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} {{#ifexist:{{FULLPAGENAME}}/testcases|edit|create}}])</small> pages.<br>
''Editors can experiment in this template's {{#ifexist:{{FULLPAGENAME}}/sandbox|[[{{FULLPAGENAME}}/sandbox|sandbox]]|sandbox}} <small>([{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit}} {{#ifexist:{{FULLPAGENAME}}/sandbox|edit|create}}]{{#ifexist:{{FULLPAGENAME}}/sandbox|| {{!}} [{{fullurl:{{FULLPAGENAME}}/sandbox|action=edit&preload={{urlencode:{{FULLPAGENAME}}}}&summary={{urlencode:Create sandbox version of {{FULLPAGENAME}}}}}} mirror]}})</small> and {{#ifexist:{{FULLPAGENAME}}/testcases|[[{{FULLPAGENAME}}/testcases|testcases]]|testcases}} <small>([{{fullurl:{{FULLPAGENAME}}/testcases|action=edit}} {{#ifexist:{{FULLPAGENAME}}/testcases|edit|create}}])</small> pages.<br>
''Add categories to the [[/doc]] subpage. [[Special:PrefixIndex/{{FULLPAGENAME}}|Subpages of this page]].
''Add categories to the [[/doc]] subpage. [[Special:PrefixIndex/{{FULLPAGENAME}}|Subpages of this page]].
</div>|}}</onlyinclude></includeonly>
</div>|}}</onlyinclude></includeonly>

Revision as of 19:29, 31 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 ==