Template:Affinity: Difference between revisions
Added some documentation and examples
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:
<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}}.
<templatedata>
{
"params": {
"1": {
"label": "Affinity",
"description": "The affinity value (s,a,b,c,d; s for best, d for worst)",
"example": "a",
}}▼
"type": "string",
"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>
|