The Wiki for Tale 8 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "Template:Tlx/doc"

From A Wiki in the Desert
Jump to navigation Jump to search
(Creating template documentation page for Tlx template)
 
m (Converted Wikipedia and MediaWiki links to external links)
 
Line 1: Line 1:
'''{{tl|Tlx}}''' takes the name of another template and some associated [[Wikipedia:Help:Pipe_trick|pipe-trick]]ed [[mediawikiwiki:Help:Templates#Parameters|parameters]], and displays them as an example of how the template could be coded. Its primary use is in wiki-editing instruction and documentation where short template examples would be helpful, and should '''never''' be used in "real" page content. To demonstrate a simple template without parameters, see {{tl|Tl}}.
+
'''{{tl|Tlx}}''' takes the name of another template and some associated [https://en.wikipedia.org/wiki/Help:Pipe_trick pipe-tricked] [https://www.mediawiki.org/wiki/Help:Templates#Parameters parameters], and displays them as an example of how the template could be coded. Its primary use is in wiki-editing instruction and documentation where short template examples would be helpful, and should '''never''' be used in "real" page content. To demonstrate a simple template without parameters, see {{tl|Tl}}.
  
 
To document templates that use more than five parameters, use <nowiki><pre></nowiki> tags to wrap and format the content.
 
To document templates that use more than five parameters, use <nowiki><pre></nowiki> tags to wrap and format the content.

Latest revision as of 22:58, 8 October 2018

{{Tlx}} takes the name of another template and some associated pipe-tricked parameters, and displays them as an example of how the template could be coded. Its primary use is in wiki-editing instruction and documentation where short template examples would be helpful, and should never be used in "real" page content. To demonstrate a simple template without parameters, see {{Tl}}.

To document templates that use more than five parameters, use <pre> tags to wrap and format the content.

Template

{{Tlx|<TEMPLATE>|<PARAMETER>|<PARAMETER>|...}}

Usage

Provide the template name as the first parameter, and up to five arguments to the template as the remaining parameters.

Example

{{Tlx|Example template|example parameter one|second example parameter}}

The above use produces:

{{Example template|example parameter one|second example parameter}}