Difference between revisions of "User:Studenterhue/Template:MaterialsByPropertyTableHeader"

From Space Station 13 Wiki
Jump to navigation Jump to search
(Another one of those first-step things)
 
(Add a caption so expand link doesn't collide into Notes column)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable sortable"
<includeonly>{| class="wikitable sortable mw-collapsible"
|+ All Materials by Property
|-
|-
! Material !! Radioactivity !! Electrical Conductivity || Thermal Conductivity !! Hardness !! Density !! Flammability !! Chemical Resistance !! Reflectivity !! Notes
! Material  
! Radioactivity  
! Electrical Conductivity  
! Thermal Conductivity  
! Hardness  
! Density  
! Flammability  
! Chemical Resistance  
! Reflectivity  
! class="unsortable" | Notes
</includeonly><noinclude>{{User:Studenterhue/Template:MaterialsByPropertyTableHeader/Documentation}} <!--[[Category:Decorative Templates]]--></noinclude>

Latest revision as of 07:28, 23 October 2023

This template is used to document properties of various materials. It automatically creates a wikitable-style table header that contains columns for name of the material, notes, and material properties, namely:

  • Chemical Resistance
  • Density
  • Electrical Conductivity
  • Flammability
  • Hardness
  • Radioactivity
  • Reflectivity
  • Thermal Conductivity

Every column except the notes column is sortable. The header also creates a table that is collapsible, which is open by default. When collapsed, there is a caption that says "All Materials by Property" with an [Expand] link next to it; the caption persists when expanded, but the link says [Collapse] instead.

This is meant to be used alongside Template:MaterialsByPropertyTableRow. That template is used to document each material's property; this one sets up the table for it. Both templates are primarily meant to be used on the Ore Processing page, as an appendix showing properties for each and every material. Theoretically, though, you could use this on other pages.

Usage

{{MaterialsByPropertyTableHeader}}

(insert MaterialsByPropertyTableRow templates here)

|}

Parameters

This template has no parameters.

Be forewarned: this template does not add the table end markup (|}). If you aren't copying and pasting the samples above, you need to add it after the template!