Year of the Dragon: Through June 26th, claim free Ground Bound Green Dragon Mount! Speak to Xatheral in the Hall of Heroes.
(April's reward of a free expansion or Greater Elixir of Discovery can still be claimed from Trilliya until June 4th.) edit

Game mechanicsNewbie guideIn developmentDDO StoreSocial Media


ChallengesClassesCollectablesCraftingEnhancementsEpic DestiniesFavorFeats

GlossaryItemsMapsMonstersPlacesQuestsRacesReincarnationSkillsSpells


Please create an account or log in to remove ads, build a reputation, and unlock more editing privileges and then visit DDO wiki's IRC Chat/Discord if you need any help!

Template:Collapsible table

From DDO wiki
Jump to navigation Jump to search

USAGE[edit]

The purpose of this table is to create a sortable table with a single row header that can be collapsed without affecting the sorting.

{{ Collapsible table | otc = class | collapsed = boolean | otc add = class | ots = style | ots add = style | itc = class | itc = addclass | its = style | its add = style | 1 | raw = boolean | 2 | n }}

  • Parameters:
  • otc:
    • purpose: Define custom classes for the outer table.
    • default: {{{otc|wikitable mw-collapsible {{#ifeq:{{IO|{{{collapsed|FALSE}}}}}|1|mw-collapsed}}} {{{otc add|display: inherit;}}}
  • collapsed:
    • type: boolean
      • default: FALSE
    • purpose: Define whether or not the inner table is hidden or shown.
  • otc add:
    • purpose: Add custom classes to the outer table.
  • ots:
    • purpose: Define custom styles for the outer table.
    • default: {{{ots|width: 100%; margin: 0px; {{{ots add|}}}}}}
  • ots add:
    • purpose: Add custom styles to the outer table.
  • itc:
    • purpose: Define custom classes for the inner table.
    • default: {{{itc|wikitable {{#ifeq:{{IO|{{{sortable|TRUE}}}}}|1|sortable}} {{{itc add|}}}}}}
  • itc add:
    • purpose: Add custom classes to the inner table.
  • its:
    • purpose: Define custom styles for the inner table.
    • default: {{{its|width: 100%; margin: 0px auto; {{{its add|display: inherit;}}}}}}
  • its add:
    • purpose: Add custom styles to the inner table.
  • implicit |1=:
    • purpose: The header to use for the table.
  • raw:
    • type: boolean
      • default: FALSE
    • purpose: If set to TRUE, doesn't assume each additional implicit parameter should be a regular row (see below code).
  • implicit |2= through |n=:
    • purpose: This is where the content for the inner table goes.
    • code: {{#ifeq:{{IO|{{{raw|FALSE}}}}}|1||<tr><td>}}{{#var:content}}{{#ifeq:{{IO|{{{raw|FALSE}}}}}|1||</td></tr>}}

CODING[edit]

{{{1}}}