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
(created)
 
m (Protected "Template:Catbox": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table class="listlinkbox noprint" style="float: right; border: 1px solid #aaa; background: #fff; margin: .3em .3em .3em 1em; padding: 3px; text-align: center;"><tr><th style="border: none; background: transparent;">
+
<table class="listlinkbox noprint" style="float: right; background: #fff; margin: .3em .3em .3em 1em; padding: 3px; text-align: center;"><tr><th style="border: none; background: transparent;">
 
<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><noinclude>[[Category:Navigation templates]]</noinclude>

Latest revision as of 22:34, 28 November 2023

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).