Template:BlockSprite/doc: Difference between revisions

From BTA-Mirror
imported>Ttv pedro270707
mNo edit summary
imported>Ttv pedro270707
mNo edit summary
Line 9: Line 9:
| <code>link</code> || <code>y</code>, <code>n</code>, <code>link</code> || If set to y, it will use the block's ID.
| <code>link</code> || <code>y</code>, <code>n</code>, <code>link</code> || If set to y, it will use the block's ID.
|-
|-
| <code>name</code> || <code>name</code> || The name included after the block.
| <code>name</code> || <code>y</code>, <code>n</code>, <code>name</code> || The name included after the block. If set to y, it will use the block's ID.
|}
|}


Line 32: Line 32:


{{BlockSprite|Stone|name=Awesome block}}
{{BlockSprite|Stone|name=Awesome block}}
[[Category:Pages using DynamicPageList3 dplvar parser function]]

Revision as of 04:55, 12 March 2023

This template allows the creation of block sprites.

Arguments

Argument Value Note
1 ID The block's name to be used as an ID.
link y, n, link If set to y, it will use the block's ID.
name y, n, name The name included after the block. If set to y, it will use the block's ID.

Usage

{{BlockSprite|Stone}} gives:

{{BlockSprite|Stone|link=y}} gives:

{{BlockSprite|Stone|link=Steel Ingot}} gives:

{{BlockSprite|Stone|name=Awesome block|link=Steel Ingot}} gives:

Awesome block

{{BlockSprite|Stone|name=Awesome block}} gives:

Awesome block