Шаблон:Weapon type infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) (Новая страница: «<includeonly><div class="infobox item"> <div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div> <p class="heading">Has…») |
Blood (обсуждение | вклад) |
||
Строка 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|}}} [[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#Доступное оружие, по профессиям|Использование]] |
− | :<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>''' | + | -->{{#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>''' | + | -->{{#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| | + | ;[[Crafting|Создание]] |
:{{#arraymap: {{{crafted by|}}} |;|@@@|{{@@@}} [[{{ucfirst:@@@}}]]|<br>}} }} | :{{#arraymap: {{{crafted by|}}} |;|@@@|{{@@@}} [[{{ucfirst:@@@}}]]|<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;" {{!}} | + | ! 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| | + | {{!}} [[File:{{{gallery1|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery1-text|Щелкните, чтобы увеличить}}}</p> |
− | {{#if: {{{gallery2|}}} | [[File:{{{gallery2|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery2-text| | + | {{#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| | + | }}{{#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| | + | }}{{#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| | + | }}{{#if: {{{gallery5|}}} | [[File:{{{gallery5|}}}|220x200px]]<p style="font-size:.9em;">{{{gallery5-text|Щелкните, чтобы увеличить}}}</p> |
}} | }} | ||
{{!}}} | {{!}}} |
Версия 13:07, 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. }}
“This is an axe.
— Внутриигровое описание