Template:Affinity: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Fixed some values and defaults) |
(Support SS affinity) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{#pos: |
<includeonly>{{#if:{{#pos:ssabcd|{{lc:{{{1|}}}}}}}|[[File:Icon_mood_{{lc:{{{1|}}}}}.png|{{#if:{{{2|}}}|{{{2|}}}|20px}}|{{{valign|middle}}}|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}}. |
For unknown Values, it will be shown like {{Affinity|U}}. |
||
Line 8: | Line 8: | ||
"1": { |
"1": { |
||
"label": "Affinity", |
"label": "Affinity", |
||
"description": "The affinity value (s,a,b,c,d; |
"description": "The affinity value (ss,s,a,b,c,d; ss for best, d for worst)", |
||
"example": "a", |
"example": "a", |
||
"type": "string", |
"type": "string", |
||
Line 20: | Line 20: | ||
"type": "string", |
"type": "string", |
||
"default": "20px" |
"default": "20px" |
||
}, |
|||
"valign": { |
|||
"label": "Vertical alignment", |
|||
"description": "Defines the vertical alignment of the image", |
|||
"example": "top", |
|||
"type": "string", |
|||
"default": "middle" |
|||
} |
} |
||
}, |
}, |
Latest revision as of 03:06, 25 August 2021
Call it like {{Affinity|a}}
to show an affinity like .
For unknown Values, it will be shown like ?.
Creates a smiley symbol indicating the affinity of an attribute.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Affinity | 1 | The affinity value (ss,s,a,b,c,d; ss for best, d for worst)
| String | required |
Size | 2 | Defines the size of the icon
| String | optional |
Vertical alignment | valign | Defines the vertical alignment of the image
| String | optional |