Difference between revisions of "Template:InlineItemImage"

From TFC:TNG
Jump to navigation Jump to search
(Trying to fix extra new lines....)
 
Line 1: Line 1:
 
<includeonly><span {{#if: {{{background|}}} | style="background: #8b8b8b; margin: -2px 0 0 -4px; border-style: solid solid solid solid; border-top-color: #5f5f5f; border-left-color: #5f5f5f; width: 32px; padding-top: 6.5px;
 
<includeonly><span {{#if: {{{background|}}} | style="background: #8b8b8b; margin: -2px 0 0 -4px; border-style: solid solid solid solid; border-top-color: #5f5f5f; border-left-color: #5f5f5f; width: 32px; padding-top: 6.5px;
padding-bottom: 9.5px;"}} > {{#ifexist: File:{{{1|}}}.png|[[File:{{{1}}}.png|32px{{#if:{{{2|}}}|{{!}}link={{{2}}} }}]]|[[File:No_block_image.png|32px|link=File:{{{1}}}.png]]}} {{#if: {{{background|}}} | </span> }}</includeonly>
+
padding-bottom: 9.5px;"}} > {{#ifexist: File:{{{1|}}}.png|[[File:{{{1}}}.png|32px{{#if:{{{2|}}}|{{!}}link={{{2}}} }}]]|[[File:No_block_image.png|32px|link=File:{{{1}}}.png]]}} </span></includeonly>
 
 
 
<noinclude>
 
<noinclude>
 
=Template Data=
 
=Template Data=

Latest revision as of 05:05, 29 January 2020


Template Data

Adds an inline texture to any content line! Has optional background.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
File Name1

File used as the image, Will be scaled to 32px. Missing files will use the missing block texture.

Filerequired
Page Link2

Page this icon links to.

Pagerequired
Backgroundbackground

Does this need a background?

Booleansuggested

Examples

{{InlineItemImage|Oak Log|Log}}

words words words Oak Log.png is good!

{{InlineItemImage|Oak Log|Log|background=sure}}

Look mawh, Oak Log.png I have a background!

{{InlineItemImage|Nope Log|Log|background=}}

and now I don't No block image.png sad face.