Difference between revisions of "Template:TableTop"

From Nookipedia, the Animal Crossing wiki
m (Correcting category)
(Updating template to use new classes)
Line 1: Line 1:
<div class="table-{{{color|items}}} {{#if: {{{collapsible|}}} | mw-collapsible | }} {{#if: {{{collapsed|}}} | mw-collapsed | }}" style="margin:auto; padding: 7px; text-align:center; border-radius: 16px;">
+
<div class="tabletop {{#if: {{{collapsible|}}} | mw-collapsible | }} {{#if: {{{collapsed|}}} | mw-collapsed | }} color-{{{type|item}}}" style="margin:auto; padding: 7px; text-align:center; border-radius: 16px;">
 
<span style="text-align: center; font-weight: 600; padding:8px 0 10px 10px; font-size:1.05em;">{{{title|Please enter a table title}}}</span>
 
<span style="text-align: center; font-weight: 600; padding:8px 0 10px 10px; font-size:1.05em;">{{{title|Please enter a table title}}}</span>
 
<div class="{{#if: {{{collapsible|}}} | mw-collapsible-content | }}" style="overflow: auto;">
 
<div class="{{#if: {{{collapsible|}}} | mw-collapsible-content | }}" style="overflow: auto;">

Revision as of 07:25, April 10, 2021

Please enter a table title

Usage

Tables should be closed with Template:TableFooter.

{{TableTop
|color          = items, bug, or fish (default is items)
|title          = 
|collapsible    = (default is not collapsible)
|collapsed      = (default is not collapsed)
|sortable       = (default is not sortable)
|column1        =
|column2        =
...
|columnX        =
}}