Template:Div: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(Created template)
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><{{#if:{{{1|}}}|div style="{{{1|}}}"|div}}></includeonly><noinclude>
<includeonly><{{#if:{{{class|}}}|{{#if:{{{style|}}}|div class="{{{class|}}}" style="{{{style|}}}"|div class="{{{class|}}}"}}|{{#if:{{{style|}}}|div style="{{{style|}}}"|div}}}}></includeonly><noinclude>
==Purpose==
==Purpose==
This template is used to create a div tag where otherwise bugs prevent them from working.
This template is used to create a div tag where otherwise bugs prevent them from working.


==Usage==
==Usage==
::<i><small>Used in conjunction with [[Template:/div|/div]].</small></i>
::<i><small>Used in conjunction with [[Template:!div|!div]].</small></i>
To use this template, use it as you would a normal div tag:
To use this template, use it as you would a normal div tag:
{{Float|left}}<pre>
{{Float|left}}<pre>
{{div}}{{/div}}</pre>
{{div}}{{!div}}</pre>
{{Float|end}}
{{Float|end}}
{{clear}}
{{clear}}
For a div tag with style parameters, use it like this:
For a div tag with style parameters, use it like this:
{{Float|left}}<pre>
{{Float|left}}<pre>
{{div|[enter style parameters here as you normally would within a div tag's quotations]}}{{/div}}</pre>
{{div|style=[enter style parameters here as you normally would within a div tag's quotations]}}{{!div}}</pre>
{{Float|end}}
{{Float|end}}
{{clear}}
If you need to add a class, use:
{{Float|left}}<pre>
{{div|class=[class name here]}}{{!div}}</pre>
{{Float|end}}
{{clear}}
and
{{Float|left}}<pre>
{{div|class=[class name here]|style=[enter style parameters here as you normally would within a div tag's quotations]}}{{!div}}</pre>
{{Float|end}}
{{clear}}
{{Cat|Workaround Templates}}
{{Cat|Workaround Templates}}
</noinclude>
</noinclude>

Latest revision as of 04:52, April 12, 2013

Purpose

This template is used to create a div tag where otherwise bugs prevent them from working.

Usage

Used in conjunction with !div.

To use this template, use it as you would a normal div tag:

{{div}}{{!div}}

For a div tag with style parameters, use it like this:

{{div|style=[enter style parameters here as you normally would within a div tag's quotations]}}{{!div}}

If you need to add a class, use:

{{div|class=[class name here]}}{{!div}}

and

{{div|class=[class name here]|style=[enter style parameters here as you normally would within a div tag's quotations]}}{{!div}}