Template:Doc/sandbox: Difference between revisions
Jump to navigation
Jump to search
== Header ==
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{doc/sandbox | {{doc/sandbox}} | ||
<includeonly> | <includeonly> | ||
<onlyinclude>{{Doc/templateusecategory}}{{#if:{{{content|}}}|[[Category:Documentation using content parameter]]}}{{ulf|all-lang=1}}{{#switch:{{{1|}}} | <onlyinclude>{{Intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}} | ||
{{Doc/templateusecategory}}{{#if:{{{content|}}}|[[Category:Documentation using content parameter]]}}{{ulf|all-lang=1}}{{#switch:{{{1|}}} | |||
| #default = | | #default = | ||
<div style="clear:both; margin-top:1em; border:1px solid #505050; background-color:#323232; border-radius:2px"><!-- | <div style="clear:both; margin-top:1em; border:1px solid #505050; background-color:#323232; border-radius:2px"><!-- | ||
Line 115: | Line 116: | ||
--></span></div><!-- | --></span></div><!-- | ||
--></div> | --></div><!-- | ||
{{{content{{Intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}} | -->{{#ifexist: {{{docpage|{{FULLPAGENAME}}/doc}}}{{Intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}} | ||
|1 | | | ||
| | | {{metanotice | ||
|id=[[File:Info.png|45px]] | |||
|rgb=0, 127, 242 | |||
|style=padding:7px;margin-top:14px; background: rgba(0,127,242,0.1); border-radius: 5px; border: 2px solid rgba(0,127,242,0.3) | |||
|text={{Doc/strings|PageNotExist|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}}} | |||
}} | |||
}}<!-- | |||
-->{{#if: {{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/strings}} | |||
| {{Strings notice|TempDoc=1}}{{ {{FULLPAGENAME}}/strings|String info }} | |||
}}<!-- | |||
-->{{#if: {{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/testcases}} | |||
| {{Testcase notice|TempDoc=1}} | |||
}}<!-- | |||
-->{{#if: {{{content{{Intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}|}}} | |||
| {{{content{{Intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}}}} | |||
| {{#if: {{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{Intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}}} | |||
| {{:{{{docpage|{{FULLPAGENAME}}/doc}}}{{Intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}} }} | |||
| {{:{{{docpage|{{FULLPAGENAME}}/doc}}}}} | |||
}}<!-- ##### if:PROTECTIONEXPIRY ##### --> | }}<!-- ##### if:PROTECTIONEXPIRY ##### --> | ||
}}<!-- ##### if:CONTENT ##### --> | |||
</div></div><!-- | </div></div><!-- | ||
Line 213: | Line 184: | ||
}}<!-- ##### if:PROTECTIONEXPIRY ##### --></onlyinclude> | }}<!-- ##### if:PROTECTIONEXPIRY ##### --></onlyinclude> | ||
</includeonly> | </includeonly>__NOTOC__ |
Revision as of 15:32, 6 May 2025

This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Please follow the format on this subpage(s) to add translations.
Number of strings:1
Approximate status of translation:
100%
Approximate status of translation:

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|}}} }}
- DocParam1:
Half-Life 2
- DocParam2:
HL2
Test parameters
The above documentation is transcluded from Template:Doc/sandbox/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.