Template:Affinity: Difference between revisions

Jump to navigation Jump to search
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}}.
<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>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu