Template:LikesData/doc

Info
Template:LikesData can be used to insert a Monster's Likes in the form of a table, or be used to insert a table row into an existing table.

While exact output varies (see Usage below), in general the template will insert a table-style display showing the Monster, its Likes, and the levels required for those liked items.

Usage
{{WublinsByEggInfo|text=1|table=1|expr=1|Monster name|Liked item|Level required for likes item|Item 2|Level 2|...|...

The 'text', 'table' and 'expr' named parameters are optional. They can be specified anywhere in the template call, but for clarity should be specified at the beginning.

Usage when inserting table rows
By default, the template is written to output only a table row, so that a minimum of text is required when using the template inside an existing table. This also makes it easy to include the template multiple times to insert multiple rows. Note: Due to mediawiki limitations, the output rows use HTML formatting, and can only be included in HTML table definitions.

Example of table row output:

Usage when inserting a full table
If the template is used on a page as part of discussion on a particular monster's likes, and no surrounding table code exists, you can specify table=1 to have the template insert the appropriate table code.

Example of table output:

Level link
If desired, the first 'level' indication can link to the Experience page, by adding exp=1. This should only be done on pages that don't already link to the Experience page, and/or only to the first row inserted into a table through this template.

Example of level link:

Usage when inserting a full table and text
If the template is used on its own, for example on a Monster's information page, the template can be made to insert the appropriate 'Likes' header and explanatory text by specifying text=1. The below example will insert a header into this documentation page which will automatically show in its Table of Contents.

Example of text and table output:

Restrictions
The template is currently coded for a maximum of 8 Likes. Any additional likes in the template call will be ignored. The template presumes that for each liked item, there exists as a page called item, and an image item.png. Missing pages will result in red links, missing images will result in missing image errrors.