Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Πρότυπο:EntityLink/doc

Από Minecraft Wiki
Μετάβαση σε: πλοήγηση, αναζήτηση
This is the documentation page, it should be transcluded into the main template page. See Πρότυπο:Documentation for more information
Lua logo.svg
This template uses Module:Sprite, with data stored in Module:EntitySprite and Module:EntitySprite/IDs.
These scripts are written in Lua. Please see wp:Lua and mw:Extension:Scribunto to learn more.

This templates creates a page link with an associated sprite image on the left side using the IDs from Template:EntitySprite.

Parameters[επεξεργασία κώδικα]

Name Usage
{{{1}}} Set the defaults for all other parameters
{{{id}}} Sets the sprite. Spaces within this parameter are replaced with dashes and letters are made lowercase.
Value may be a name or a number, though names are preferred
{{{link}}} Set the page to link, supports internal and external links
If set to none, no link will be added
{{{text}}} or {{{2}}} Sets the text to be displayed

Examples[επεξεργασία κώδικα]

Code Result
{{EntityLink|Creeper}}
Creeper
{{EntityLink|Lightning}}
Lightning
{{EntityLink|TNT|Primed TNT}}
Primed TNT
{{EntityLink|id=fishing-rod|Fishing Rod|Fishing Rod Bobber}}
Fishing Rod Bobber

Full List[επεξεργασία κώδικα]

Here is a full list of sprites: Lua error in ...ribunto/includes/engines/LuaCommon/lualib/mwInit.lua at line 23: bad argument #1 to 'old_ipairs' (table expected, got nil).

See also[επεξεργασία κώδικα]