Template:Doc/sandbox/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
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.
== 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|}}

Revision as of 09:59, 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.

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.

Example

{{Doc/sandbox|docpage=abc|DocParam1=Half-Life 2|DocParam2=hl2}}

In a /doc page:

{{ {{{DocParam1|Half-Life 2}}}|4|nt={{{DocParam2|}}} }}

Test parameters