Template:Ext/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(3 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" | <pre style="">{{ext|mdl}}</pre>
| style="padding:.2em .4em" | <pre style="">{{ext|mdl}}</pre>
| style="background-color:#262626; text-align:center; padding:.2em .5em" | {{ext|mdl}}
| style="background-color:#262626; text-align:center; padding:.2em .5em" | {{ext|mdl}}
|-
|-
| style="text-align:center" | <code>{{param|2}}</code> }}
| style="text-align:center" | <code>{{param|2}}</code>
| style="padding:.2em .5em" | Writing style:
| style="padding:.2em .5em" | '''Writing style:'''
* #default = Formatted in code style.
* <code>#default</code> - Formatted in code style.
* 2 = Acronym.
* <code>2</code> - Acronym without formatting.
| style="padding:.2em .4em" | <pre style="">{{ext|mdl|2}}</pre>
| style="padding:.2em .4em" | <pre style="">{{ext|mdl|2}}</pre>
| style="background-color:#262626; text-align:center; padding:.2em .5em" | {{ext|mdl|2}}
| style="background-color:#262626; text-align:center; padding:.2em .5em" | {{ext|mdl|2}}
Line 25: Line 25:


== Components ==
== 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.
* [[{{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.