Jump to content

Template:Clear/doc

From Factory Town 2 Wiki

This template allows you to clear the left side, the right side, or both by adding <div style="clear:left/right/both;"></div>

Usage[edit]

{{#invoke:Template link|main|code=on}}: Makes content wait until existing content is completed in all columns. Often used to stop text from flowing next to unrelated images. An optional class parameter can additionally be given for custom functionality.

To clear the left, simply put {{#invoke:Template link|main|code=on}}. To clear the right, put {{#invoke:Template link|main|code=on}}. To clear both sides, put {{#invoke:Template link|main|code=on}}.

This template can also be called with {{#invoke:Template link|main|code=on}} for short.

<templatedata> { "params": { "1": { "label": "Direction", "description": "Which direction to clear", "type": "string", "default": "both", "suggestedvalues": [ "left", "right", "both" ] }, "class": { "label": "Class", "description": "A class to give to the clear", "type": "string" } }, "description": "Clears the left, right, or both.", "format": "inline" } </templatedata>