Error creating thumbnail: File missing
⚠ SITE UNDERGOING SCHEDULED MAINTENANCE ⚠
We are currently in the process of updating to the latest version of MediaWiki, alongside numerous other improvements.
Editing will be disabled starting on April 19, 2024 at 12:00 ET.
Complete all edits and save all work before this time or progress may be lost.
Editing is scheduled to be re-enabled before the end of April.

Template:WrappedDivTable

From Weezerpedia
Jump to: navigation, search
[edit]
Error creating thumbnail: File missing
Template documentation

Template:WrappedDivTable creates a custom, headerless wikitable with a dynamic number of rows, each with 1–5 columns. Cells automatically wrap to a new row each time the table's width is filled. Cell size and the number of columns is determined by screen size and the size of images included in each cell.

Usage

The formatting of this template is as follows (where '{contents}' is the content included in each cell, which may be one or multiple lines and may include images):

{{WrappedDivTable
|
{contents}
...
|
{contents}
}}

Note that each cell must be preceded by a pipe symbol (|), but not followed by one. The cell contents may begin on the same line as the pipe symbol, although doing this may make a page's code harder to read.

Example

Below is a demonstration of how this template will be rendered on a page (the width/size of the table may not be accurate).

Code:

{{WrappedDivTable
|
[[Image:Undonethumbtest.jpg|270px]]<br><br>
'''"[[Undone - The Sweater Song]]"'''<br>
Length: 0:00<br>
Director: [[Spike Jonze]]
|
[[Image:Undonethumbtest.jpg|270px]]<br><br>
'''"[[Undone - The Sweater Song]]"'''<br>
Length: 0:00<br>
Director: [[Spike Jonze]]
|
[[Image:Undonethumbtest.jpg|270px]]<br><br>
'''"[[Undone - The Sweater Song]]"'''<br>
Length: 0:00<br>
Director: [[Spike Jonze]]
|
[[Image:Undonethumbtest.jpg|270px]]<br><br>
'''"[[Undone - The Sweater Song]]"'''<br>
Length: 0:00<br>
Director: [[Spike Jonze]]
|
[[Image:Undonethumbtest.jpg|270px]]<br><br>
'''"[[Undone - The Sweater Song]]"'''<br>
Length: 0:00<br>
Director: [[Spike Jonze]]
|
[[Image:Undonethumbtest.jpg|270px]]<br><br>
'''"[[Undone - The Sweater Song]]"'''<br>
Length: 0:00<br>
Director: [[Spike Jonze]]
}}

Will display:

Error creating thumbnail: File missing


"Undone - The Sweater Song"
Length: 0:00
Director: Spike Jonze


Error creating thumbnail: File missing


"Undone - The Sweater Song"
Length: 0:00
Director: Spike Jonze

Error creating thumbnail: File missing


"Undone - The Sweater Song"
Length: 0:00
Director: Spike Jonze

Error creating thumbnail: File missing


"Undone - The Sweater Song"
Length: 0:00
Director: Spike Jonze

Error creating thumbnail: File missing


"Undone - The Sweater Song"
Length: 0:00
Director: Spike Jonze

Error creating thumbnail: File missing


"Undone - The Sweater Song"
Length: 0:00
Director: Spike Jonze
































































































Notes and limitations

There are some things that may need to be considered while working with this template:

  • This size of this table is set to be 80% of page width. Currently, there is no option to customize this value.
  • Cell sizes are optimized for images with a 16:9 ratio displayed with a size of 270px. Images that are too large may not display correctly or may cause visual issues with the table.
  • While this template supports non-uniform image sizes, it may cause errors or may not display correctly on all screens, and is advised against.
  • The number of cells has a soft limit of 100, although this can be changed in the template's code.
  • Other elements (such as images, infoboxes, or other tables) displayed inline with the table will cause misalignment, and should generally be avoided.

See also