« Modèle:Skill bar » : différence entre les versions

De Wiki - La Calv
Aller à la navigation Aller à la recherche
(Page créée avec « {| style="background: {{{background|transparent}}}; {{ #if: {{{indent|}}} | {{ #ifeq: {{{indent}}} | center | margin: 0px auto; | margin-left: {{{indent}}}px; }} }} border: {{{outline|0}}}px solid {{{outlinecolor|#000}}}; text-align: center; border-collapse: collapse; font-size: smaller; line-height: 125%;" cellspacing="0" cellpadding="{{ #ifexpr: {{{size|64}}} > 48 | 2 | 1 }}" {{ #if: {{{emptyskills|}}} | {{ #if: {{{1|}}} | {{!}} style="vertical-align: top; wi... »)
 
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
{| style="background: {{{background|transparent}}}; {{ #if: {{{indent|}}} | {{ #ifeq: {{{indent}}} | center | margin: 0px auto; | margin-left: {{{indent}}}px; }} }} border: {{{outline|0}}}px solid {{{outlinecolor|#000}}}; text-align: center; border-collapse: collapse; font-size: smaller; line-height: 125%;" cellspacing="0" cellpadding="{{ #ifexpr: {{{size|64}}} > 48 | 2 | 1 }}"
{| style="background: {{{background|transparent}}}; {{ #if: {{{indent|}}} | {{ #ifeq: {{{indent}}} | center | margin: 0px auto; | margin-left: {{{indent}}}px; }} }} border: {{{outline|0}}}px solid {{{outlinecolor|#000}}}; text-align: center; border-collapse: collapse; font-size: smaller; line-height: 125%;" cellspacing="0" cellpadding="{{ #ifexpr: {{{size|64}}} > 48 | 2 | 1 }}"
{{ #if: {{{emptyskills|}}} |
{{ #if: {{{emptyskills|}}} |
   {{ #if: {{{1|}}} | {{!}} style="vertical-align: top; width: {{{size|64}}}px; border: {{ #switch: {{{border|dotted}}} | none = 0px solid | solid = 1px solid | direct = 0px solid | 1px dotted }} #444" {{!}} <div {{ #ifeq: {{{border|dotted}}} | direct | style="border: 1px solid #000" }}>[[File:{{ #if: {{{1}}} | {{{1}}} }}.png|{{{size|64}}}px|link={{{1}}}]]</div> {{ #if: {{{text|}}} | | {{{t1|[[{{{1}}}]]}}} }} }}
   {{ #if: {{{1|}}} | {{!}} style="vertical-align: top; width: {{{size|64}}}px; border: {{ #switch: {{{border|dotted}}} | none = 0px solid | solid = 1px solid | direct = 0px solid | 1px dotted }} #444" {{!}} <div {{ #ifeq: {{{border|dotted}}} | direct | style="border: 1px solid #000" }}>[[File:{{ #if: {{{1}}} | {{{1}}} }}_skill.png|{{{size|64}}}px|link={{{1}}}]]</div> {{ #if: {{{text|}}} | | {{{t1|[[{{{1}}}]]}}} }} }}
   {{ #if: {{{2|}}} | {{!}} style="vertical-align: top; width: {{{size|64}}}px; border: {{ #switch: {{{border|dotted}}} | none = 0px solid | solid = 1px solid | direct = 0px solid | 1px dotted }} #444" {{!}} <div {{ #ifeq: {{{border|dotted}}} | direct | style="border: 1px solid #000" }}>[[File:{{ #if: {{{2}}} | {{{2}}} }}.png|{{{size|64}}}px|link={{{2}}}]]</div> {{ #if: {{{text|}}} | | {{{t2|[[{{{2}}}]]}}} }} }}
   {{ #if: {{{2|}}} | {{!}} style="vertical-align: top; width: {{{size|64}}}px; border: {{ #switch: {{{border|dotted}}} | none = 0px solid | solid = 1px solid | direct = 0px solid | 1px dotted }} #444" {{!}} <div {{ #ifeq: {{{border|dotted}}} | direct | style="border: 1px solid #000" }}>[[File:{{ #if: {{{2}}} | {{{2}}} }}.png|{{{size|64}}}px|link={{{2}}}]]</div> {{ #if: {{{text|}}} | | {{{t2|[[{{{2}}}]]}}} }} }}
   {{ #if: {{{3|}}} | {{!}} style="vertical-align: top; width: {{{size|64}}}px; border: {{ #switch: {{{border|dotted}}} | none = 0px solid | solid = 1px solid | direct = 0px solid | 1px dotted }} #444" {{!}} <div {{ #ifeq: {{{border|dotted}}} | direct | style="border: 1px solid #000" }}>[[File:{{ #if: {{{3}}} | {{{3}}} }}.png|{{{size|64}}}px|link={{{3}}}]]</div> {{ #if: {{{text|}}} | | {{{t3|[[{{{3}}}]]}}} }} }}
   {{ #if: {{{3|}}} | {{!}} style="vertical-align: top; width: {{{size|64}}}px; border: {{ #switch: {{{border|dotted}}} | none = 0px solid | solid = 1px solid | direct = 0px solid | 1px dotted }} #444" {{!}} <div {{ #ifeq: {{{border|dotted}}} | direct | style="border: 1px solid #000" }}>[[File:{{ #if: {{{3}}} | {{{3}}} }}.png|{{{size|64}}}px|link={{{3}}}]]</div> {{ #if: {{{text|}}} | | {{{t3|[[{{{3}}}]]}}} }} }}

Version du 17 novembre 2023 à 14:52

Blank Blank Blank Blank Blank Blank Blank Blank

Description

{{ Skill bar
 | 1 = skill 1
 | 2 = skill 2
 | 3 = skill 3
 | 4 = skill 4
 | 5 = skill 5
 | 6 = skill 6
 | 7 = skill 7
 | 8 = skill 8
 | size = (icon size)
 | outline = (outline size)
 | outlinecolor = (outline color)
 | border = solid
 | background = (background color)
 | text = hide
 | emptyskills = hide
 | indent = (indent size / center)
}}

This template is used to generate Skill bars. For easier use of common styles, see Template:Skill bar preset.

Parameters

unnamed parameters 1 8
Optional. Skill names. Empty skills are set to Blank.
size
Optional. Skill icon size. (Default: 64)
outline
Optional. Skill bar outline size. (Default: 0)
outlinecolor
Optional. Color of the outline border (Default: black)
border
Optional. Sets the border art between skill icons. (Default: dotted)
none - no border
dotted - dotted border
solid - solid border
direct - direct image border
background
Optional. Color of the background (Default: transparent)
text
Optional. Hides text if set1.
emptyskills
Optional. Hides empty skills without showing Blank skill if set1.
indent
Optional. Sets the (left) margin. Accepts numeral values and center for an automatically centered align. (Default: 0)
parameters t1 t8
Optional. Skill texts.

1 Note that the actual value of these parameters is irrelevant, as long as one is provided.


Examples

General usage

Lajijou
Barrededonations
Words of Comfort Healer's Boon Heal Party Dismiss Condition Deny Hexes Rebirth
{{ Skill bar
 | 1 = Lajijou
 | 2 = Barrededonations
 | 3 = Words of Comfort
 | 4 = Healer's Boon
 | 5 = Heal Party
 | 6 = Dismiss Condition
 | 7 = Deny Hexes
 | 8 = Rebirth
}}


Short form

Lajijou
Barrededonations
Words of Comfort Healer's Boon Heal Party Dismiss Condition Deny Hexes Rebirth
{{ Skill bar | Lajijou | Barrededonations | Words of Comfort | Healer's Boon | Heal Party | Dismiss Condition | Deny Hexes | Rebirth }}


Usage of "size" parameter

Lajijou
Barrededonations
Words of Comfort Healer's Boon Heal Party Dismiss Condition Deny Hexes Rebirth
{{ Skill bar
 | 1 = Lajijou
 | 2 = Barrededonations
 | 3 = Words of Comfort
 | 4 = Healer's Boon
 | 5 = Heal Party
 | 6 = Dismiss Condition
 | 7 = Deny Hexes
 | 8 = Rebirth
 | size = 24
}}


Usage of "outline" & "outlinecolor" parameter

Lajijou
Barrededonations
Words of Comfort Healer's Boon Heal Party Dismiss Condition Deny Hexes Rebirth
{{ Skill bar
 | 1 = Lajijou
 | 2 = Barrededonations
 | 3 = Words of Comfort
 | 4 = Healer's Boon
 | 5 = Heal Party
 | 6 = Dismiss Condition
 | 7 = Deny Hexes
 | 8 = Rebirth
 | outline = 1
 | outlinecolor = #F00
}}


Usage of "border" parameter

Lajijou
Barrededonations
Words of Comfort Healer's Boon Heal Party Dismiss Condition Deny Hexes Rebirth
{{ Skill bar
 | 1 = Lajijou
 | 2 = Barrededonations
 | 3 = Words of Comfort
 | 4 = Healer's Boon
 | 5 = Heal Party
 | 6 = Dismiss Condition
 | 7 = Deny Hexes
 | 8 = Rebirth
 | border = solid
}}


Usage of "text" parameter

{{ Skill bar
 | 1 = Lajijou
 | 2 = Barrededonations
 | 3 = Words of Comfort
 | 4 = Healer's Boon
 | 5 = Heal Party
 | 6 = Dismiss Condition
 | 7 = Deny Hexes
 | 8 = Rebirth
 | text = hide
}}

Usage of "emptyskills" parameter : hide & show

Lajijou
Barrededonations
Words of Comfort Healer's Boon Blank Blank Blank Blank
{{ Skill bar
 | 1 = Lajijou
 | 2 = Barrededonations
 | 3 = Words of Comfort
 | 4 = Healer's Boon
}}
Lajijou
Barrededonations
Words of Comfort Healer's Boon
{{ Skill bar
 | 1 = Lajijou
 | 2 = Barrededonations
 | 3 = Words of Comfort
 | 4 = Healer's Boon
 | emptyskills = hide
}}


Usage of "indent" parameter

{{ Skill bar
 | 1 = Lajijou
 | 2 = Barrededonations
 | 3 = Words of Comfort
 | 4 = Healer's Boon
 | 5 = Heal Party
 | 6 = Dismiss Condition
 | 7 = Deny Hexes
 | 8 = Rebirth
 | text = hide
 | indent = 50
}}
{{ Skill bar
 | 1 = Lajijou
 | 2 = Barrededonations
 | 3 = Words of Comfort
 | 4 = Healer's Boon
 | 5 = Heal Party
 | 6 = Dismiss Condition
 | 7 = Deny Hexes
 | 8 = Rebirth
 | text = hide
 | indent = center
}}


Usage of "border = direct" parameter

Lajijou
Barrededonations
Words of Comfort Healer's Boon Heal Party Dismiss Condition Deny Hexes Rebirth
{{ Skill bar
 | 1 = Lajijou
 | 2 = Barrededonations
 | 3 = Words of Comfort
 | 4 = Healer's Boon
 | 5 = Heal Party
 | 6 = Dismiss Condition
 | 7 = Deny Hexes
 | 8 = Rebirth
 | outline = 1
 | border = direct
}}


Example: Mini skill bar

{{ Skill bar
 | 1 = Lajijou
 | 2 = Barrededonations
 | 3 = Words of Comfort
 | 4 = Healer's Boon
 | 5 = Heal Party
 | 6 = Dismiss Condition
 | 7 = Deny Hexes
 | 8 = Rebirth
 | size = 24
 | outline = 1
 | border = direct
 | text = hide
}}