Template:Template usage example: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
| #default = Not specified how to write the template. See [[Template:Template usage example|the documentation]].
| #default = Not specified how to write the template. See [[Template:Template usage example|the documentation]].


| inline = 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: {{#switch:{{{2|}}}
| inline = 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>.
| #default = <code><nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|parameter 1 = value|parameter 2 = value}}</nowiki></code>
 
| nospaces = <code><nowiki>{{</nowiki>{{ROOTPAGENAME}}<nowiki>|parameter1=value|parameter2=value}}</nowiki></code>
| inline_nospaces = 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>.<br>{{Important|This template requires that parameters and values do not have spaces at the beginning or end. This is due to wiki engine limitations, user preferences, or other reasons.}}
}}.{{#switch:{{{2|}}}
| #defaul=
| nospaces = <br>{{Note|The main option is to write parameters using spaces, but in this case, the absence of spaces is due to user decisions (for example, it was decided that this would be more convenient) or template behavior (for example, broken links due to spaces).}}
  }}


| 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:
| 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:

Latest revision as of 10:08, 10 October 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
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}}
Not specified how to write the template. See the documentation.
{{{1}}} Specifying the writing format:
  • inline
  • column
  • inline_nospaces
| 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}}.
| inline_nospaces

| 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 }}
| inline_nospaces

| 1 = inline_nospaces
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}}.
Icon-Important.pngImportant:This template requires that parameters and values do not have spaces at the beginning or end. This is due to wiki engine limitations, user preferences, or other reasons.