Template:Template link expanded/doc: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
explained use of nowiki-keyword parameters; added "Exceptions" for when template usage is too complicated.
m (+ia)
(explained use of nowiki-keyword parameters; added "Exceptions" for when template usage is too complicated.)
Line 18:
'''<big>Purpose and naming:</big>''' [[Wikt:mnemonic|Mnemonically]] ''''T'''emplate '''l'''ist e'''x'''panded'... after <tt>{{tlx|tl}}</tt> '''T'''emplate '''l'''ist'
 
* This template takes another ''template-name'' and some associated [[w:pipe-trick|pipe-tricked]] [http://meta.wikimedia.org/wiki/Parameter#Parameters (numbered) parameters] (or 'pass parameters'), and aggregatesdisplays them intoas an 'example demonstration' of how the ''template-name'' template mightcould be usedcoded, literally. It's primary use is in instruction and documentation such as this passage.
 
* '''''Specifics:''''' Up to five pass parameters (numbered or nowiki-keywords) for the specified template are displayed as 'placeholders', and moreover 5 parameters arecan shownbe displayed using a coded vertical-bar (as in "<ttsmall>|&amp;#124;</ttsmall>''...''"). A keyword parameter can be used, forwhen tagged as a nowiki-keyword: <nowiki>"<nowiki>siz=10<\nowiki>"</nowiki> with each keyword parameter surrounded by <nowiki>"<nowiki>"</nowiki> tags; see ''[[#Examples|Examples]]'' at bottom. For more details, see the [[w:{{TALKPAGENAME}}|this talk]] page.
 
* '''''Exceptions:''''' If the intended template lists numerous/keyword parameters, then perhaps this template should really ''not'' be used, and just hardcode the usage in double-braces, putting only nowiki-braces <nowiki>"{{"</nowiki> to start, such as: "<nowiki><nowiki>{{</nowiki><\nowiki>Anytemplate |arg1=23 |siz=250px}}".
----
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu