FANDOM


Redirect

Redirect:

NB:T
Nutshell

This page in a nutshell:

Templates are special pages that can be added in other pages over and over again, many times with special fields that can be written in to produce different text within the template.

There are many templates in use in Napoleon Bonaparte Wiki; these are only a subset, representing some of the most important and commonly used ones. If you feel that a template belongs on this page, do not hesitate to add it.

  • Category:Templates should cover all templates in the wiki, categorized into the various subcategories.
  • The template namespace (found from Special:Allpages) always has all templates in the wiki, sorted alphanumerically.

What are templates?Edit

Wiki templates provide a means to insert the same content over and over in different (or the same) pages. This saves editors the hassle of duplicating the same text again and again, and also helps ensure consistency. Templates are generally shown with the format required to use the template. Clicking the template name takes you to the template's page, where you can see what it looks like and how it is used. For more information on templates, see Help:Templates.

Types of TemplatesEdit

Article managementEdit

Article management templates are templates that are used to notify viewers and editors of problems or other details about an article. These are located at Category:Article management templates. Often-used article management templates include {{Redlinks}} (as the wiki is still in its beginning phase, many articles link to articles that do not yet exist), {{Construction}}, and {{Expand}}. Templates {{Cleanup}} and {{Wikify}} are used for messy articles that do not fit the Manual of Style. Note there are many other article management templates you can use, see this list to become familiar with all of them, and you can place the correct template on an appropriate page.

Most article management templates use {{Mbox}}, shortened for "message box," which is basically a template for making templates. If you want to make a template, use Mbox wisely. It has a background field and border field for the different colors (using standard HTML colors), an image field for the icon to the left, and a message field for the text to be displayed. Click "Edit" on any article management template and you can see how the Mbox template was used to make these templates.

ImageEdit

Image templates specify the copyright status of an uploaded image. Located at Category:Image wiki templates, these templates cover many different copyright statuses possible. For general public domain images, such as old paintings of Napoleon, use the {{PD}} template, which specifies that the image is in the public domain. If you upload an image you took yourself, and you wish to release it to the public domain, use {{Self}}. Do not use {{Self}} if you wish to hold any rights to the image, as public domain is basically releasing all rights, and allowing anyone to use it.

For images not in the public domain, use copyright tags such as {{Fairuse}} ONLY IF YOU ARE GOING TO USE THE IMAGE IN A WAY THAT QUALIFIES AS FAIR USE. Use {{Permission}} if you received official permission from the author of the image to use it on the wiki. Other copyright tags are also available, you can see them all here. Please note that the template {{Image}} is an article management template for articles that need an image, not a copyright tag.

InfoboxesEdit

Infoboxadd

The icon for the {{Infoboxadd}} template, which is not an infobox, but an article management template. The icon shows what a regular infobox looks like.

Infobox templates are special templates for providing a very efficient means of relaying essential information about the subject of the article at the beginning. Infobox templates are located at Category:Infobox templates. For example, {{Infobox person}} has fields for the birth, death, gender, spouse, father, mother, nationality, etc. of the person the infobox is being used for. Other infoboxes include {{Infobox battle}} or {{Infobox nation}}. All of these special templates have areas for the primary image of the article, as the infobox should be placed at the very beginning of an article. See the template description for all the fields that can be filled.

Please note that most location infoboxes, such as {{Infobox territory}}, etc., have fields for two images, that of its flag and that of a map of its location in the world. An article management template, {{Infoboxadd}} is not an infobox template at all, but merely a tag stating that an infobox needs to be added to the article.

NavboxesEdit

Navboxes are templates that can be used for related articles to be browsed easily. The list of navboxes can be seen here. For example, a navbox titled {{Battles of the French campaign in Egypt and Syria}} might list all the battles of the French campaign in Egypt and Syria for easier browsing, so that one can move from Battle of the Pyramids to the Battle of the Nile and so on.

Use {{Nbox}} and {{Nbox section}} to create navboxes with more than one section. For example, a template entitled {{Battles of the French Revolutionary Wars}} might split the links to the articles in to the campaign in Italy, the campaign in Egypt, etc. Use {{Nbox one}} for navboxes with only one section.

Community content is available under CC-BY-SA unless otherwise noted.