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
 
(3 intermediate revisions by the same user not shown)
Line 7: Line 7:
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}}[content]{{/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]}}[content]{{/div}}</pre>
{{div|style=[enter style parameters here as you normally would within a div tag's quotations]}}{{!div}}</pre>
{{Float|end}}
{{Float|end}}
{{Cat|Workaround Templates}}
{{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|Div!}}
</noinclude>
</noinclude>

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

Purpose

This template simply creates a closing div tag where it would otherwise be impossible due to bugs.

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}}