Difference between revisions of "Template:TableTop"
From Nookipedia, the Animal Crossing wiki
Dorsal Axe (talk | contribs) (Updating template to use new classes) |
PanchamBro (talk | contribs) m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<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;"> | <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 | }}"> |
+ | <div style="overflow: auto;"> | ||
{| {{#if: {{{sortable|}}} | class="sortable" | }} style="border-collapse:collapse !important; background:#fff; width:100%; border-radius: 12px;" cellpadding=7px | {| {{#if: {{{sortable|}}} | class="sortable" | }} style="border-collapse:collapse !important; background:#fff; width:100%; border-radius: 12px;" cellpadding=7px | ||
{{#forargs: column | {{#forargs: column | ||
Line 11: | Line 12: | ||
{{!}}-<noinclude> | {{!}}-<noinclude> | ||
|} | |} | ||
− | </div></div> | + | </div></div></div> |
==Usage== | ==Usage== | ||
Line 18: | Line 19: | ||
<pre> | <pre> | ||
{{TableTop | {{TableTop | ||
− | | | + | |type = item, bug, or fish (default is item) |
|title = | |title = | ||
|collapsible = (default is not collapsible) | |collapsible = (default is not collapsible) |
Latest revision as of 11:34, November 10, 2022
Please enter a table title
Usage
Tables should be closed with Template:TableFooter.
{{TableTop |type = item, bug, or fish (default is item) |title = |collapsible = (default is not collapsible) |collapsed = (default is not collapsed) |sortable = (default is not sortable) |column1 = |column2 = ... |columnX = }}