Template:Ext: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


| {{#switch:{{{2|}}}
| {{#switch:{{{2|}}}
| #default = <code style="white-space:nowrap; background-color:rgb(60 130 130 / 16%); border-radius:.3em; padding:.15em .3em">[[{{Ext/include|link={{{1|}}}}}|{{Ext/include|name={{{1|}}}|style={{{2|}}}}}]]{{Ext/include|icon={{{1|}}}}}</code>
| #default = <kbd style="white-space:nowrap; background-color:rgb(60 130 130 / 16%); border-radius:.3em; padding:.15em .3em">[[{{ext/include|link={{{1|}}}}}|{{ext/include|name={{{1|}}}|style={{{2|}}}}}]]{{ext/include|icon={{{1|}}}}}</kbd>


| 2 = <span style="white-space:nowrap; text-transform:uppercase">[[{{Ext/include|link={{{1|}}}}}|{{Ext/include|name={{{1|}}}|style={{{2|}}}}}]]</span>
| 2 = <span style="white-space:nowrap; text-transform:uppercase">[[{{ext/include|link={{{1|}}}}}|{{ext/include|name={{{1|}}}|style={{{2|}}}}}]]</span>
   }}
   }}


| <code style="background-color:rgb(130 60 60 / 16%); border-radius:.3em; white-space:nowrap; color:rgb(255 100 100); padding:.15em .3em"><nowiki>{{Ext}}</nowiki></code>
| <code style="background-color:rgb(130 60 60 / 16%); border-radius:.3em; white-space:nowrap; color:rgb(255 100 100); padding:.15em .3em"><nowiki>{{ext}}</nowiki></code>


}}</onlyinclude></includeonly>
}}</onlyinclude></includeonly>

Revision as of 00:11, 19 September 2025

Template:Dictionary/Todo/extchange the link to be the standard for page names (i.e. CFG, not .cfg)
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)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

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.