Template:Template link expanded/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content deleted Content added
tlxb added |
noted usage with 999 nowiki parameters & 11 (no longer 5) pass parameters; noted "or all parameters as a string" with nowiki-tags; added example {tlx|convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki>} |
||
Line 13:
<!-- Parent template(s) usage begins: --->
: {{tlx|Tlx|Template|first parameter|second|third|
: {{tlx|Tlx|Template|<nowiki>first|second|...|999th</nowiki>}}
== Purpose and naming ==
Line 19 ⟶ 21:
* This template takes another ''template-name'' and some associated [[Help:Pipe trick|pipe-tricked]] [[m:Parameter#Parameters|(numbered) parameters]] (or 'pass parameters'), and displays them as an 'example demonstration' of how the ''template-name'' template could be coded, literally. Its primary use is in instruction and documentation.
* '''''Specifics:''''' Up to
* '''''Exceptions:''''' If the intended template lists numerous/keyword parameters, then perhaps this template should really ''not'' be used, and just hardcode the usage with <code><nowiki><code><nowiki></nowiki></code>, for example: <code><nowiki><code><nowiki>{{Anytemplate|arg1=23|size=250px|</nowiki><var>other parameters...</var><nowiki>}}</nowiki></code></nowiki></code>. If a vertical display, with parameters on their own lines, is desired, this can also be laid out manually in this manner, or more rapidly done with <code><nowiki><pre>...</pre></nowiki></code>.
Line 155 ⟶ 157:
|| {{Tlx|x2|3=two|2=one}}
|align="right"|right to left okay
|-
|colspan=2| <tt><nowiki>{{Tlx</nowiki></tt>|convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki><tt><nowiki>}}</nowiki></tt>
|unlimited parameters as one nowiki string
|}
|