MarioWiki:Navigation templates: Difference between revisions

m
no edit summary
m (Robot: Removing template: BoxTop)
mNo edit summary
Line 30: Line 30:
The basic layout of a template features a banner across the top of the template bearing a descriptive title, below which are the lists of links, organized into sections by headers. The number and types of sections are different from template to template (see the above sections for more information), and many templates require sub-headers to further subdivide their sections. However, while template length is quite variable, all templates should be given the same width of 100%.
The basic layout of a template features a banner across the top of the template bearing a descriptive title, below which are the lists of links, organized into sections by headers. The number and types of sections are different from template to template (see the above sections for more information), and many templates require sub-headers to further subdivide their sections. However, while template length is quite variable, all templates should be given the same width of 100%.


No matter the size of the template, it must be completely collapsible - in other words, all the content must be hidden by default, with only the banner visible, until the "[show]" link is clicked on. It is much easier to find a specific template when only the headers have to be skimmed through, and not the lists of links as well, and collapsing the templates also saves on space. It is enabled by including <code><nowiki>mw-collapsible mw-collapsed</nowiki></code> in the template's class ([[#Colouration|see below]] for more information on classes). Furthermore, if a page has 10 or more navigation templates, they should all be collapsed through the use of [[Template:Navtemplate]].
No matter the size of the template, it must be completely collapsible - in other words, all the content must be hidden by default, with only the banner visible, until the "[show]" link is clicked on. It is much easier to find a specific template when only the headers have to be skimmed through, and not the lists of links as well, and collapsing the templates also saves on space. It is enabled by including <code><nowiki>mw-collapsible mw-collapsed</nowiki></code> in the template's class ([[#Colouration|see below]] for more information on classes). Furthermore, if a page has 10 or more navigation templates, they should all be collapsed through the use of {{tem|navtemplate}}.


Finally, be aware that every navigation template must include an [edit] button on left hand side of the banner, opposite the [show]/[hide] button. This must be manually added by placing [[Template:Edit]] in front of the title in the banner, in the form of <code><nowiki>{{edit|NAME}}</nowiki></code>, where "NAME" is the name of the template as it appears in the address bar.
Finally, be aware that every navigation template must include an [edit] button on left hand side of the banner, opposite the [show]/[hide] button. This must be manually added by placing [[Template:Edit]] in front of the title in the banner, in the form of <code><nowiki>{{edit|NAME}}</nowiki></code>, where "NAME" is the name of the template as it appears in the address bar.