Template:T/div/use: Difference between revisions

From Noisebridge
Jump to navigation Jump to search
Mcint (talk | contribs)
m onlyinclude’d: add close div, outside of template onlyinclude/inclusion content
Mcint (talk | contribs)
parameterized with named style= template arg
 
Line 1: Line 1:
== [[onlyinclude]]’d ==
==[[onlyinclude]]’d==
<onlyinclude><div style="background-color:#ddd8;border:3px dashed #3338;padding:3px;"></onlyinclude>
''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)
<onlyinclude><small>
{{#if: {{{style|}}}
      | <div style={{{style|}}}>
      | <div style="background-color:#ddd8;border:3px dashed #3338;padding:3px;">
}}
</small></onlyinclude>




</div>
</div>
=== Orig [[onlyinclude]]’d ===
<!-- onlyinclude><div style="background-color:#ddd8;border:3px dashed #3338;padding:3px;"></onlyinclude>
</div -->
==Examples==
===default, 0-arg===
{{t/div/use}}</div>
===1-arg, red===
{{t/div/use|style="background-color:#d888;border:3px dashed #8338;padding:3px;"}}</div>


== linkshere ==
== linkshere ==
{{linkshere}}
{{linkshere}}

Latest revision as of 12:41, 26 March 2026

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)


Examples

[edit source]

default, 0-arg

[edit source]

1-arg, red

[edit source]

linkshere

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