歡迎來到 Wargaming.net Wiki!
頁面
討論
變換
檢視
原始碼
檢視歷史
搜尋
例如:
遊戲
戰車世界
戰機世界
戰艦世界
戰車世界:點將錄
戰車世界:閃擊戰
戰車世界:家用主機版
導覽
首頁
Wiki discussion
Purge page cache
隨機頁面
近期變動
使用說明
《戰車世界》網站
《戰機世界》網站
《戰艦世界》網站
《戰車世界:閃擊戰》網站
《戰車世界:家用主機版》網站
工具箱
連入頁面
相關頁面修訂記錄
特殊頁面
頁面資訊
首頁
/
Style Guide
檢視 Style Guide 的原始碼
←
Style Guide
跳轉到:
導覽
、
搜尋
根據以下的原因,您並無權限去做編輯這個頁面:
您剛才的請求只有這些使用者組的使用者才能使用:
使用者
、
貢獻者
想要編輯頁面庫,您在 Wargaming.net 世界的遊戲戰鬥數必須不低於 100 場。
你可以檢視並複製本頁面的原始碼。
== Global Wiki: Style Guide == === General Information === For simplification and automation of filling by a content of articles of Wiki a row of auxiliary tools - widgets is implemented. Widgets are an analog of the user [https://www.mediawiki.org/wiki/Help:Templates/en MediaWiki templates]. Working with them is similar but the are some differences: * widgets work for all localizations * widgets can't be edited by users Widgets are implemented on the basis of MediaWiki parcer functions. Detailed documentation on all widgets is reflected in the Global Wiki Widgets document. Widgets can be inserted into each other, combined with user templates and with HTML tags. Results of operation with widgets are cached by the server. The whole page is stored in cache. The cache is updated during resaving the page. Pictures are automatically imported by application from the client. Images are common for all languages. For an insertion of gallery images it is necessary to use the <nowiki><gallery></nowiki> tag built in in the editor. To control a place where the contents of article shall be inserted, you can use the magic word <nowiki>__TOC __</nowiki>. === Basic Pages === ==== Index Page ==== Index Page. Please note - the page uses [https://en.wikipedia.org/wiki/Wikipedia:Transclusion Transclusion] for operation. Articles, which you want to insert inside the index page must be prepared with tags: <pre> <nowiki> <noinclude>material invisible there </noinclude> <includeonly>material invisible here </includeonly> <onlyinclude>material outside this section invisible there </onlyinclude> </nowiki> </pre> Pages for video-guides and good articles must be prepared beforehand. Examples of pages for insertion: Article «What is New?» Page «Need Help». ==== Project page ==== Project Page (World_of_Warplanes, World_of_Tanks). This page also uses Transclusion. The prepared icons: =====Technique upgrade ===== * menu_icon_gun.png Guns * menu_icon_turret.png Turrets * menu_icon_engine.png Engine * menu_icon_track.png Tracs * menu_icon_radio.png Radio =====Technique complete set ===== * menu_icon_crew.png Crew * menu_icon_ammo.png Ammo * menu_icon_equipment.png Equipment * menu_icon_kit.png Kits * menu_icon_view.png View =====Reference book ===== * menu_icon_mode.png Game mode * menu_icon_map.png Maps * menu_icon_awards.png Awards * menu_icon_gold.png Economics * menu_icon_terms.png Game Terms * menu_icon_compare.png Comparison * menu_icon_world_war.png Global map =====Game mechanics ===== * menu_icon_balance.png Match-Making * menu_icon_booleetproof.png Shooting and и armor * menu_icon_viewandmask.png Camo and View range * menu_icon_other.png Other aspects =====eSport ===== * menu_icon_manual.png Manual * menu_icon_tournaments.png Tournaments * menu_icon_wgl.png Wargaming.net League =====Manuals ===== * menu_icon_guides.png Game guides * menu_icon_tactics.png Tactics * menu_icon_rota.png Compatlesny bat * menu_icon_video.png Video guides =====Other info about game ===== * menu_icon_notes.png Notes from players * menu_icon_modif.png Mods * menu_icon_links.png links ==== Tank/Plane Page ==== Tank/Plane Page. Please pay attention how widgets follow each other. (See document: Characteristics) ==== List of Vehicles page ==== List of Vehicles page. For tanks and planes. (See document: [[Style Guide - Vehicle Types|VehiclesTypes]]) ==== Crew ranks page ==== Crew ranks page (See document: Ranks) ==== Maps page ==== Maps page (See document: Maps) === Notes === ==== Marked list ==== To make color list, it is necessary to insert after the first element + (for green color) and - for red. Example: <pre> <nowiki> *- Element of the marked list (1 level) ** Element of the marked list (2 level) *** Element of the marked list (3 level) * Element of the marked list (1 level) *+ Element of the marked list (1 level) ** Element of the marked list (2 level) *** Element of the marked list (3 level) * Element of the marked list (1 level) </nowiki> </pre> ==== Tree of Modules ==== To add iframe of tree of modules for the whole page, you need to add to MediaWiki page:Common.js the following page: <pre> <nowiki> function showModulesTree() { $('.js-modules-tree').each(function(){ var $this = $(this), contentWidth, contentHeight, iframe, contentPadding; $this.html('<div class="b-modulestree"><iframe frameborder="0" style="border-width: 0; width: 1000px; min-width: 100%; height: 695px;" src="https://armor.kiev.ua/wot/tanks/modulestree.php?vehicle=' + $.trim($(this).text()) + '"></iframe></div>'); iframe = $this.find('iframe'); contentWidth = iframe.width(); contentHeight = iframe.height(); contentPadding = parseInt(iframe.parent().css('padding-bottom')); $this.height(contentHeight + contentPadding); $this.data('jsp','').jScrollPane({showArrows:false, contentWidth: contentWidth, contentHeight: contentHeight}); $(window).resize(function(){ $this.data('jsp').reinitialise(); }); }); } addOnloadHook(showModulesTree); </nowiki> </pre> And in the text of article you must add the following (tank code can be differnt): <pre> <nowiki> <div class="js-horizontal-pane l-modulestree js-modules-tree"> T-34 </div> </nowiki> </pre> ==== Content space names ==== For division of articles about vehicles according to games/projects the following name spaces for content are created: * Tank * Plane * Ship * Card ==== MediaWiki space names ==== Editing of the global side-bar menu can be done according to the link: / MediaWiki:Sidebar. Recommended contents for official article: * sidebar_projects ** :World_of_Tanks|World of Tanks@Tank ** :World_of_Warplanes|World of Warplanes@Plane ** :World_of_Warships|World of Warships@Ship ** :WoT_Generals|WoT Generals@Card * navigation ** currentevents-url|currentevents ** randompage-url|randompage ** recentchanges-url|recentchanges ** helppage|help ==== "Wrap" element ==== Please remember that for the right element "wrap" all the parts of elements aligned right must be wrapped into text wrap. Example: <pre> <nowiki> {{#gw_switcher:|align=right|background=[[File:Lassvil_minimap.jpg|150x150px]] |Original# |Button1# [[File:Lassvil_minimap_tags.jpg|150x150px|link=|guns ваып]] |Button2# [[File:Device_stereoscope.png|150x150px|link=|guns ваdfgп]] }} <div class="b-wiki-panel"> Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test </div> </nowiki> </pre> ==== Video Guides ==== Additional info about gw_article_scroll: All the info about widgets can be found here * Widget takes page names as принимает ([https://translate.google.com/?hl=en&tab=wT#ru/en/%D0%BF%D1%80%D0%B8%D0%BD%D0%B8%D0%BC%D0%B0%D0%B5%D1%82 "takes"]) parameters, so you have to create the pages beforehand. Example <pre> <nowiki> {{#ev:youtube|CcLt8BEJbRs}} [[Categories: Video guides]] </nowiki> </pre> 1st line - the video itself. Video must be added only this way. 2nd line - adds article to the category. Please note, that widget adds not the video itself but a text from article, that is why there is text on the page with video. But if we do not want text to appear, we can use tag noinclude: <pre> <nowiki> <noinclude>=== Test === Very huge and boring text </noinclude> {{#ev:youtube|CcLt8BEJbRs}} [[Category: Videos]] </nowiki> </pre> In such case in the widget there will be text which is not in tags noinclude. * Usage of the widget needs special html structure: <pre> <nowiki> <div class="b-info clearfix"> <div class="b-info_item"> <div class="l-info_inner"> <h2>Widget name</h2>{{#gw_article_scroll:Article name,another name}}[[Special:Categories/Video guides|class=b-info_more|to the section »]] </div> </div> </div> </nowiki> </pre> ==== CSS-classes for links and images ==== Links and images must have classes. Example, if you want to add padding for the awards icons, images need to take class reward_img. <pre><nowiki>[[file:MedalAbrams1.png|class=reward_img]]</nowki></pre>. ==== Privileges of sysop ==== Admins (sysop) have the rights for editing information (articles) which are in MediaWiki space names, including: * Editing the list * Reasons for deleting article * Reasons for deleting file * Reason for protecting the article * Reason for blocking the user * Reason for remove audit articles * Edit quick past panel (Edittools) * Edit global side bar (Sidebar) * Edit localization phrases of interface. Please think twice before using it as the results of the actions are seen to everyone. ==== Creating articles about vehicles using templates ==== When you are trying to create article in vehicles space names (Tank, Plane) if the name of created article corresponds to one of vehicles codes, appears the message with a prposal to create article on the specified template. Templates shall be created beforehand (names: TankPage, PlanePage, etc. ) [[category:Wiki Resources]]
返回到
Style Guide
。
您的位置:
想要登入,請選擇您帳號 所註冊的地區
歐洲
北美
亞洲
或使用 Microsoft 登入來進入 WoT XBOX 生態系統
登入
不再顯示這個對話框