Template:Template link expanded/doc: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
m (→Examples: fixups) |
(+Meta fixups) |
||
Line 1: | Line 1: | ||
<includeonly><!-----------------Interwiki Doc page pattern-------------------> |
<includeonly><!-----------------Interwiki Doc page pattern-------------------> |
||
<small>''This '{{Tlx|Tlx}}' template documentation is [[w:Wikipedia:Template doc page pattern|transcluded]] for all ''Tlx family templates (Tlx, Tlxm, Tlxw)'' [<span class="plainlinks">[{{fullurl:Template:Tlx/doc |action=edit}} edit]</span>].{{#ifeq:{{SITENAME}}|Meta| |[[M:template:{{PAGENAMEE}}|Masterpage]] |
<small>''This '{{Tlx|Tlx}}' template documentation is [[w:Wikipedia:Template doc page pattern|transcluded]] for all ''Tlx family templates (Tlx, Tlxm, Tlxw)'' [<span class="plainlinks">[{{fullurl:Template:Tlx/doc |action=edit}} edit]</span>].{{#ifeq:{{SITENAME}}|Meta| |[[M:template:{{PAGENAMEE}}|Masterpage]] |
||
}}</small></includeonly><noinclude> |
}}</small></includeonly><noinclude> |
||
Line 27: | Line 27: | ||
<!-- EDIT/ADD TEMPLATE Interwiki's BELOW THIS LINE --> |
<!-- EDIT/ADD TEMPLATE Interwiki's BELOW THIS LINE --> |
||
{{interwikitmp-grp|V=6|cat=Typing-aid templates |CATS=[[Category:Internal link templates|Tlx]][[Category:Interwiki link templates|Tlx]]}} |
{{interwikitmp-grp|V=6|cat=Typing-aid templates |CATS=[[Category:Internal link templates|Tlx]][[Category:Interwiki link templates|Tlx]]}} |
||
</includeonly><!--- Categories applied to both /doc style Documentation page and to the parent templates ---> |
|||
</includeonly> |
|||
⚫ | |||
---- --------------------------------------------------------------------------------- ---- |
|||
---- Common usage below this line, Special usage in if-then-else conditionals as well. ---- |
|||
---- --------------------------------------------------------------------------------- ---- |
|||
Parent template(s) usage Begins: |
|||
---> |
|||
;This usage also applies to interwiki capable template variations: 'Tlxm' and 'Tlxw'<br> |
;This usage also applies to interwiki capable template variations: 'Tlxm' and 'Tlxw'<br> |
||
{{tlx|tlx|template|first parameter|second|third|fourth|fifth|sixth|seventh|eight|ninth}} <br>→ (becomes) → <br>{{tlx|template|first parameter|second|third|fourth|fifth|sixth|seventh|eight|ninth}} |
{{tlx|tlx|template|first parameter|second|third|fourth|fifth|sixth|seventh|eight|ninth}} <br>→ (becomes) → <br>{{tlx|template|first parameter|second|third|fourth|fifth|sixth|seventh|eight|ninth}} |
||
⚫ | |||
'''<big>Purpose and naming:</big>''' [[Wikt:mnemonic|Mnemonically]] ''''T'''emplate '''l'''ist e'''x'''panded'... after {{tlx|tl}} 'Template list' |
|||
⚫ | * 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 aggregates them into an 'example demonstration' of how the ''template-name'' template might be used. It's primary use is in instruction and documentation such as this passage. |
||
* Up to five pass parameters (numbered) for the specified template are displayed as 'placeholders', and more parameters are shown as "<tt>|</tt>''...''", for details see the [[w:{{TALKPAGENAME}}|this talk]] page. |
* Up to five pass parameters (numbered) for the specified template are displayed as 'placeholders', and more parameters are shown as "<tt>|</tt>''...''", for details see the [[w:{{TALKPAGENAME}}|this talk]] page. |
||
Line 51: | Line 62: | ||
uses of "'''{'''", "'''|'''", "'''}'''" in conjunction |
uses of "'''{'''", "'''|'''", "'''}'''" in conjunction |
||
with links can be hard to read. |
with links can be hard to read. |
||
{{#ifeq:{{PAGENAME}}|Tlx/doc|| |
|||
=== Usage === |
=== Usage === |
||
Line 60: | Line 71: | ||
:<tt>{{{{PAGENAME}}|template name|param&#61;value}}</tt> |
:<tt>{{{{PAGENAME}}|template name|param&#61;value}}</tt> |
||
''Up to three placeholders for parameters of the specified template'' |
''Up to three placeholders for parameters of the specified template'' |
||
}} |
|||
=== Examples === |
=== Examples === |
||
Line 140: | Line 152: | ||
|align="right"|right to left okay |
|align="right"|right to left okay |
||
|}{{-}} |
|}{{-}} |
||
[[Category:Typing-aid templates |{{PAGENAME}}]] |
|||
[[Category:Internal link templates|{{PAGENAME}}]] |
|||
⚫ | |||
---- |
---- |