Difference between revisions of "Template:TableFooter"

From Nookipedia, the Animal Crossing wiki
(preventing the notes part of the TableFooter from being placed in an overflow)
(adding category in the event that it is using an outdated item table; removing type from template.)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
==Usage==
 
==Usage==
To be used to close tables and divs created by [[Template:TableTop]].
+
To be used to close tables and divs created by [[Template:TableTop]]. The only optional parameter to note is '''note''', which is added at the bottom of the table in small, italicized font, usually for attribution purposes.
  
===Parameters===
+
Pages using '''div''' or '''type''' with the template will be tagged under [[:Category:Pages with outdated item tables|Category:Pages with outdated item tables]] and will have to be updated to use a TableTop template.
* '''div''' - Optional. div=false will remove <code><nowiki></div></nowiki></code> closing tags. Use this parameter if the table that is ending is not enclosed in a collapsible container.
 
* '''type''' - Optional. Acceptable parameters are fish, insect, and seafood and will create a small notice below the table about beginning/end date appearances.
 
* '''note''' - Optional. Accepts text, which is added at the bottom of the table in small, italicized font.
 
  
 
[[Category:Table templates]]
 
[[Category:Table templates]]
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
{{#switch: {{{type|}}} | fish | insect | seafood = {{(!}} align{{=}}"center" width{{=}}99% style{{=}}"text-align:center; {{roundy}}"
+
|}{{#ifeq: {{{div|}}} | false | | </div>}}{{#if: {{{note|}}} | <div style="padding: 7px; text-align:center; border-radius: 16px; width: 96%; margin: 0 auto; text-align:center; {{roundy}}><small>''{{{note|}}}''</small></div>}}{{#ifeq: {{{div|}}} | false | | </div>}}{{#if:{{{div|}}}{{{type|}}}|[[Category:Pages with outdated item tables]]}}</includeonly>
{{!}}* An asterisk indicates that the beginning or end date for appearance is about the 15th of that month.
 
{{!)}}
 
{{(!}} align{{=}}"center" {{!)}}}}
 
|}
 
{{#ifeq: {{{div|}}} | false | | </div>}}
 
{{#if: {{{note|}}} | <div class="color-{{{type|item}}}" style="padding: 7px; text-align:center; border-radius: 16px; width: 99%; margin: 0 auto; text-align:center; {{roundy}}><small>''{{{note|}}}''</small></div>}}
 
{{#ifeq: {{{div|}}} | false | | </div>}}</includeonly>
 

Revision as of 00:55, November 10, 2022

Usage

To be used to close tables and divs created by Template:TableTop. The only optional parameter to note is note, which is added at the bottom of the table in small, italicized font, usually for attribution purposes.

Pages using div or type with the template will be tagged under Category:Pages with outdated item tables and will have to be updated to use a TableTop template.