Template:Doc/sandbox/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
== Header ==
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->
Test page that uses for testing the new style of the template.
Test page that uses for testing the new style of the template.


== Changes made ==
* Added {{param|DocParam1}} ~ {{param|DocParam5}} for /doc page
::Useful for pages transcluding from a page and needing a very small change.
== Example ==
{{Code|<nowiki>{{Doc/sandbox|docpage=abc|DocParam1=Half-Life 2|DocParam2=hl2}}</nowiki>}}
In a /doc page:
{{Code|<nowiki>{{ {{{DocParam1|Half-Life 2}}}|4|nt={{{DocParam2|}}} }}</nowiki>}}
*DocParam1: {{Half-Life 2|4}}
*DocParam2: {{Half-Life 2|4|nt=hl2}}
== Test parameters ==
{{#if:{{{DocParam1|}}}|*Param 1 is set|}}
{{#if:{{{DocParam1|}}}|*Param 1 is set|}}
{{#if:{{{DocParam2|}}}|*Param 2 is set|}}
{{#if:{{{DocParam2|}}}|*Param 2 is set|}}

Latest revision as of 15:58, 6 May 2025

Edit-copy.png
This is a documentation subpage for Template:Doc.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

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