- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
Difference between revisions of "Template:Clear/doc"
(move documentation) |
(Update documentation) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | This template | + | This template consists of <tt><div style="clear:both;"></div></tt> |
− | <nowiki>{{clear}}</nowiki> | + | <nowiki>{{clear}}</nowiki> makes the following content start below all previous content in all columns. It can be used to stop text from flowing next to unrelated images or sidebars. |
+ | |||
+ | In addition, the first parameter can be used to override "both"; for example, {{<nowiki/>clear|left}} will force the following content to appear below floating content on the left side only. (See [http://www.w3schools.com/cssref/pr_class_clear.asp this page] for more information.) | ||
==Use on creature pages== | ==Use on creature pages== | ||
This template can often prevent misaligned raw and creature boxes caused by the sidebar at the left of creature pages. | This template can often prevent misaligned raw and creature boxes caused by the sidebar at the left of creature pages. | ||
+ | |||
+ | ===Option 1, without <nowiki>{{clear}}</nowiki>=== | ||
+ | |||
+ | {{creatureInfo v0.34|name=Animal 1}} | ||
+ | <div style="height: 25em;"> | ||
+ | Text | ||
+ | |||
+ | Text | ||
+ | |||
+ | Text | ||
+ | |||
+ | Text | ||
+ | </div> | ||
+ | {{creatures}} | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | ===Option 2, with <nowiki>{{clear}}</nowiki>=== | ||
+ | |||
+ | {{creatureInfo v0.34|name=Animal 2}} | ||
+ | <div style="height: 25em;"> | ||
+ | Text | ||
+ | |||
+ | Text | ||
+ | |||
+ | Text | ||
+ | |||
+ | Text | ||
+ | </div> | ||
+ | {{clear}} | ||
+ | {{creatures}} | ||
+ | |||
+ | <includeonly>[[Category:Templates]]</includeonly> | ||
+ | <noinclude>[[Category:Template Documentation]]</noinclude> |
Latest revision as of 20:48, 30 July 2013
This template consists of <div style="clear:both;"></div>
{{clear}} makes the following content start below all previous content in all columns. It can be used to stop text from flowing next to unrelated images or sidebars.
In addition, the first parameter can be used to override "both"; for example, {{clear|left}} will force the following content to appear below floating content on the left side only. (See this page for more information.)
Use on creature pages[edit]
This template can often prevent misaligned raw and creature boxes caused by the sidebar at the left of creature pages.
Option 1, without {{clear}}[edit]
? | |
Biome | |
---|---|
Any location | |
Cannot be tamed | |
Butchering returns | |
Food items | |
Raw materials | |
There is too little information about this creature. |
Text
Text
Text
Text
This is a helper template that transcludes different templates based on the namespace of the page where it is included. The following templates are supported:
- Template:v50 creatures
- Template:DF2014 creatures
- Template:v0.34 creatures
- Template:Masterwork creatures
- Template:v0.31 creatures
- Template:40d creatures
- Template:23a creatures
Option 2, with {{clear}}[edit]
? | |
Biome | |
---|---|
Any location | |
Cannot be tamed | |
Butchering returns | |
Food items | |
Raw materials | |
There is too little information about this creature. |
Text
Text
Text
Text
This is a helper template that transcludes different templates based on the namespace of the page where it is included. The following templates are supported: