Difference between revisions of "Template:Infobox documentation"

From The Big Cartoon Wiki
Jump to navigation Jump to search
m
(Shortened and simplified documentation.)
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
An infobox is a piece of code you can paste into an article and it generates a box displaying a title and other information. If possible, you should always include an infobox on a page instead of an image thumbnail. The first line of every infobox shares the same 3 fields: name, Wikipedia article and image.
+
An infobox is a piece of code you can paste into an article and it generates a box displaying a title and other information. The top of every page and applicable section should have an infobox. The first line of every infobox shares the same 3 fields: Wikipedia article, title and image.
* '''Name:''' This should be left as the name of the infobox, in this case <code>{{PAGENAME}}</code>.
+
* '''Wikipedia article:''' Wikipedia page the template should link to. This should just be the page name, not the full URL. If left blank, the template will guess what the correct Wikipedia page is.
* '''Wikipedia article:''' The name of the Wikipedia page the template should link to. This should just be the page name, not the full URL. If this field is left blank then the template will try to guess what the correct Wikipedia page is.
+
* '''Title:''' Title of the piece of media. If left blank, defaults to the page's name.
* '''Image:''' The name of the logo image, without the <code>File:</code> before it. Before you upload a new logo to the wiki, see if it already exists on [[commons:Main_Page|Wikimedia Commons]]. If it does, you can use the filename there and the wiki will automatically import it.
+
* '''Image:''' Name of the logo image, without the <code>File:</code> before it. You can use filenames from [[commons:Main_Page|Wikimedia Commons]] without reuploading them to this wiki.
The rest of the fields are specific to each infobox and include information like publisher, release date, etc. To add a line break to them, insert <code><nowiki><br></nowiki></code>. If you want to browse examples of how people used this template, you can visit [[Special:WhatLinksHere/{{PAGENAME}}|What Links Here]] and view the code of those pages.
+
The rest of the fields are specific to each infobox and include information like publisher, release date, etc. To add multiple lines to a field, insert <code><nowiki><br></nowiki></code> between them. You can browse examples of using this template at [[Special:WhatLinksHere/{{PAGENAME}}|What Links Here]].
  
 
==Usage==
 
==Usage==
  
 
Paste the following code into the article and fill out the fields:<noinclude>[[Category:Template documentation| ]]</noinclude>
 
Paste the following code into the article and fill out the fields:<noinclude>[[Category:Template documentation| ]]</noinclude>

Latest revision as of 19:25, 7 February 2021

An infobox is a piece of code you can paste into an article and it generates a box displaying a title and other information. The top of every page and applicable section should have an infobox. The first line of every infobox shares the same 3 fields: Wikipedia article, title and image.

  • Wikipedia article: Wikipedia page the template should link to. This should just be the page name, not the full URL. If left blank, the template will guess what the correct Wikipedia page is.
  • Title: Title of the piece of media. If left blank, defaults to the page's name.
  • Image: Name of the logo image, without the File: before it. You can use filenames from Wikimedia Commons without reuploading them to this wiki.

The rest of the fields are specific to each infobox and include information like publisher, release date, etc. To add multiple lines to a field, insert <br> between them. You can browse examples of using this template at What Links Here.

Usage

Paste the following code into the article and fill out the fields: