Template:TemplateCode: Difference between revisions

From Structorica Wiki
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. Note that <code>=</code>'s must be escaped using <code><nowiki>{{=}}</nowiki></code>
Parameters can also be added, to a maximum of 8.  


== Examples ==
== Examples ==
{{tcode|tcode|subst:autoUnsigned}} gives:<br>
{{tcode|tcode|fullurl|Items}} gives: {{tcode|fullurl|Items}}
{{tcode|subst:autoUnsigned}}
 
 
{{tcode|tcode|Item|3=2=type=wood}} gives: {{tcode|Item|2=type=wood}}
 


{{tcode|tcode|Block|3=2=type=wood}} gives:<br>
{{tcode|tcode|:Commands/seed}} gives: {{tcode|:Commands/seed}}
{{tcode|Block|2=type=wood}}


{{tcode|tcode|:Commands/infobox}} gives:<br>
{{tcode|:Commands/infobox}}


{{tcode|tcode|move|Page to move to|Optional reason}} gives:<br>
{{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