v50 Steam/Premium information for editors
  • 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.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Clear/doc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(update)
(Update documentation)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This template literally consists of <tt>&lt;div style="clear:both;"&gt;&lt;/div&gt;</tt>
+
This template consists of <tt>&lt;div style="clear:both;"&gt;&lt;/div&gt;</tt>
  
<nowiki>{{clear}}</nowiki> Makes the following content start below all previous content in all columns. Often used to stop text from flowing next to unrelated images.
+
<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>
{{gamedata}}
 
 
{{creatures}}
 
{{creatures}}
  
Line 39: Line 40:
 
</div>
 
</div>
 
{{clear}}
 
{{clear}}
{{gamedata}}
 
 
{{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]

Animal 1

?

Biome

Any location

Cannot be tamed
Butchering returns

Food items

Raw materials

There is too little information about this creature.
Please contribute if you can!

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:




Option 2, with {{clear}}[edit]

Animal 2

?

Biome

Any location

Cannot be tamed
Butchering returns

Food items

Raw materials

There is too little information about this creature.
Please contribute if you can!

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: