Шаблон:Weapon type infobox — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
(Новая страница: «<includeonly><div class="infobox item"> <div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div> <p class="heading">Has…»)
 
 
(не показаны 2 промежуточные версии этого же участника)
Строка 1: Строка 1:
 
<includeonly><div class="infobox item">
 
<includeonly><div class="infobox item">
 
<div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div>
 
<div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div>
<p class="heading">[[Has canonical name::{{{name|{{PAGENAME}}}}}]]</p>
+
<p class="heading">[[Has canonical name::{{{name|{{PAGENAME}}}}}|{{rus lang|weapon|{{{name|{{PAGENAME}}}}}}}]]</p>
 
<div class="wrapper">
 
<div class="wrapper">
 
{{#if: {{{type|}}} |
 
{{#if: {{{type|}}} |
;Type
+
;Тип
:{{{type|}}} [[Weapon|weapon]] }}<!--
+
:{{#switch: {{lc:{{{type|}}}}}
 +
| one-handed = Одноручное [[weapon|оружие]]
 +
| main-hand = [[Weapon|Оружие]] в правой руке
 +
| off-hand = [[Weapon|Оружие]] в левой руке
 +
| two-handed = Двуручное [[weapon|оружие]]
 +
| aquatic = Подводное [[weapon|оружие]]}} }}<!--
 
-->{{#if: {{{used by|}}} {{{used by main|}}} {{{used by off|}}} |
 
-->{{#if: {{{used by|}}} {{{used by main|}}} {{{used by off|}}} |
;[[Weapon#Weapon usability by professions|Used by]]
+
;[[Weapon#Доступное оружие, по профессиям|Используют]]
:<div style="margin-bottom: .16em">{{#arraymap: {{{used by|}}} |;|@@@|{{profession|@@@}} [[{{ucfirst:@@@}}]]|<br>}}<!--
+
:<div style="margin-bottom: .16em">{{#arraymap: {{{used by|}}} |;|@@@|{{profession|@@@}} [[{{ucfirst:@@@}}|{{rus lang|profession|@@@}}]]|<br>}}<!--
-->{{#if: {{{used by main|}}} | <div style="margin: .16em 0"><small>'''Main-hand only:'''</small></div>{{#arraymap: {{{used by main|}}} |;|@@@|{{profession|@@@}} [[{{ucfirst:@@@}}]]|<br>}} }}<!--
+
-->{{#if: {{{used by main|}}} | <div style="margin: .16em 0"><small>'''Только в правой руке:'''</small></div>{{#arraymap: {{{used by main|}}} |;|@@@|{{profession|@@@}} [[{{ucfirst:@@@}}|{{rus lang|profession|@@@}}]]|<br>}} }}<!--
-->{{#if: {{{used by off |}}} | <div style="margin: .16em 0"><small>'''Off-hand only:'''</small></div>{{#arraymap:  {{{used by off |}}} |;|@@@|{{profession|@@@}} [[{{ucfirst:@@@}}]]|<br>}} }}</div> }}<!--
+
-->{{#if: {{{used by off |}}} | <div style="margin: .16em 0"><small>'''Только в левой руке:'''</small></div>{{#arraymap:  {{{used by off |}}} |;|@@@|{{profession|@@@}} [[{{ucfirst:@@@}}|{{rus lang|profession|@@@}}]]|<br>}} }}</div> }}<!--
 
-->{{#if: {{{crafted by|}}}  |
 
-->{{#if: {{{crafted by|}}}  |
;[[Crafting|Crafted by]]
+
;[[Crafting|Создает]]
:{{#arraymap: {{{crafted by|}}} |;|@@@|{{@@@}} [[{{ucfirst:@@@}}]]|<br>}} }}
+
:{{#arraymap: {{{crafted by|}}} |;|@@@|{{@@@}} [[{{ucfirst:@@@}}|{{rus lang|crafting discipline|@@@}}]]|<br>}} }}
 
</div>{{#if: {{{gallery1|}}}| <!-- Show gallery -->  
 
</div>{{#if: {{{gallery1|}}}| <!-- Show gallery -->  
 
{{{!}} style="width:100%"
 
{{{!}} style="width:100%"
! style="text-align:left;padding: .48em 0 0 .48em;" {{!}} Gallery
+
! style="text-align:left;padding: .48em 0 0 .48em;" {{!}} Галерея
 
{{!}}- style="text-align:center;"
 
{{!}}- style="text-align:center;"
{{!}} [[File:{{{gallery1|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery1-text|Click to enlarge}}}</p>
+
{{!}} [[File:{{{gallery1|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery1-text|Щелкните, чтобы увеличить}}}</p>
   {{#if: {{{gallery2|}}} | [[File:{{{gallery2|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery2-text|Click to enlarge}}}</p>
+
   {{#if: {{{gallery2|}}} | [[File:{{{gallery2|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery2-text|Щелкните, чтобы увеличить}}}</p>
}}{{#if: {{{gallery3|}}} | [[File:{{{gallery3|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery3-text|Click to enlarge}}}</p>
+
}}{{#if: {{{gallery3|}}} | [[File:{{{gallery3|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery3-text|Щелкните, чтобы увеличить}}}</p>
}}{{#if: {{{gallery4|}}} | [[File:{{{gallery4|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery4-text|Click to enlarge}}}</p>
+
}}{{#if: {{{gallery4|}}} | [[File:{{{gallery4|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery4-text|Щелкните, чтобы увеличить}}}</p>
}}{{#if: {{{gallery5|}}} | [[File:{{{gallery5|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery5-text|Click to enlarge}}}</p>
+
}}{{#if: {{{gallery5|}}} | [[File:{{{gallery5|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery5-text|Щелкните, чтобы увеличить}}}</p>
 
}}
 
}}
 
{{!}}}
 
{{!}}}

Текущая версия на 13:23, 7 ноября 2019

Description[править]

This infobox is used on weapon type overview pages, e.g. Axe, to specifiy the weapon usability and the crafting discipline.

Usage[править]

{{Weapon type infobox
| name = 
| description = 
| quotation = 
| type = 
| used by = 
| used by main = 
| used by off = 
| crafted by = 
| gallery1 = 
| gallery1-text = 
}}

Parameters[править]

name
Optional. Weapon type name. Defaults to the page name.
description
Optional. Description.
quotation
Optional. Description quotation.
type
Optional. Wielding type, either "One-handed", "Main-hand", "Off-hand", "Two-handed" or "Aquatic". Automatically displays the suffix weapon.
used by
Optional. List of professions or specializations, seperated by ";", that can use this two-handed weapon or this one-handed weapon.
used by main
Optional. List of professions or specializations, seperated by ";", that can use this one-handed weapon in main-hand only (use "used by" for main-hand only weapons, e.g. Scepter). Subheader Main-hand only.
used by off
Optional. List of professions or specializations, seperated by ";", that can use this one-handed weapon in off-hand only (use "used by" for off-hand only weapons, e.g. Shield). Subheader Off-hand only.
crafted by
Optional. List of crafting disciplines, seperated by ";", that can craft this weapon.
gallery1 ... gallery5
Optional. Gallery images.
gallery1-text ... gallery5-text
Optional. Gallery image descriptions.

Example[править]

{{Weapon type infobox
| name = Axe
| description = This is an axe.
| type = One-handed
| used by = Warrior; Ranger
| used by main = Firebrand; Necromancer; Mirage
| used by off = Revenant
| crafted by = Weaponsmith
| gallery1 = Axe concept art.jpg
| gallery1-text = Axe concept art.
}}
.

Топор

Тип
Одноручное оружие
Используют
Warrior icon small.png Воин
Ranger icon small.png Рейнджер
Только в правой руке:
Firebrand icon small.png Поджигатель
Necromancer icon small.png Некромант
Mirage icon small.png Мираж
Только в левой руке:
Revenant icon small.png Ревенант
Создает
Weaponsmith tango icon 20px.png Оружейник
Галерея
Axe concept art.jpg

Axe concept art.

This is an axe.

— Внутриигровое описание