« Modèle:Skill bar » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
(7 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
<table 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: {{{showheader|}}} | | ||
<tr> | |||
<th>Arme</th> | |||
<th>Calv</th> | |||
<th colspan="5" style="text-align:center;">Items</th> | |||
<th>Fam attaque</th> | |||
<th>Fam défense</th> | |||
{{ #if: {{{emptyskills|}}} | | </tr> | ||
}} | |||
{{ #if: {{{emptyskills|}}} | | |||
{{ #if: {{{1|}}} | | |||
<td 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}}}]]}}} }} | |||
</td> | |||
}} | |||
{{ #if: {{{2|}}} | | |||
<td 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}}} }}_skill.png|{{{size|64}}}px|link={{{2}}}]]</div> {{ #if: {{{text|}}} | | {{{t2|[[{{{2}}}]]}}} }} | ||
</td> | |||
}} | |||
{{ #if: {{{3|}}} | | |||
<td 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}}} }}_skill.png|{{{size|64}}}px|link={{{3}}}]]</div> {{ #if: {{{text|}}} | | {{{t3|[[{{{3}}}]]}}} }} | |||
</td> | |||
}} | |||
{{ #if: {{{4|}}} | | |||
<td 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: {{{4}}} | {{{4}}} }}_skill.png|{{{size|64}}}px|link={{{4}}}]]</div> {{ #if: {{{text|}}} | | {{{t4|[[{{{4}}}]]}}} }} | ||
</td> | |||
}} | |||
{{ #if: {{{5|}}} | | |||
<td 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: {{{5}}} | {{{5}}} }}_skill.png|{{{size|64}}}px|link={{{5}}}]]</div> {{ #if: {{{text|}}} | | {{{t1|[[{{{5}}}]]}}} }} | |||
</td> | |||
}} | |||
{{ #if: {{{6|}}} | | |||
<td 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: {{{6}}} | {{{6}}} }}_skill.png|{{{size|64}}}px|link={{{6}}}]]</div> {{ #if: {{{text|}}} | | {{{t6|[[{{{6}}}]]}}} }} | |||
</td> | |||
}} | |||
{{ #if: {{{7|}}} | | |||
<td 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: {{{7}}} | {{{7}}} }}_skill.png|{{{size|64}}}px|link={{{7}}}]]</div> {{ #if: {{{text|}}} | | {{{t7|[[{{{7}}}]]}}} }} | |||
</td> | |||
}} | |||
{{ #if: {{{8|}}} | | |||
<td 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: {{{8}}} | {{{8}}} }}_skill.png|{{{size|64}}}px|link={{{8}}}]]</div> {{ #if: {{{text|}}} | | {{{t8|[[{{{8}}}]]}}} }} | |||
</td> | |||
}} | |||
{{ #if: {{{9|}}} | | |||
<td 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: {{{9}}} | {{{9}}} }}_skill.png|{{{size|64}}}px|link={{{9}}}]]</div> {{ #if: {{{text|}}} | | {{{t9|[[{{{9}}}]]}}} }} | |||
</td> | |||
}} | |||
| | |||
<td 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}}} | Blank }}_skill.png|{{{size|64}}}px|link={{{1|Blank}}}]]</div> {{ #if: {{{text|}}} | | {{{t1|[[{{{1|Blank}}}]]}}} }} | |||
</td> | |||
<td 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}}} | Blank }}_skill.png|{{{size|64}}}px|link={{{2|Blank}}}]]</div> {{ #if: {{{text|}}} | | {{{t2|[[{{{2|Blank}}}]]}}} }} | |||
</td> | |||
<td 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}}} | Blank }}_skill.png|{{{size|64}}}px|link={{{3|Blank}}}]]</div> {{ #if: {{{text|}}} | | {{{t3|[[{{{3|Blank}}}]]}}} }} | |||
</td> | |||
<td 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: {{{4|}}} | {{{4}}} | Blank }}_skill.png|{{{size|64}}}px|link={{{4|Blank}}}]]</div> {{ #if: {{{text|}}} | | {{{t4|[[{{{4|Blank}}}]]}}} }} | |||
</td> | |||
<td 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: {{{5|}}} | {{{5}}} | Blank }}_skill.png|{{{size|64}}}px|link={{{5|Blank}}}]]</div> {{ #if: {{{text|}}} | | {{{t5|[[{{{5|Blank}}}]]}}} }} | |||
</td> | |||
<td 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: {{{6|}}} | {{{6}}} | Blank }}_skill.png|{{{size|64}}}px|link={{{6|Blank}}}]]</div> {{ #if: {{{text|}}} | | {{{t6|[[{{{6|Blank}}}]]}}} }} | |||
</td> | |||
<td 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: {{{7|}}} | {{{7}}} | Blank }}_skill.png|{{{size|64}}}px|link={{{7|Blank}}}]]</div> {{ #if: {{{text|}}} | | {{{t7|[[{{{7|Blank}}}]]}}} }} | |||
</td> | |||
<td 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: {{{8|}}} | {{{8}}} | Blank }}_skill.png|{{{size|64}}}px|link={{{8|Blank}}}]]</div> {{ #if: {{{text|}}} | | {{{t1|[[{{{8|Blank}}}]]}}} }} | |||
</td> | |||
<td 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: {{{9|}}} | {{{9}}} | Blank }}_skill.png|{{{size|64}}}px|link={{{9|Blank}}}]]</div> {{ #if: {{{text|}}} | | {{{t1|[[{{{9|Blank}}}]]}}} }} | |||
</td> | |||
}} | |||
</table><noinclude> | |||
== Description == | == Description == | ||
Ligne 50 : | Ligne 106 : | ||
| emptyskills = hide | | emptyskills = hide | ||
| indent = (indent size / center) | | indent = (indent size / center) | ||
| showheader = yes | |||
}}</nowiki></pre> | }}</nowiki></pre> | ||
Ligne 79 : | Ligne 136 : | ||
; ''parameters'' t1 ''–'' t9 | ; ''parameters'' t1 ''–'' t9 | ||
: Optional. Skill texts. | : Optional. Skill texts. | ||
; showheader | |||
: Optional. Show header of skills. | |||
<sup>1</sup> Note that the actual value of these parameters is irrelevant, as long as one is provided. | <sup>1</sup> Note that the actual value of these parameters is irrelevant, as long as one is provided. | ||
Ligne 96 : | Ligne 155 : | ||
| 8 = Marohm | | 8 = Marohm | ||
| 9 = Boubou | | 9 = Boubou | ||
| showheader = yes | |||
}} | }} | ||
<pre><nowiki>{{ Skill bar | <pre><nowiki>{{ Skill bar | ||
Ligne 107 : | Ligne 167 : | ||
| 8 = Marohm | | 8 = Marohm | ||
| 9 = Boubou | | 9 = Boubou | ||
| showheader = yes | |||
}}</nowiki></pre> | }}</nowiki></pre> | ||
=== Short form === | === Short form === | ||
{{ Skill bar | La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Planche de wengé | Ecrou serti | Coquetier en cocotier | Marohm | Boubou }} | {{ Skill bar | La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Planche de wengé | Ecrou serti | Coquetier en cocotier | Marohm | Boubou | showheader=yes }} | ||
<pre><nowiki>{{ Skill bar | La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Planche de wengé | Ecrou serti | Coquetier en cocotier | Marohm | Boubou }}</nowiki></pre> | <pre><nowiki>{{ Skill bar | La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Planche de wengé | Ecrou serti | Coquetier en cocotier | Marohm | Boubou | showheader=yes }}</nowiki></pre> | ||
Dernière version du 19 novembre 2023 à 22:34
Blank | Blank | Blank | Blank | Blank | Blank | Blank | Blank | Blank |
Description
{{ Skill bar | calv = skill 1 | arme = skill 2 | 1 = skill 3 | 2 = skill 4 | 3 = skill 5 | 4 = skill 6 | 5 = skill 7 | famatk = skill 8 | famdef = skill 9 | size = (icon size) | outline = (outline size) | outlinecolor = (outline color) | border = solid | background = (background color) | text = hide | emptyskills = hide | indent = (indent size / center) | showheader = yes }}
This template is used to generate Skill bars. For easier use of common styles, see Template:Skill bar preset.
Parameters
- unnamed parameters 1 – 9
- 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 – t9
- Optional. Skill texts.
- showheader
- Optional. Show header of skills.
1 Note that the actual value of these parameters is irrelevant, as long as one is provided.
Examples
General usage
Arme | Calv | Items | Fam attaque | Fam défense | ||||
---|---|---|---|---|---|---|---|---|
La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Planche de wengé | Ecrou serti | Coquetier en cocotier | Marohm | Boubou |
{{ Skill bar | 1 = La Jijou | 2 = Barre de donations | 3 = Boule de cristal | 4 = Cire d'abeille | 5 = Planche de wengé | 6 = Ecrou serti | 7 = Coquetier en cocotier | 8 = Marohm | 9 = Boubou | showheader = yes }}
Short form
Arme | Calv | Items | Fam attaque | Fam défense | ||||
---|---|---|---|---|---|---|---|---|
La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Planche de wengé | Ecrou serti | Coquetier en cocotier | Marohm | Boubou |
{{ Skill bar | La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Planche de wengé | Ecrou serti | Coquetier en cocotier | Marohm | Boubou | showheader=yes }}
Usage of "size" parameter
La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Planche de wengé | Ecrou serti | Coquetier en cocotier | Marohm | Boubou |
{{ Skill bar | 1 = La Jijou | 2 = Barre de donations | 3 = Boule de cristal | 4 = Cire d'abeille | 5 = Planche de wengé | 6 = Ecrou serti | 7 = Coquetier en cocotier | 8 = Marohm | 9 = Boubou | size = 24 }}
Usage of "outline" & "outlinecolor" parameter
La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Planche de wengé | Ecrou serti | Coquetier en cocotier | Marohm | Boubou |
{{ Skill bar | 1 = La Jijou | 2 = Barre de donations | 3 = Boule de cristal | 4 = Cire d'abeille | 5 = Planche de wengé | 6 = Ecrou serti | 7 = Coquetier en cocotier | 8 = Marohm | 9 = Boubou | outline = 1 | outlinecolor = #F00 }}
Usage of "border" parameter
La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Planche de wengé | Ecrou serti | Coquetier en cocotier | Marohm | Boubou |
{{ Skill bar | 1 = La Jijou | 2 = Barre de donations | 3 = Boule de cristal | 4 = Cire d'abeille | 5 = Planche de wengé | 6 = Ecrou serti | 7 = Coquetier en cocotier | 8 = Marohm | 9 = Boubou | border = solid }}
Usage of "text" parameter
{{ Skill bar | 1 = La Jijou | 2 = Barre de donations | 3 = Boule de cristal | 4 = Cire d'abeille | 5 = Planche de wengé | 6 = Ecrou serti | 7 = Coquetier en cocotier | 8 = Marohm | 9 = Boubou | text = hide }}
Usage of "emptyskills" parameter : hide & show
La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Blank | Blank | Blank | Blank | Blank |
{{ Skill bar | 1 = La Jijou | 2 = Barre de donations | 3 = Boule de cristal | 4 = Cire d'abeille }}
La Jijou | Barre de donations | Boule de cristal | Cire d'abeille |
{{ Skill bar | 1 = La Jijou | 2 = Barre de donations | 3 = Boule de cristal | 4 = Cire d'abeille | emptyskills = hide }}
Usage of "indent" parameter
{{ Skill bar | 1 = La Jijou | 2 = Barre de donations | 3 = Boule de cristal | 4 = Cire d'abeille | 5 = Planche de wengé | 6 = Ecrou serti | 7 = Coquetier en cocotier | 8 = Marohm | 9 = Boubou | text = hide | indent = 50 }}
{{ Skill bar | 1 = La Jijou | 2 = Barre de donations | 3 = Boule de cristal | 4 = Cire d'abeille | 5 = Planche de wengé | 6 = Ecrou serti | 7 = Coquetier en cocotier | 8 = Marohm | 9 = Boubou | text = hide | indent = center }}
Usage of "border = direct" parameter
La Jijou | Barre de donations | Boule de cristal | Cire d'abeille | Planche de wengé | Ecrou serti | Coquetier en cocotier | Marohm | Boubou |
{{ Skill bar | 1 = La Jijou | 2 = Barre de donations | 3 = Boule de cristal | 4 = Cire d'abeille | 5 = Planche de wengé | 6 = Ecrou serti | 7 = Coquetier en cocotier | 8 = Marohm | 9 = Boubou | outline = 1 | border = direct }}
Example: Mini skill bar
{{ Skill bar | 1 = La Jijou | 2 = Barre de donations | 3 = Boule de cristal | 4 = Cire d'abeille | 5 = Planche de wengé | 6 = Ecrou serti | 7 = Coquetier en cocotier | 8 = Marohm | 9 = Boubou | size = 24 | outline = 1 | border = direct | text = hide }}