Template:Ext/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 11: Line 11:
! Preview
! Preview
|-
|-
| style="text-align:center" | {{Code|preset=1| {{Param|1}} }}
| style="text-align:center" | <code>{{param|1}}</code>
| style="padding:.2em .5em" | Abbreviation without a dot and uppercase.
| style="padding:.2em .5em" | File extension in lowercase.
| style="padding:.2em .4em" | {{CodeBlock|<nowiki>{{ext|mdl}}</nowiki>}}
| style="padding:.2em .4em" | <pre style="">{{ext|mdl}}</pre>
| style="text-align:center; padding:.2em .5em" | {{Capsule| {{Ext|mdl}} }}
| style="background-color:#262626; text-align:center; padding:.2em .5em" | {{ext|mdl}}
|-
|-
| style="text-align:center" | {{Code|preset=1| {{Param|2}} }}
| style="text-align:center" | <code>{{param|2}}</code>
| style="padding:.2em .5em" | Style.
| style="padding:.2em .5em" | '''Writing style:'''
| style="padding:.2em .4em" | {{CodeBlock|<nowiki>{{ext|mdl|2}}</nowiki>}}
* <code>#default</code> - Formatted in code style.
| style="text-align:center; padding:.2em .5em" | {{Capsule| {{Ext|mdl|2}} }}
* <code>2</code> - Acronym without formatting.
| style="padding:.2em .4em" | <pre style="">{{ext|mdl|2}}</pre>
| style="background-color:#262626; text-align:center; padding:.2em .5em" | {{ext|mdl|2}}
|}
|}


== Included Subpages ==
== Components ==
Below are the subpages that are used by this template for better code readability or something else.
This template uses components to simplify working with repetitive code. Below is a list of all components included in the template.
* {{Code|[[{{NAMESPACE}}:{{ROOTPAGENAME}}/include|Include]]}} - Content to include in the template.
* [[{{NAMESPACE}}:{{ROOTPAGENAME}}/include|Include]]


{{Doc/Sandbox other|
{{Doc/Sandbox other|

Latest revision as of 00:19, 19 September 2025

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

File extension.

Parameters and Examples

Parameter Description Example Preview
{{{1}}} File extension in lowercase.
{{ext|mdl}}
.mdl
{{{2}}} Writing style:
  • #default - Formatted in code style.
  • 2 - Acronym without formatting.
{{ext|mdl|2}}
mdl

Components

This template uses components to simplify working with repetitive code. Below is a list of all components included in the template.