Using Templates

From Sierra Wiki
Revision as of 00:19, 3 June 2024 by Andrew Branscom (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This page is a stub.

MediaWiki Wikis make use of templates. These templates will insert a bit of preformatted information or a file at the point it is added to a page. They can add a table to a page filled with the information specified in the template. They can automatically add the page to a given category for cataloging and sorting.

To use a template on a page enclose the name of the template with double curly brackets, i.e.

{{TemplateName}}

You can manually add the brackets or select the name of the template and then click the Add Template button from the editor's toolbar.

Sometimes templates are used within larger templates to add info to the parent template.


Infobox Templates

The main templates are the "Infobox" Templates. These add a table in the top right hand corner of a page to display the page's basic information. These are used for pages like release entries, Company info pages, game engine pages, Collections and software. This can be seen in the top right hand corner of the Space Quest 1 entry.


{{ReleaseInfobox
| ReleaseName = Release Title
| image = [[Image:NoPicture.png|190px]]<br />
''Release Name Cover''
| ReleaseDate =
| ProjectStatus =
| Developer =
| Publisher =
| Designer =
| Source Available =
| Category =
| Type =
| Genre =
| Engine =
| Platform =
| Localization =
| Website =
}}


The information to the right of the equal sign can be plain text, but using the templates designed for that entry will ensure a consistency and sometimes a shorthand to the displayed information. They will also add the release to the proper categories.

Note that you would replace "Release Title" with the actual name of the release.


Example

To specify the year a game was released you would add:

{{1989}}

This will display the year and automatically add the game to the 1989 releases category page and add a link to that category page.

To specify that a game was developed by Dynamix you would add:

{{DynamixDev}}

This will display "Dynamix" at the right place and add the entry to the Dynamix Developed category.




More to come...




Also See