Template:Affinity: Difference between revisions

From Blue Archive Wiki
Jump to navigation Jump to search
Content added Content deleted
(Forced Lower Case Letters For Image)
(Fixed some values and defaults)
Line 1:
<includeonly>{{#if:{{#pos:sabcd|{{lc:{{{1|}}}}}}}|[[File:Icon_mood_{{lc:{{{1|}}}}}.png|{{#if: {{{2|}}} | {{{2|}}} | 20px}}|class=affinity-icon|frameless|link=Affinity|alt={{uc:{{{1|}}}}}|{{uc:{{{1|}}}}} grade affinity]]|<span title="Unknown affinity">?</span>}}</includeonly><noinclude>Call it like <code><nowiki>{{Affinity|a}}</nowiki></code> to show an affinity like {{Affinity|a}}.
 
For unknown Values, it will be shown like {{Affinity|U}}.
 
<templatedata>
Line 13 ⟶ 15:
},
"2": {
"label": "Additional properties for the imageSize",
"description": "Defines additional properties for the image. Can be used to set the stylesize of the imageicon",
"example": "class=\"right-float\"40px",
"type": "unbalanced-wikitextstring",
"default": "20px"
}
},

Revision as of 12:58, 28 April 2021

Call it like {{Affinity|a}} to show an affinity like A.

For unknown Values, it will be shown like ?.

Creates a smiley symbol indicating the affinity of an attribute.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Affinity1

The affinity value (s,a,b,c,d; s for best, d for worst)

Example
a
Stringrequired
Size2

Defines the size of the icon

Default
20px
Example
40px
Stringoptional