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:Catbox"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (-border)
(link image as well)
Line 2: Line 2:
 
<div style="position: relative; width: 84px; height: 94px; overflow: hidden;">
 
<div style="position: relative; width: 84px; height: 94px; overflow: hidden;">
 
<div style="position: absolute; top: 16px; left: 0px; width:84px; overflow: hidden; z-index: 3;">[[:Category:{{{1|{{FULLPAGENAME}}}}}|View the<br>related<br>category]]</div>
 
<div style="position: absolute; top: 16px; left: 0px; width:84px; overflow: hidden; z-index: 3;">[[:Category:{{{1|{{FULLPAGENAME}}}}}|View the<br>related<br>category]]</div>
<div style="position: absolute; top: 0px; left: 0px; z-index: 2;">[[Image:catback.png]]</div>
+
<div style="position: absolute; top: 0px; left: 0px; z-index: 2;">[[Image:catback.png|link=:Category:{{{1|{{FULLPAGENAME}}}}}]]</div>
 
</div>
 
</div>
 
</th></tr></table>
 
</th></tr></table>
 
<noinclude>Usage:  
 
<noinclude>Usage:  
  
<nowiki>{{catbox | category}}</nowiki> creates a floating box linked to the given category.
+
<nowiki>{{catbox | cat}}</nowiki> creates a floating box linked to category "cat". (specifically, <nowiki>[[:Category:</nowiki>''cat'']])
  
<nowiki>{{catbox}}</nowiki> creates a floating box linked to the category with the same name as the current page
+
<nowiki>{{catbox}}</nowiki> creates a floating box linked to the category with the same name as the current page (including namespace).
 
</noinclude>
 
</noinclude>

Revision as of 19:25, 16 April 2013

Usage:

{{catbox | cat}} creates a floating box linked to category "cat". (specifically, [[:Category:cat]])

{{catbox}} creates a floating box linked to the category with the same name as the current page (including namespace).