- 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"
(update) |
(Update documentation) |
||
(One intermediate revision by one other user 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== | ||
Line 19: | Line 21: | ||
Text | Text | ||
</div> | </div> | ||
− | |||
{{creatures}} | {{creatures}} | ||
Line 39: | Line 40: | ||
</div> | </div> | ||
{{clear}} | {{clear}} | ||
− | |||
{{creatures}} | {{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: