Fandom Developers Wiki
Register
(Added the translation; fix it soon)
Tags: rollback sourceedit
(Replaced content with "Add me on MYSpace!")
Tag: apiedit
Line 1: Line 1:
  +
Add me on MYSpace!
{{Languages}}
 
{{Infobox Lua
 
| title = NavboxBuilder
 
| description = Модуль для создания навбоксов
 
| type = global
 
| author = [[User:Nanaki|Nanaki]]
 
| updated = 9 июля 2016
 
| code = NavboxBuilder
 
| languages = {{l|en|pl|ru}}
 
| uselang = ru
 
}}{{tocright}}
 
'''NavboxBuider''' — это модуль для создания навбоксов.
 
 
== Функции ==
 
* Неограниченные строки и секции;
 
* Закрывающийся навбокс и разделы;
 
* Возможность настраивания параметров;
 
* Документация параметров может быть импортирована из Dev Wiki, и это вызовет настроенные названия параметров.
 
 
== Как установить ==
 
Чтобы использовать этот модуль, вам понадобится подключить на вашей вики расширение [[mw:Extension:Scribunto|Scribunto]]. Если оно недоступно в вашем сообществе, просто отправьте запрос через «[[Special:Contact|Служебная:Contact]]».
 
 
=== Module ===
 
First thing is the module itself. You don't need to copy the code. Just create a module titled '''Module:NavboxBuilder''' (or any other – just remember to adjust <code>#invoke</code> calls) and put this in the code
 
<source lang="lua">return require('Dev:NavboxBuilder')</source>
 
 
You can also [[#Customizing parameters|customize parameters]] and change some [[#Additional settings|additional settings]] at this point. See their respective sections for more info.
 
 
=== CSS ===
 
There are two things to do here. First is importing the stylesheet that gives structure to the navbox. To do that just add this '''at the top''' of your [[Help:Community CSS and JS#Common.css|Common.css or Wikia.css]].
 
<source lang="css">@import "http://dev.wikia.com/load.php?mode=articles&articles=Global_Lua_Modules/NavboxBuilder/code.css&only=styles";</source>
 
 
Second is changing how it looks. More info on that can be found in the [[#Design|Design]] section below.
 
 
=== Template ===
 
The module is designed to be used as a regular template. To do that just create a template (ex: '''Template:Navbox''') with following content:
 
<pre><onlyinclude>{{#invoke:NavboxBuilder|create}}</onlyinclude>
 
 
== Параметры ==
 
{{#invoke:NavboxBuilder/ru|documentation|ru}}
 

Revision as of 08:40, 19 September 2017

Add me on MYSpace!