Editing
Module:NavboxGenerator/doc
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Not finished. =Overview= Create's a navbox from a json file for input where keys are a title div container, and value <code>"Display"</code> is the display text. Each title div container gets smaller and smaller the further it is in the json. =Parameters= Within each level of the json: * '''<key>''' - Title to display in the div/container/box. Can wrap it in <code><nowiki><span style="mystyle">key</span></nowiki></code> for styling it. * '''Style''' - Style for the div * '''Display''' - Text to display below the div * '''<Any other value>''' - Recursively calls for the contained layer, with '''<Any other value>''' as the new '''<key>''' =Examples= For understanding the input syntax, it is recommended to view the Simple Example first. ==Simple Example== The input can be seen at [[Data:ItemNavboxSample.json]] <code><nowiki>{{#invoke:NavboxGenerator|createNavbox|Data:ItemNavboxSample.json}}</nowiki></code> Outputs {{#invoke:NavboxGenerator|createNavbox|Data:ItemNavboxSample.json}} ==Styled Example== The input can be seen at [[Data:ItemNavbox.json]] <code><nowiki>{{#invoke:NavboxGenerator|createNavbox|Data:ItemNavbox.json}}</nowiki></code> Outputs {{#invoke:NavboxGenerator|createNavbox|Data:ItemNavbox.json}} =Needed changes= 1. Style/Formatting made prettier 2. A way to have the json iterated in order; for some reason mw.loadJsonData doesn't load the keys in order they appear. This is not used on any pages currently.
Summary:
Please note that all contributions to Deadlock Wiki are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Deadlock:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Templates used on this page:
Data:Dictionary
(
edit
)
Data:GenericData.json
(
edit
)
Data:ItemData.json
(
edit
)
Data:ItemNavbox.json
(
edit
)
Data:ItemNavboxSample.json
(
edit
)
Data:LangCodes.json
(
edit
)
Data:Lang en.json
(
edit
)
Template:Icon/Black
(
edit
)
Template:ItemBox
(
edit
)
Template:Souls
(
edit
)
Module:Dictionary
(
edit
)
Module:GenericData
(
edit
)
Module:ItemData
(
edit
)
Module:ItemData/nav
(
edit
)
Module:Lang
(
edit
)
Module:NavboxGenerator
(
edit
)
Module:Utilities
(
edit
)
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Module
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Discord community
Recent changes
Random page
Tools
What links here
Related changes
Special pages
Page information
Languages