Template:Template usage example/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 15: Line 15:
| style="vertical-align:top; text-align:center" | No Parameters
| style="vertical-align:top; text-align:center" | No Parameters
| style="vertical-align:top" | Displays an error.
| style="vertical-align:top" | Displays an error.
| style="background-color:#1f1f1f; vertical-align:top; padding:1em" | <pre style="margin:0">{{Template usage example}}</pre>
| style="background-color:#1f1f1f; vertical-align:top; padding:.5em" | <pre style="margin:0">{{Template usage example}}</pre>
| style="background-color:#262626; vertical-align:top; padding:1em" | {{Template usage example}}
| style="background-color:#262626; vertical-align:top; padding:.5em" | {{Template usage example}}
|-
|-
| rowspan="2" style="vertical-align:top; text-align:center" | <code>{{param|1}}</code>
| rowspan="2" style="vertical-align:top; text-align:center" | <code>{{param|1}}</code>
Line 22: Line 22:
* <code>inline</code>
* <code>inline</code>
* <code>column</code>
* <code>column</code>
| style="background-color:#1f1f1f; vertical-align:top; padding:1em" | <pre style="margin:0">| inline
| style="background-color:#1f1f1f; vertical-align:top; padding:.5em" | <pre style="margin:0">| inline


| 1 = inline</pre>
| 1 = inline</pre>
| style="background-color:#262626; vertical-align:top; padding:1em" | {{Template usage example|inline}}
| style="background-color:#262626; vertical-align:top; padding:.5em" | {{Template usage example|inline}}
|-
|-
| style="background-color:#1f1f1f; vertical-align:top; padding:1em" | <pre style="margin:0">| column
| style="background-color:#1f1f1f; vertical-align:top; padding:.5em" | <pre style="margin:0">| column


| 1 = column</pre>
| 1 = column</pre>
| style="background-color:#262626; vertical-align:top; padding:1em" | {{Template usage example|column}}
| style="background-color:#262626; vertical-align:top; padding:.5em" | {{Template usage example|column}}
|}
|}



Revision as of 08:57, 7 October 2025

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

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

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