Difference between revisions of "Template:T"

From The Coppermind
Jump to navigation Jump to search
(Created page with '__NOTOC__<includeonly><!-- Templates tlc, tld, tlf have the following wrapping everything; do we need it? <span style="white-space:nowrap;"> --><!-- -- begin tt style if tt=ye…')
 
m (+usage)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__<includeonly><!--
+
<includeonly><code>{{[[Template:{{{1|}}}|{{{text|{{{1|}}}|}}}]]<!--
 
-->{{#if:{{{2|}}}|&#124;{{{2}}}|}}<!--
Templates tlc, tld, tlf have the following wrapping everything; do we need it?
 
 
-->{{#if:{{{3|}}}|&#124;{{{3}}}|}}<!--
<span style="white-space:nowrap;">
 
 
-->{{#if:{{{4|}}}|&#124;{{{4}}}|}}<!--
--><!--
 
 
-->{{#if:{{{5|}}}|&#124;{{{5}}}|}}<!--
-- begin tt style if tt=yes given
 
-->{{#if:{{{tt|}}}|<tt>}}<!--
+
-->{{#if:{{{6|}}}|&#124;{{{6}}}|}}<!--
 
-->{{#if:{{{7|}}}|&#124;{{{7}}}|}}<!--
-- begin code style if code=yes given
 
-->{{#if:{{{code|}}}|<code>}}<!--
+
-->{{#if:{{{8|}}}|&#124;{{{8}}}|}}<!--
 
-->{{#if:{{{9|}}}|&#124;{{{9}}}|}}<!--
-- opening brace unless braceinside=yes
 
 
-->}}</code></includeonly><noinclude>
-->{{#if:{{{braceinside|}}}||<nowiki>{{</nowiki>}}<!--
 
  +
== Documentation ==
-- add subst prefix, if subst=yes given
 
  +
=== Usage ===
-->{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}<!--
 
  +
Usage is as follows:
-- begin boldface if bold=yes given
 
  +
-->{{#if:{{{bold|}}}|'''}}<!--
 
  +
{{t|t|template name|first parameter|second parameter}}.
-- begin link if not nolink=yes; add any LANG and SISTER prefixes
 
  +
-->{{#if:{{{nolink|}}}||{{!(}}{{!(}}{{{LANG|}}}{{{SISTER|}}}<!--
 
  +
To pass named parameters, you can
-- specify page to link to (unless nolink=yes)
 
  +
* use <code>name &#<span>61</span>; value</code> — {{t|t|Rosharan numeric date|year &#<span>61</span>; 1172|month &#<span>61</span>; 5|week &#<span>61</span>; 10|day &#<span>61</span>; 6}};
-->{{#if:{{{1|}}}|{{#if:{{{anypage|}}}||{{ns:Template}}:}}{{{1|}}}|{{FULLPAGENAME}}}}{{!}}}}<!--
 
  +
* surround it in <code><nowiki><nowiki /></nowiki></code> tags — <code><nowiki>{{t|Rosharan numeric date|<nowiki>year=1172|month=5|week=1|day=6</nowiki></nowiki>}}</code>; or
-- opening brace if braceinside=yes
 
  +
* use correctly numbered parameters.
-->{{#if:{{{braceinside|}}}|<nowiki>{{</nowiki>}}<!--
 
  +
-- surface text of link
 
  +
=== More information ===
-->{{{alttext|{{{1|{{#ifeq:{{NAMESPACE}}|{{ns:Template}}|{{PAGENAME}}|{{FULLPAGENAME}}}}}}}}}}<!--
 
  +
{{for|Wikipedia: Template: Tlx|additional details and information}}
-- closing brace if braceinside=yes
 
  +
For additional details and information, please refer to the wikipedia's doc page: [[Wikipedia: Template: Tlx]]
-->{{#if:{{{braceinside|}}}|<nowiki>}}</nowiki>}}<!--
 
  +
-- end of link, unless nolink=yes
 
  +
[[Category: Link macros]]
-->{{#if:{{{nolink|}}}||]]}}<!--
 
  +
-- end boldface if bold=yes
 
  +
== Pages using Template ==
-->{{#if:{{{bold|}}}|'''}}<!--
 
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
-- add the remaining parameters
 
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|limit=100}}
-->{{#if:{{{2|}}}|
 
&#124;{{{2}}}
 
}}<!--
 
-->{{#if:{{{3|}}}|
 
&#124;{{{3}}}
 
}}<!--
 
-->{{#if:{{{4|}}}|
 
&#124;{{{4}}}
 
}}<!--
 
-->{{#if:{{{5|}}}|
 
&#124;{{{5}}}
 
}}<!--
 
-->{{#if:{{{6|}}}|
 
&#124;{{{6}}}
 
}}<!--
 
-->{{#if:{{{7|}}}|
 
&#124;{{{7}}}
 
}}<!--
 
-->{{#if:{{{8|}}}|
 
&#124;{{{8}}}
 
}}<!--
 
-->{{#if:{{{9|}}}|
 
&#124;{{{9}}}
 
}}<!--
 
-->{{#if:{{{10|}}}|
 
&#124;{{{10}}}
 
}}<!--
 
-->{{#if:{{{11|}}}|
 
&#124;{{{11}}}
 
}}<!--
 
-->{{#if:{{{12|}}}|
 
&#124;''...''
 
}}<!--
 
-- closing brace unless braceinside=yes
 
-->{{#if:{{{braceinside|}}}||<nowiki>}}</nowiki>}}<!--
 
-- end code style if code=yes given
 
-->{{#if:{{{code|}}}|</code>}}<!--
 
-- end tt style if tt=yes given
 
-->{{#if:{{{tt|}}}|</tt>}}<!--
 
-- end
 
--></includeonly><noinclude>
 
This template allows you to link to a template.
 

Latest revision as of 19:45, 19 April 2020

Documentation[edit]

Usage[edit]

Usage is as follows:

{{t|template name|first parameter|second parameter}}.

To pass named parameters, you can

  • use name &#61; value{{t|Rosharan numeric date|year &#61; 1172|month &#61; 5|week &#61; 10|day &#61; 6}};
  • surround it in <nowiki /> tags — {{t|Rosharan numeric date|<nowiki>year=1172|month=5|week=1|day=6</nowiki>}}; or
  • use correctly numbered parameters.

More information[edit]

For additional details and information, please refer to the wikipedia's doc page: Wikipedia: Template: Tlx

Pages using Template[edit]