Template:T/div/end: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
Mcint (talk | contribs)
update template as conditional, to nudge include calling template name
Mcint (talk | contribs)
emphasized relying template
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
==[[onlyinclude]]’d==
==[[onlyinclude]]’d==
''Include on template source page''
''Include on template source page''
===includeonly===
* includeonly -- ''Include only on relying page''—--avoiding showing the self-call default error on this page. (idea / wish / how to not show error on this template definition page)
''Include only on relying page''—--avoiding showing the self-call default error on this page.
<onlyinclude><small>
<onlyinclude>
{{#if: {{{caller|{{{1|}}}}}}
{{#if: {{{caller|{{{1|}}}}}}
       | <span style="float:right"><small>[[Template:{{{caller|{{{1|}}}}}}|T:{{{caller|{{{1|}}}}}}]]  · see [[Template:t/div|t/div]]</span></div>
       | <span style="float:right"><small>see [[Template:{{{caller|{{{1|}}}}}}|T:{{{caller|{{{1|}}}}}}]]  · ''[[Template:t|t]]/[[Template:t/div|div]]''</small></span></div>
       | <span class="error">Missing caller= parameter. Please use <code><nowiki>{{t/div/end|</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></code> in the current template, <small>''to include the calling templates name in this "sub-routine" template's output.''</small></span>
       | <span class="error">Missing caller= parameter. Please use <code><nowiki>{{t/div/end|</nowiki>{{PAGENAME}}<nowiki>}}</nowiki></code> in the current template, <small>''to include the calling templates name in this "sub-routine" template's output''</small>.</span></div>
}}
}}
</onlyinclude>
</small></onlyinclude>
 


===Original===
===Original===
<nowiki>
<nowiki>
<onlyinclude><span style="float:right"><small>see [[Template:t/div|t/div]]</span></div></onlyinclude>
<!-- onlyinclude><span style="float:right"><small>see [[Template:t/div|t/div]]</small></span></div></onlyinclude -->
</nowiki>
</nowiki>


Line 21: Line 19:
====Asof====
====Asof====
{{t/div/use}}div div div{{T/div/end|asof}}
{{t/div/use}}div div div{{T/div/end|asof}}
<pre>{{t/div/use}}div div div{{T/div/end|asof}}</pre>
<nowiki>{{t/div/use}}div div div{{T/div/end|asof}}</nowiki>
 
====empty====
====empty====
{{t/div/use}}div div div{{T/div/end}}
{{t/div/use}}div div div{{T/div/end}}
<pre>{{t/div/use}}div div div{{T/div/end}}</pre>
<nowiki>{{t/div/use}}div div div{{T/div/end}}</nowiki>
==links here==
==links here==
{{linkshere}}
{{linkshere}}

Latest revision as of 12:35, 26 March 2026

See also Template:T and Template:T/div. Use with Template:T/div/use

Include on template source page

  • includeonly -- Include only on relying page—--avoiding showing the self-call default error on this page. (idea / wish / how to not show error on this template definition page)

Missing caller= parameter. Please use {{t/div/end|T/div/end}} in the current template, to include the calling templates name in this "sub-routine" template's output.

Original

[edit source]

<!-- onlyinclude><span style="float:right"><small>see [[Template:t/div|t/div]]</small></span></div></onlyinclude -->

examples

[edit source]

div div div

see T:asof · t/div

{{t/div/use}}div div div{{T/div/end|asof}}

div div div

Missing caller= parameter. Please use {{t/div/end|T/div/end}} in the current template, to include the calling templates name in this "sub-routine" template's output.

{{t/div/use}}div div div{{T/div/end}}
[edit source]
Special:WhatLinksHere/Template:T/div/end ({{linkshere}} A·M·C·T):