Jump to content

Welcome to FTB Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

NavBox creation

template Nav help

10 replies to this topic

#1
JC_the_Techie

JC_the_Techie

    Advanced Member

  • Administrators
  • 322 posts
  • Location:Langley, BC, Canada
  • IGN:JC_the_Techie
  • Modpack:FTB Infinity

OK so I made a NavBox for the MPSaddons mod, now I just need to figure out how to create it, my multiple attempts so far were disasters, it's one thing to edit one, quite another to get a new one going... a point in the right direction would be greatly appreciated!



#2
ostPavel

ostPavel

    Advanced Member

  • Administrators
  • 1010 posts
  • IGN:ostPavel
  • Modpack:Private Pack
Well, the best way IMO is to copy the code of an existing navbox and then just edit it. I still do it this way, even though I've been on this wiki for 2 years.
  • timrem and JC_the_Techie like this

My contributions || Herp derp || Out of order

DigitalOcean $10 offer - if you follow this link and make an account, you will be credited $10.


#3
JC_the_Techie

JC_the_Techie

    Advanced Member

  • Administrators
  • 322 posts
  • Location:Langley, BC, Canada
  • IGN:JC_the_Techie
  • Modpack:FTB Infinity

Yes That's exactly what I did, but been my first "creation" I wasn't sure how to do that, the mess was because of a misplaced "<!--" what a disruption! I got it now! just a bit of perseverance... Layout is good, just a matter of fixing the links -- Thanks for the reply 

 

Is there a way to make a list centered? looks odd all the way to the left...



#4
felinoel

felinoel

    Steampunk Alchemist

  • Administrators
  • 3860 posts
  • Location:Somewhere, possibly?
  • IGN:felinoel
  • Modpack:FTB Mage Quest

Yes That's exactly what I did, but been my first "creation" I wasn't sure how to do that, the mess was because of a misplaced "<!--" what a disruption! I got it now! just a bit of perseverance... Layout is good, just a matter of fixing the links -- Thanks for the reply 
 
Is there a way to make a list centered? looks odd all the way to the left...

lol hate that, one stray bit of code always messes it up, can you link to it?
Watch all of my different Let's Play series, Minecraft and more!
player.me/felinoel


We need to make default article pages! Discuss their designs here!

#5
RZR0

RZR0

    Administrator

  • Operator
  • 1972 posts
  • IGN:RZR0
  • Modpack:Private Pack

Well, the best way IMO is to copy the code of an existing navbox and then just edit it. I still do it this way, even though I've been on this wiki for 2 years.

I think we all do it that way :P



#6
felinoel

felinoel

    Steampunk Alchemist

  • Administrators
  • 3860 posts
  • Location:Somewhere, possibly?
  • IGN:felinoel
  • Modpack:FTB Mage Quest

I think we all do it that way :P

Yup.
Watch all of my different Let's Play series, Minecraft and more!
player.me/felinoel


We need to make default article pages! Discuss their designs here!

#7
JC_the_Techie

JC_the_Techie

    Advanced Member

  • Administrators
  • 322 posts
  • Location:Langley, BC, Canada
  • IGN:JC_the_Techie
  • Modpack:FTB Infinity

Here's the link to it: MPSaddons

I would prefer to use "Component" as the title to the first Navbox subgroup with no subtitle to group 1 and have the items centered...

| list1 = {{Navbox subgroup
	| title = Component
	| state = mw-collapsible <includeonly>mw-collapsed</includeonly>
	| group1 = 
	| list1 =  {{NavItem|Computer Chip}}{{•}}<!-- 
			-->{{NavItem|Magnet|Grid Magnet (Component).png|Magnet (Component)}}{{•}}<!--
			-->{{NavItem|Solar Panel|Grid Solar Panel (MPSaddons).png|Solar Panel (MPSaddons)}}
	}}

I tried this sweet piece of code I found, but that didn't work within the list

<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> ... </div>


#8
dgelessus

dgelessus

    Advanced Member

  • Administrators
  • 1424 posts
  • IGN:dgelessus
  • Modpack:FTB Tech World 2

Unless centering the text and using CSS columns helps to display a fact, the navbox should use the same style as all others. To make a navbox subgroup with only a single title-less group, use only the list1 param and leave group1 out.



#9
JC_the_Techie

JC_the_Techie

    Advanced Member

  • Administrators
  • 322 posts
  • Location:Langley, BC, Canada
  • IGN:JC_the_Techie
  • Modpack:FTB Infinity

Still looks weird... 

 

update: I figured it out! Lines up

Attached Thumbnails

  • navbox offset.png


#10
felinoel

felinoel

    Steampunk Alchemist

  • Administrators
  • 3860 posts
  • Location:Somewhere, possibly?
  • IGN:felinoel
  • Modpack:FTB Mage Quest

Still looks weird...

Yeah I never liked that... you could give the one with no subcategories a single subcategory I guess?
Call it Components.
Watch all of my different Let's Play series, Minecraft and more!
player.me/felinoel


We need to make default article pages! Discuss their designs here!

#11
JC_the_Techie

JC_the_Techie

    Advanced Member

  • Administrators
  • 322 posts
  • Location:Langley, BC, Canada
  • IGN:JC_the_Techie
  • Modpack:FTB Infinity

Thanks Fel, that's what I had until 5 min ago, used a bunch of indents to move it over, duh, first thing I did but I didn't have it at the beginning of the line, so it was showing





Reply to this topic



  



Also tagged with one or more of these keywords: template, Nav, help

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users