Szablon:Multi-column list/doc

Z Terraria Wiki
Skocz do: nawigacja, szukaj

create a responsive multi-column list. Acceptable shortcut: {{mclist}}.

You can use {{mclist/options}} to change default value for option parameters.

Usage[edytuj kod]

Parameters:

  • All Unamed parameters: contents of every list item.
  • optional width: item width, accept any css width, default is 10em.
  • optional columns: Can be width value (will override width parameter) or column count.
  • optional gap: value for css column-gap attribute.
  • optional rule: value for css column-rule attribute.
  • optional class: css class(es).
  • optional id: id attribute.
  • optional css or style: custom css rules applied to list items.
  • optional boxcss or boxstyle: custom css rules applied to wrapper box.

Example[edytuj kod]

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

will result:

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

will result:

{{mclist|width=15em|boxcss=line-height: 3
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{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; padding: 1em;
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
|{{item|Handgun}}
|{{item|bunny}}
|{{item|butterfly}}
|{{item|Flamarang}}
|{{item|Handgun}}
|{{item|Hellstone Bar}}
|{{item|Fiery Greatsword}}
}}

will result:

See also[edytuj kod]