Template:Template usage example: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Documentation}} <includeonly> <onlyinclude>{{#switch:{{{1|}}} | #default = This template is usually written in a single line. To use it, insert <code><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></code> into the desired page and specify the parameters to the right of the template name in the following format: <code><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|parameter 1 = value|parameter 2 = value}}</nowiki></code>. | column = This temp...")
 
No edit summary
Line 4: Line 4:
<onlyinclude>{{#switch:{{{1|}}}
<onlyinclude>{{#switch:{{{1|}}}


| #default = This template is usually written in a single line. To use it, insert <code><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></code> into the desired page and specify the [[#Parameters and Examples|parameters]] to the right of the template name in the following format: <code><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>|parameter 1 = value|parameter 2 = value}}</nowiki></code>.
| #default = This template is usually written in a single line. To use it, insert <code><nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki></code> into the desired page and specify the [[#Parameters and Examples|parameters]] to the right of the template name in the following format: <code><nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|parameter 1 = value|parameter 2 = value}}</nowiki></code>.


| column = This template is usually written in a column. To use it, insert <code><nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></code> on the desired page and specify the [[#Parameters and Examples|parameters]] under the template name in the following format:
| column = This template is usually written in a column. To use it, insert <code><nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>}}</nowiki></code> on the desired page and specify the [[#Parameters and Examples|parameters]] under the template name in the following format:
{{CodeBlock|<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>
{{CodeBlock|<nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>
| parameter 1 = value
| parameter 1 = value
| parameter 2 = value
| parameter 2 = value

Revision as of 23:51, 26 September 2025

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

Inserts text about how to write a template.

Usage

This template is usually written in a single line. To use it, insert {{Template usage example}} into the desired page and specify the parameters to the right of the template name in the following format: {{Template usage example|parameter 1 = value|parameter 2 = value}}.

Parameters and Examples

Parameter Description Examples Preview
No Parameters Displays an error.
{{Template usage example}}
This template is usually written in a single line. To use it, insert {{Template usage example}} into the desired page and specify the parameters to the right of the template name in the following format: {{Template usage example|parameter 1 = value|parameter 2 = value}}.
{{{1}}} Specifying the writing format:
  • inline
  • column
| inline

| 1 = inline
This template is usually written in a single line. To use it, insert {{Template usage example}} into the desired page and specify the parameters to the right of the template name in the following format: {{Template usage example|parameter 1 = value|parameter 2 = value}}.
| column

| 1 = column
This template is usually written in a column. To use it, insert {{Template usage example}} on the desired page and specify the parameters under the template name in the following format:
{{Template usage example | parameter 1 = value | parameter 2 = value }}