Template:Infobox Resources

From UBC Wiki
Jump to: navigation, search
Documentation icon Template documentation[view] [edit] [history] [purge]

What is an Infobox?

Infobox is a box/menu that allows you to organize your wiki pages. It is often used in the front page of the project.


How to add an infobox

  1. Go to Insert> Template
    In Visual Editor, Go to Insert> Template
  2. Type Infobox Resources and then click on Insert Template.
    Type Infobox Resources and then click on Add template.
  3. Type Infobox Resources and then click on Insert Template.
  4. Fill in the parameters of the infobox. Below is the explanation of parameters:
    Diagram of how the infobox works
    Diagram of how the infobox works
    • Title: Type the title of your Infobox here.
    • Title 2 (Headings) : Type the second title/Heading (located under the image) of the infobox here
    • Picture:Add a picture to the infobox. If you do not have a picture, it will display default UBC wiki logo instead.
    • Size of the picture(optional): If you wish to change the size of the picture in the infobox, type the size (for ex: 200px)
    • Description: Add a Description of your project
    • Associated Pages: In wikitext, type the pages that are associated with your project in here. Alternatively, you can also add a DPL to auto-display associated pages
    • Share (Creative Commons License): If you want to add a creative commons license to your infobox, type yes. if not, type no.
    • Color (optional): You can change the color of the infobox from here. If you leave it as it is, the color will remain blue (#6699ff )
  5. Press Insert to insert the template. You have now inserted the template!

Example

My Project
UBC Rose Garden.jpg
About my project
Welcome to my project! This is a sample..blah blah..
Associated Pages
CC-BY button.png
My Project is licensed under a Creative Commons Attribution 4.0 license. .


Infobox Resources is a template that allows you to add an Infobox-style box/menu on your wiki page.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Type the title of the infobox here

Default
empty
Example
Open UBC
Auto value
empty
Stringrequired
Title 2 (Headings)title2

Type the second title/Heading (located under the image) of the infobox here

Default
empty
Example
About Open UBC
Auto value
empty
Unknownrequired
Picturepicture

Add a picture to the infobox. If you do not have a picture, it will display default UBC wiki logo instead.

Default
empty
Example
Image:Open UBC card.png
Auto value
Image:wiki.png
Unknownsuggested
Size of the picturepicturesize

Type the size of the picture here. Default image size 200px.

Default
empty
Example
260px
Auto value
200px
Unknownsuggested
Description of your projectdescription

Add a Description of your project

Default
empty
Example
Welcome to the resource development wiki for the Open UBC website. We hope you’ll find what you need or jump in and help create new resources where gaps exist.
Auto value
Unknownrequired
Associated Pagesassociatedpages

In wikitext, type the pages that are asosciated with your project in here. Alternatively, you can also add a DPL (see https://wiki.ubc.ca/Help:Dynamic_Page_Lists) to auto-display associated pages

Default
empty
Example
<dpl> categorymatch=Open UBC </dpl>
Auto value
empty
Unknownrequired
Share (Creative Commons License) share

Type yes if you want to share your resources with CC license.

Default
empty
Example
yes
Auto value
Unknownrequired
Colorcolor

Change the color of the infobox. If you leave it blank, the color will remain blue

Default
empty
Example
#6699ff
Auto value
#002859
Unknownsuggested