Template:Multi-column list

From Thorium Mod Wiki
Jump to: navigation, search
Template-info.svg Documentation The documentation below is transcluded from Template:Multi-column list/doc. (edit | history)

This template is used to create a responsive multi-column list. An acceptable shortcut is: {{mclist}}.

Usage

Parameters:

  • All Unamed parameters: contents of every list item.
  • optional width: item width, accept any css width, default is 10em.
  • optional class: css class(es).
  • optional css or style: custom css rules applied to list items.
  • optional boxcss or boxstyle: custom css rules applied to wrapper box.

Example

{{mclist
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
}}

will result:

{{mclist|width=30em
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
}}

will result:

{{mclist|width=15em|boxcss=line-height: 3
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
}}

will result:

{{mclist|width=15em|css=border-bottom: 1px solid #808080;|boxcss=border: 2px solid green;
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
}}

will result: