Template:Affinity: Difference between revisions

From Blue Archive Wiki
Jump to navigation Jump to search
Content added Content deleted
m (Link to page "Affinity". The (future) page should explain what affinity is and how it affects the gameplay)
(Added some documentation and examples)
Line 1: Line 1:
<includeonly>[[File:Icon_mood_{{{1|}}}.png|{{#if: {{{2|}}} | {{{2|}}} | 20px}}|frameless|link=Affinity|alt={{uc:{{{1|}}}}}|{{uc:{{{1|}}}}} grade affinity]]</includeonly><noinclude>Call it like <code><nowiki>{{Affinity|a}}</nowiki></code> to show an affinity like {{Affinity|a}}.
<includeonly>

{{#switch: {{lc: {{{1|}}}}}
<templatedata>
| s = [[File:Icon_mood_s.png|{{#if: {{{2|}}} | {{{2|}}} | 20px}}|link=Affinity|S]]
{
| a = [[File:Icon_mood_a.png|{{#if: {{{2|}}} | {{{2|}}} | 20px}}|link=Affinity|A]]
"params": {
| b = [[File:Icon_mood_b.png|{{#if: {{{2|}}} | {{{2|}}} | 20px}}|link=Affinity|B]]
"1": {
| c = [[File:Icon_mood_c.png|{{#if: {{{2|}}} | {{{2|}}} | 20px}}|link=Affinity|C]]
"label": "Affinity",
| d = [[File:Icon_mood_d.png|{{#if: {{{2|}}} | {{{2|}}} | 20px}}|link=Affinity|D]]
"description": "The affinity value (s,a,b,c,d; s for best, d for worst)",
|
"example": "a",
}}
"type": "string",
</includeonly>
"required": true,
"suggested": true
},
"2": {
"label": "Additional properties for the image",
"description": "Defines additional properties for the image. Can be used to set the style of the image",
"example": "class=\"right-float\"",
"type": "unbalanced-wikitext"
}
},
"description": "Creates a smiley symbol indicating the affinity of an attribute.",
"format": "inline"
}
</templatedata></noinclude>

Revision as of 11:06, 28 April 2021

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

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
Additional properties for the image2

Defines additional properties for the image. Can be used to set the style of the image

Example
class="right-float"
Unbalanced wikitextoptional