Template:TemplateCode: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly><code>{<!-- -->{{{{1}}}{{#if: {{{2|}}}|{{!}}{{{2|}}} }}{{#if: {{{3|}}}|{{!}}{{{3|}}} }}{{#if: {{{4|}}}|{{!}}{{{4|}}} }}{{#if: {{{5|}}}|{{!}}{{{5|}}} }}{{#if: {{{6|}}}|{{!}}{{{6}}}{{#if: {{{7|}}}|{{!}}{{{7|}}} }}{{#if: {{{8|}}}|{{!}}{{{8|}}} }} }}<!-- -->}<!-- -->}</code></includeonly><noinclude> === Documentation === {{shortcut|tcode}} == Usage == {{TemplateCode|tcode|''template name''}} Parameters can also be added, to a maximum of 8. Note that <code>=</..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><code>{<!-- -->{{{{1}}}{{#if: {{{2|}}}|{{!}}{{{2|}}} }}{{#if: {{{3|}}}|{{!}}{{{3|}}} }}{{#if: {{{4|}}}|{{!}}{{{4|}}} }}{{#if: {{{5|}}}|{{!}}{{{5|}}} }}{{#if: {{{6|}}}|{{!}}{{{6}}}{{#if: {{{7|}}}|{{!}}{{{7|}}} }}{{#if: {{{8|}}}|{{!}}{{{8|}}} }} }}<!-- -->}<!-- -->}</code></includeonly><noinclude> | <includeonly><code>{<!-- -->{{{{1}}}{{#if: {{{2|}}}|{{!}}{{{2|}}} }}{{#if: {{{3|}}}|{{!}}{{{3|}}} }}{{#if: {{{4|}}}|{{!}}{{{4|}}} }}{{#if: {{{5|}}}|{{!}}{{{5|}}} }}{{#if: {{{6|}}}|{{!}}{{{6}}}{{#if: {{{7|}}}|{{!}}{{{7|}}} }}{{#if: {{{8|}}}|{{!}}{{{8|}}} }} }}<!-- -->}<!-- -->}</code></includeonly><noinclude> | ||
=== Documentation === | === Documentation === | ||
{{shortcut|tcode}} | {{shortcut|tcode}} | ||
The template displays the working formula of a template as code. | |||
== Usage == | == Usage == | ||
{{TemplateCode|tcode|''template name''}} | {{TemplateCode|tcode|''template name''}} | ||
Parameters can also be added, to a maximum of 8. | Parameters can also be added, to a maximum of 8. | ||
== Examples == | == Examples == | ||
{{tcode|tcode| | {{tcode|tcode|fullurl|Items}} gives: {{tcode|fullurl|Items}} | ||
{{tcode| | |||
{{tcode|tcode|Item|3=2=type=wood}} gives: {{tcode|Item|2=type=wood}} | |||
{{tcode|tcode| | {{tcode|tcode|:Commands/seed}} gives: {{tcode|:Commands/seed}} | ||
{{tcode| | |||
{{tcode|tcode|move|Page to move to|Optional reason}} gives: | {{tcode|tcode|move|Page to move to|Optional reason}} gives: {{tcode|move|Page to move to|Optional reason}} | ||
{{tcode|move|Page to move to|Optional reason}} | |||
== See also == | == See also == | ||
| Line 29: | Line 28: | ||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
[[ru:Template: | [[ru:Template:ШаблонКод]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 06:59, 16 January 2026
Documentation
Shortcut
The template displays the working formula of a template as code.
Usage
{{tcode|template name}}
Parameters can also be added, to a maximum of 8.
Examples
{{tcode|fullurl|Items}} gives: {{fullurl|Items}}
{{tcode|Item|2=type=wood}} gives: {{Item|type=wood}}
{{tcode|:Commands/seed}} gives: {{:Commands/seed}}
{{tcode|move|Page to move to|Optional reason}} gives: {{move|Page to move to|Optional reason}}
See also
{{TemplateLink}}{{Parameter}}