How to Create a Navbox: Difference between revisions

m
Text replacement - "\{\{[\s_]+([^•].)" to "{{$1"
m (Text replacement - "\{\{[\s_]+([^•].)" to "{{$1")
 
(4 intermediate revisions by one other user not shown)
Line 179: Line 179:
*Notice the table width is set at 100%.
*Notice the table width is set at 100%.
*Second, the code for the border.  You can make anything you want.
*Second, the code for the border.  You can make anything you want.
*Third, the "[[HTML_and_Wikitext_-_Lesson_Three#Cell_separation|border-collaspe]]" coding is for creating a 5 pixel space between the cells of the table.</p>
*Third, the "[[HTML_and_Wikitext_-_Lesson_Three#Cell_separation|border-collaspe]]" coding is for creating a 5 pixel space between the cells of the table.  Notice the two lines of code for this attribute.</p>


====Coding for title====
====Coding for title====
Line 291: Line 291:
</td>
</td>
</tr>
</tr>
</table>
<p>
*This navbox has two columns.  The first is for the group name such as Topic, Counties, Repositories, etc.
*The second column is for the items under the group title.
*Therefore the title has to span the two columns, hence the "colspan="2". 
*In addition, the title is centered and given a background color.
*Here is something new that you might not be familiar with: <nowiki>{{{title background color}}}</nowiki>.  This is a parameter within the three sets of {{{}}}.
*Within the set of curly brackets {{{}}} will appear the words that you will type in the navbox template that match the text within the {{{}}}.


</table>
</p>


====Coding for group names====
====Coding for group names====
Line 545: Line 553:


  {{Missouri|Missouri}}
  {{Missouri|Missouri}}
[[category:Templates]]
Approver, Batcheditor, Moderator, Patroller, Protector, Reviewer, Bots, Bureaucrats, editor, Interface administrators, pagecreator, pagedeleter, Page Ownership admin, Push subscription managers, Suppressors, Administrators, Upload Wizard campaign editors, Widget editors
321,763

edits