Template:Weapon/fr: Difference between revisions

From Vintage Story Wiki
No edit summary
Tag: Manual revert
(Updating to match new version of source page)
Line 1: Line 1:
<noinclude><languages /></noinclude>
<noinclude><languages />
</noinclude>
<includeonly>
<includeonly>
{|border="1" cellpadding="2" cellspacing="0" class="screwTemplatesMan" style="position:relative; border-radius:7px; font-size:90%; width:210px; float:right;"
{|border="1" cellpadding="2" cellspacing="0" class="screwTemplatesMan" style="position:relative; border-radius:7px; font-size:90%; width:200px; float:right;"


|-
|-
|bgcolor="#000000" colspan="2" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font>
|bgcolor="#000000" colspan="2" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font>
|-
|-
|bgcolor="#d3ab92" colspan=2 style="text-align: center"| {{{Image}}}
|bgcolor="#d3ab92" colspan=2 style="text-align: center"| [[{{{Image}}}|100px]]
|-
|-
| '''Durabilité''' || {{{Durability}}}
| '''<span lang="en" dir="ltr" class="mw-content-ltr">Durability</span>''' || {{{Durability}}}
{{tnt|Weapon/Attack
{{Weapon/Attack
|Power={{{Power}}}
|Power={{{Power}}}
|PowerThrown={{#if: {{{PowerThrown|}}} | {{{PowerThrown}}} }}
|PowerThrown={{#if: {{{PowerThrown|}}} | {{{PowerThrown}}} }}
|Range={{{Range}}}
|Range={{{Range}}} <span lang="en" dir="ltr" class="mw-content-ltr">m</span>
|Tier={{#if: {{{Tier|}}} | {{{Tier}}} }}
|Tier={{#if: {{{Tier|}}} | {{{Tier}}} }}
}}
}}


{{#if: {{{Wood|}}}{{{Plant|}}}{{{Leaves|}}} |
{{#if: {{{Wood|}}}{{{Plant|}}}{{{Leaves|}}} |
{{tnt|Tool/MiningSpeed
{{Tool/MiningSpeed
|Wood={{#if: {{{Wood|}}} | {{{Wood}}} }}
|Wood={{#if: {{{Wood|}}} | {{{Wood}}} }}
     |Plant={{#if: {{{Plant|}}} | {{{Plant}}} }}
     |Plant={{#if: {{{Plant|}}} | {{{Plant}}} }}
|Leaves={{#if: {{{Leaves|}}} | {{{Leaves}}} }}
|Leaves={{#if: {{{Leaves|}}} | {{{Leaves}}} }}
}} }}
}} }}


|-
|-
 
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Weapons|<font color="white">'''<span lang="en" dir="ltr" class="mw-content-ltr">Weapons</span>'''</font>]]
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Weapons|<font color="white">'''Armes'''</font>]]
|}{{#if:{{{NoBreak|}}}||{{-}} }}
|}
[[Category:Weapons{{#translation:}}]]
 
</includeonly>
</includeonly>


<noinclude>
<noinclude>
Template pour les armes.
{{Weapon
{{Weapon
|Name=Test
|Name=<span lang="en" dir="ltr" class="mw-content-ltr">Spear</span>
|Image=Help
|Image=<nowiki>File:Spear-copper.png</nowiki>
|Durability=100
|Durability=100
|Power=1.5
|Power=1.5
Line 44: Line 42:
|Plant=2.5
|Plant=2.5
|Leaves=2.2
|Leaves=2.2
|FloatRight=yes
|NoBreak=yes
}}
}}
<span lang="en" dir="ltr" class="mw-content-ltr">Template for weapons.</span>


{| class="wikitable"
{| class="wikitable"
|-
|-
! Paramètre !! Nécessaire ou Optionnel, Par défaut si applicable !! Exemple
! <span lang="en" dir="ltr" class="mw-content-ltr">Parameter</span> !! <span lang="en" dir="ltr" class="mw-content-ltr">Required or Optional, default if applicable</span> !! <span lang="en" dir="ltr" class="mw-content-ltr">Example</span>
|-
| ''Name'' || <span lang="en" dir="ltr" class="mw-content-ltr">Required</span> || <span lang="en" dir="ltr" class="mw-content-ltr">Sewn Linen</span>
|-
| ''Image'' || <span lang="en" dir="ltr" class="mw-content-ltr">Required</span> || <nowiki>[[File:Grid Sewn Linen Armor.png]]</nowiki>
|-
|-
| ''Name'' || Nécessaire || Sewn Linen
| ''Durability'' || <span lang="en" dir="ltr" class="mw-content-ltr">Required</span> || 100
|-
|-
| ''Image'' || Nécessaire || <nowiki>[[File:Grid Sewn Linen Armor.png]]</nowiki>
| ''Power'' || <span lang="en" dir="ltr" class="mw-content-ltr">Required</span> || 1.5
|-
|-
| ''Durability'' || Nécessaire || 100
| ''PowerThrown'' || <span lang="en" dir="ltr" class="mw-content-ltr">Optional</span> || 5.1
|-
|-
| ''Power'' || Nécessaire || 1.5
| ''Range'' || <span lang="en" dir="ltr" class="mw-content-ltr">Required</span> || 2.5
|-
|-
| ''PowerThrown'' || Optionnel || 5.1
| ''Tier'' || <span lang="en" dir="ltr" class="mw-content-ltr">Optional</span> || 3
|-
|-
| ''Range'' || Nécessaire || 2.5
| ''Wood'' || <span lang="en" dir="ltr" class="mw-content-ltr">Optional</span> || 2.6
|-
|-
| ''Tier'' || Optionnel || 3
| ''Plant'' || <span lang="en" dir="ltr" class="mw-content-ltr">Optional</span> || 2.5
|-
|-
| ''Wood'' || Optionnel || 2.0
| ''Leaves'' || <span lang="en" dir="ltr" class="mw-content-ltr">Optional</span> || 2.2
|-
|-
| ''Plant'' || Optionnel || 2.1
| ''FloatRight'' || <span lang="en" dir="ltr" class="mw-content-ltr">Optional</span> || <div lang="en" dir="ltr" class="mw-content-ltr">
Whether or not the box should float on the right side of the page
(so you don't have to use a <div></div> tag)
</div>
|-
|-
| ''Leaves'' || Optionnel || 2.2
| ''NoBreak'' || <span lang="en" dir="ltr" class="mw-content-ltr">Optional</span> || <span lang="en" dir="ltr" class="mw-content-ltr">Whether or not the item box should end in a line break</span>
 
|}
|}


[[Category:Infoboxes{{#translation:}}]]
[[Category:Infoboxes{{#translation:}}]]
</noinclude>
</noinclude>
<noinclude></noinclude>

Revision as of 07:11, 30 July 2023

Other languages:



Spear
[[File:Spear-copper.png|100px]]
Durabilité 100
Attaque
Puissance 1.5 pv
Puissance (Lancer) 5.1 pv
Portée 2.5 m
Niveau 3
Vitesse
Bois 2.6x
Plantes 2.5x
Feuillage 2.2x
Armes


Template for weapons.

Parameter Required or Optional, default if applicable Example
Name Required Sewn Linen
Image Required [[File:Grid Sewn Linen Armor.png]]
Durability Required 100
Power Required 1.5
PowerThrown Optional 5.1
Range Required 2.5
Tier Optional 3
Wood Optional 2.6
Plant Optional 2.5
Leaves Optional 2.2
FloatRight Optional

Whether or not the box should float on the right side of the page

(so you don't have to use a
tag)
NoBreak Optional Whether or not the item box should end in a line break