Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tlsp: Difference between revisions

Template page
m robot Removing: ko:틀:Tlsp (deleted)
m Protected "Template:Tlsp": Widely used template ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite))
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{[[Wikipedia:Template substitution|subst]]:[[{{ns:Template}}:{{{1|Tlsp}}}|{{{1|Tlsp}}}]]{{#if:{{{2|}}}|&#124;{{{2}}}}}{{#if:{{{3|}}}|&#124;{{{3}}}}}{{#if:{{{4|}}}|&#124;{{{4}}}}}{{#if:{{{5|}}}|&#124;<i>etc.</i>}}{{#if:{{{subst|}}}|&#124;subst={{{subst}}}}}}}<noinclude>
<onlyinclude>&#123;&#123;{{#if:{{yesno|{{{link subst|1}}}}}
 
|[[mw:Special:MyLanguage/Help:Substitution|subst]]
 
|subst
----
}}:<includeonly>[[:{{ns:10}}:{{{1}}}|{{{1}}}]]</includeonly><!--
'''Usage:''' {{Tlx|Tlsp|template name|first parameter|...}}<br />
--><noinclude>[[:{{ns:10}}:{{PAGENAME}}|tlsp]]</noinclude><!--
Up to three parameters for the specified template are displayed as placeholders, more parameters are shown as "<tt>|</tt>''etc.''", for details see {{Tlx|Tlx}} and the [[{{TALKPAGENAME}}|talk]] page.
-->{{#if:{{{2|}}}|&#124;{{{2}}}}}<!--
 
-->{{#if:{{{3|}}}|&#124;{{{3}}}}}<!--
*If the template supports [[Help:Substitution#Optional_substitution|optional substitution]] with <tt>subst=subst:</tt> just add this info&#58;
-->{{#if:{{{4|}}}|&#124;{{{4}}}}}<!--
:{{Tlx|Tlsp|template name|up to three parameters|4=subst=subst:}}
-->{{#if:{{{5|}}}|&#124;{{{5}}}}}<!--
 
-->{{#if:{{{6|}}}|&#124;{{{6}}}}}<!--
[[Category:Internal link templates|{{PAGENAME}}]]
-->{{#if:{{{7|}}}|&#124;{{{7}}}}}<!--
 
-->{{#if:{{{8|}}}|&#124;{{{8}}}}}<!--
[[en:Template:Tlx]]
-->{{#if:{{{9|}}}|&#124;{{{9}}}}}<!--
[[uk:Шаблон:Tlsp]]
-->{{#if:{{{10|<noinclude>1</noinclude>}}}|&#124;...}}<!--
</noinclude>
-->&#125;&#125;</onlyinclude>
{{Documentation}}

Latest revision as of 08:29, 28 August 2024

{{subst:tlsp|...}}

Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Tlsp/doc.

Template link with subst and parameters

Usage

{{tlsp |1= }}

Template parameters

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

Template link with subst and parameters

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Template1

Linked template name

Templaterequired
Extra parameters10

Whether to add extra parameters

Stringoptional
Parameter 12

First parameter value

Stringoptional
Parameter 23

Second parameter value

Stringoptional
Parameter 34

Third parameter value

Stringoptional
Parameter 45

Fourth parameter value

Stringoptional
Parameter 56

Fifth parameter value

Stringoptional
Parameter 67

Sixth parameter value

Stringoptional
Parameter 78

Seventh parameter value

Stringoptional
Parameter 89

Eighth parameter value

Stringoptional
Link “Subst” Prefix?link subst

Whether the “subst” prefix should link to “[[mw:Help:Substitution]]”

Default
1
Auto value
0
Booleanoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Example

{{tlsp|tlsp|1|2|3|4|5|6|7|8|9|10}}

renders as:

{{subst:tlsp|1|2|3|4|5|6|7|8|...}}

Localization

This template is not intended to be localized.

  1. REDIRECT Commons:Link templates/Template links
Cookies help us deliver our services. By using our services, you agree to our use of cookies.