Template:TemplateLink2/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
{{2;|bracket|templatename}}
|bracket ~ choose a type of bracket between on of this - curly, square. square = [[ ]]
curly = {{ }}
|templatename ~ template's name

Examples

[edit source]
Parameter Renders {{2;|main|Lua}}
[[Lua]]
{{2;|main|interwiki=mw|Template link|template name}}(links to MediaWiki)
[[Template link|template name]]
{{2;|interwiki=wikt|curly|Link|page name}}(Links to Wiktionary)
[[Link|page name]]

Parameters

[edit source]

|1= (required)

Choose brackets in between square or curly.

|interwiki= (optional)

Interwiki template target.

|2= (required)

Template name, don't include the template namespace, if not found returns error.

|3= (optional)

How to use the template. Use this({{!}})or <nowiki>...|...</nowiki> in the case of piped character.

See also

[edit source]