MediaWiki:Sitenotice:
2024-03-02: The wiki ran out of disk space, so things were not working. This has been resolved by adding another 5GB of quota ;-) Thanks to Tim Lindner for reporting the issues. 2020-05-17: If a page gives you an error about some revision not being found, just EDIT the page and the old page should appear in the editor. If it does, just SAVE that and the page should be restored. OS-9 Al (talk) 12:22, 17 May 2020 (CDT)

Template:InfoBox: Difference between revisions

From CoCopedia - The Tandy/Radio Shack Color Computer Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 37: Line 37:
| {{#if: {{{year|}}} | {{{year}}} [[Category: {{{year}}}]] | DATE NEEDED [[Category: Missing Year]]}}
| {{#if: {{{year|}}} | {{{year}}} [[Category: {{{year}}}]] | DATE NEEDED [[Category: Missing Year]]}}
|-
|-
<!-- For Conventions and Publications, we require End Year and Location -->
<!-- For Conventions and Publications, we require End Year -->
{{#switch:{{{boxtype}}}
{{#switch:{{{boxtype}}}
| Convention
| Convention
Line 49: Line 49:
{{!}} {{#if: {{{endyear|}}} | {{{endyear}}} [[Category: {{{endyear}}}]] | YEAR NEEDED [[Category: Missing End Year]]}}
{{!}} {{#if: {{{endyear|}}} | {{{endyear}}} [[Category: {{{endyear}}}]] | YEAR NEEDED [[Category: Missing End Year]]}}
{{!}}-
{{!}}-
}}
<!-- For Companies, Publications and Conventions, we require a Location -->
{{#switch:{{{boxtype}}}
| Company
| Convention
| Publication =
! scope="row" {{!}} Location
! scope="row" {{!}} Location
{{!}} {{#if: {{{location|}}} | {{{location}}} [[Category: {{{location}}}]] | LOCATION NEEDED [[Category: Missing Location]]}}
{{!}} {{#if: {{{location|}}} | {{{location}}} [[Category: {{{location}}}]] | LOCATION NEEDED [[Category: Missing Location]]}}
{{!}}-
{{!}}-
| DEFAULT
}}
}}
<!-- Common -->
<!-- Common -->

Revision as of 18:11, 31 August 2016

This template currently generates the generic InfoBox. In the future, it will be able to create many different types of boxes with different fields based on what is needed.

The only thing unique about the different types of InfoBoxes will be the categories they include, and which fields will be required. i.e., for a software release, we require "year" to know when it came out, but "endyear" makes no sense. For a convention or publication, we might want to require "endyear".

boxtype is being implemented. It will allow this generic InfoBox to enforce required fields for the different InfoBox types. Thus, if you generate a Publication box, it will display "MISSING END YEAR" if the end year is not entered, and tag the page with "Missing End Year" so all pages that need that can be easily located.

Please do not edit this InfoBox template.

Usage

{{InfoBox |
| boxtype    = Company, Convention, Hardware, People, Publication or Software
| name       = (else PAGENAME is used)
| photo      = (else PAGENAME.jpg is used)
| caption    = (optional) photo caption or ALT tag
| date       = (optional) Month XX
| year       = #### year released
| enddate    = (for Conventions, Publications)
| endyear    = (for Conventions, Publications)
| location   = (for Companies, Conventions, Publications)
| notes      = short description
| infosource = (optional) where did this information come from
}}