Template:Doc/sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Took way longer to figure out the code...)
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{doc/sandbox}}
{{doc/sandbox|DocParam1=1|DocParam2=2}}
<includeonly>
<includeonly>


Line 115: Line 115:


--></span></div><!--
--></span></div><!--
--></div>
--></div><!--
{{{content{{Intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}
-->{{#if: {{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}{{Intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}|1|0}}}}}}
|1
|
|0
| {{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}}}}
|DocParam1={{{DocParam1|}}}|DocParam2={{{DocParam2|}}}|DocParam3={{{DocParam3|}}}|DocParam4={{{DocParam4|}}}|DocParam5={{{DocParam5|}}} }}
| {{:{{{docpage|{{FULLPAGENAME}}/doc}}}
|DocParam1={{{DocParam1|}}}|DocParam2={{{DocParam2|}}}|DocParam3={{{DocParam3|}}}|DocParam4={{{DocParam4|}}}|DocParam5={{{DocParam5|}}} }}
}}<!-- ##### if:PROTECTIONEXPIRY ##### -->
}}<!-- ##### if:PROTECTIONEXPIRY ##### -->
}}<!-- ##### INTLANG ##### -->
}}<!-- ##### if:CONTENT ##### -->
|{{{content|{{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}/doc}}}<!--
-->{{Intlang|pref=/|default-none=
{{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}
|1
|0
}}<!-- ##### if:PROTECTIONEXPIRY (2) ##### -->
}}<!-- ##### INTLANG ##### -->
}}<!-- ##### PROTECTIONEXPIRY ##### -->
|<!--
--------------- Strings notice ---------------
-->{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/strings}}
|{{Strings notice}}{{ {{FULLPAGENAME}}/strings | String info }}
|
}}<!--
--------------- Testcase notice ---------------
-->{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/testcases}}
|{{Testcase notice}}
|
}}<!--
----- Translated doc page transclusion -----
-->{{:{{{docpage|{{FULLPAGENAME}}/doc}}}{{Intlang|pref=/|default-none={{#if:{{PROTECTIONEXPIRY:edit|{{DOCPAGENAME|{{{docpage|}}}}}}}
|1
|0
}}<!-- ##### if:PROTECTIONEXPIRY ##### -->
}}<!-- ##### INTLANG ##### -->
}}<!-- ##### TRANSCLUSION ##### -->
|{{metanotice
|id=[[file:Info.png|45px]]
|rgb=0, 127, 242
|style=padding:7px;margin-top:14px
|text={{Doc/strings|PageNotExist|docpage={{{docpage|{{FULLPAGENAME}}/doc}}}}}
}} <!--
-->{{#if:{{PROTECTIONEXPIRY:edit|{{FULLPAGENAME}}/strings}}
|{{Strings notice}}{{ {{FULLPAGENAME}}/strings|String info}}
|
}}<!--
----- Doc page transclusion -----
-->{{:{{{docpage|{{FULLPAGENAME}}/doc}}}}}
}}<!-- ##### if:PROTECTIONEXPIRY (1) ##### -->
 
}}}<!-- ##### CONTENT (2) #####
-->}}}<!-- ##### CONTENT (1) ##### -->
</div></div><!--  
</div></div><!--  


Line 212: Line 185:
}}<!-- ##### if:PROTECTIONEXPIRY ##### --></onlyinclude>
}}<!-- ##### if:PROTECTIONEXPIRY ##### --></onlyinclude>


</includeonly>
</includeonly>__NOTOC__

Latest revision as of 15:52, 6 May 2025

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)
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

  • Param 1 is set
  • Param 2 is set