Module:Ingredient link list/doc

Jump to navigation Jump to search
This is the documentation page. It is transcluded into Module:Ingredient link list. See Template:Documentation for more information.

Create an ingredient link list which compatiable with UI table templates.

This module shouldn't be invoked directly in articles, use templates to invoke instead, following parameters should be set:

  • |firstarg=: Optional, number. Indicates which anonymous parameter should be processed first, based on their index. Defaults to 1.
  • |maxargs=: Optional (required when |firstarg= is equals to or greater than 2, or return error code 2), number. Limits how many anonymous parameters should be processed. If unset, it will detect total numbers of anonymous parameters, and the last anonymous parameter will be excluded.
  • |sep=: Optional, string. Set a seperator character. If unset, ; will used.
  • (Anonymous Parameters): Strings. Source strings to create links, each part should be seperated by |sep=. The first anonymous parameter is required, or returns error code 1.

Entry points:

  • main: For template invocation.
  • genlink: For module invocation.