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
mNo edit summary
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>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.
<noinclude>This template currently generates the master InfoBox. It is able to create many different types of InfoBoxes.


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".
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".
Line 7: Line 7:
Please do not edit this InfoBox template.
Please do not edit this InfoBox template.
== Usage ==
== Usage ==
The parameters you pass in depend on the '''boxtype''' you specify. Some are used by multiple box types, and others are specific to only one. When this is complete, I will revise this help screen to better explain how to use all of this, and it will be really simple.
<pre>{{InfoBox |
<pre>{{InfoBox |
| boxtype    = Company, Convention, Hardware, People, Publication or Software
| boxtype    = Company, Convention, Hardware, Person, Publication or Software
<!-- All -->
| name      = (else PAGENAME is used)
| name      = (else PAGENAME is used)
| photo      = (else PAGENAME.jpg is used)
| photo      = (else PAGENAME.jpg is used)
Line 14: Line 16:
| date      = (optional) Month XX
| date      = (optional) Month XX
| year      = #### year released
| year      = #### year released
| enddate    = (optional) (for Companies, Conventions, Publications)
| endyear    = (for Companies, Conventions, Publications)
| location  = (for Companies, Conventions, Publications)
| interface  = (for Hardware)
| author    = (for Software)
| graphics  = (for Software)
| media      = (for Software)
| memory    = (for Software)
| platform  = (for Software)
| publisher  = (for Software)
| requires  = (for Software)
| notes      = short description
| notes      = short description
| infosource = where did this information come from
| infosource = where did this information come from
<!-- Company, Convention, Publication -->
| enddate    = (optional)
| endyear    =
<!-- Company, Convention, Person, Publication -->
| location  =
<!-- Hardware -->
| interface  =
<!-- Publication -->
| alibris    =
| format    =
| isbn      =
| isbn-13    =
| language  =
| pages      =
| volume    =
<!-- Publication and Software -->
| publisher  =
<!-- Software -->
| author    =
| media      = Disk, Tape, ROM-Pak
| memory    = ##Kb
| os        = OS-9. CB, ECB, DECB (or RS-DOS?)
| platform  = CoCo 1, CoCo 2, CoCo1/2, or CoCo 3
| requires  = Joystiks, Mouse, Disk Drive, etc.
| videomode  = 32 Text, PMODE 4, 320x250x16, etc.
| download  = link for download
}}</pre>
}}</pre>
</noinclude><includeonly><onlyinclude><!-- START of InfoBox -->{| class="wikitable" style="float:right;" width="300px"
</noinclude><includeonly><onlyinclude><!-- START of InfoBox -->{| class="wikitable" style="float:right;" width="300px"
Line 57: Line 80:
{{!}} {{{enddate}}} [[Category: {{{enddate}}}]]
{{!}} {{{enddate}}} [[Category: {{{enddate}}}]]
{{!}}-
{{!}}-
}}
! scope="row" {{!}} End Year
! scope="row" {{!}} End Year
{{!}} {{#if: {{{endyear|}}} | {{{endyear}}} [[Category: {{{endyear}}}]] | YEAR NEEDED [[Category: Missing End Year]]}}
{{!}} {{#if: {{{endyear|}}} | {{{endyear}}} [[Category: {{{endyear}}}]] | YEAR NEEDED [[Category: Missing End Year]]}}
{{!}}-
{{!}}-
}}
}} <!-- end of switch(boxtype) -->
<!-- For Company, Convention, Publication and Person, we require Location -->
{{#switch:{{{boxtype}}}
| Company
| Convention
| Person
| 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]]}}
{{!}}-
{{!}}-
}} <!-- end of switch(boxtype) -->
}}
<!-- Hardware -->
<!-- For Hardware, we require Interface -->
{{#ifeq: {{{boxtype}}} | Hardware |
{{#ifeq: {{{boxtype}}} | Hardware |
! scope="row" {{!}} Interface
! scope="row" {{!}} Interface
Line 75: Line 105:
! scope="row" {{!}} Author(s)
! scope="row" {{!}} Author(s)
{{!}} {{#if: {{{author|}}} | {{{author}}} | AUTHOR(S) NEEDED [[Category: Missing Author]]}}
{{!}} {{#if: {{{author|}}} | {{{author}}} | AUTHOR(S) NEEDED [[Category: Missing Author]]}}
{{!}}-
! scope="row" {{!}} Graphics
{{!}} {{#if: {{{graphics|}}} | {{{graphics}}} [[Category: {{{graphics}}}]] | GRAPHICS NEEDED [[Category: Missing Graphics]]}}
{{!}}-
{{!}}-
! scope="row" {{!}} Media
! scope="row" {{!}} Media
Line 84: Line 111:
! scope="row" {{!}} Memory
! scope="row" {{!}} Memory
{{!}} {{#if: {{{memory|}}} | {{{memory}}} [[Category: {{{memory}}}]] | MEMORY NEEDED [[Category: Missing Memory]]}}
{{!}} {{#if: {{{memory|}}} | {{{memory}}} [[Category: {{{memory}}}]] | MEMORY NEEDED [[Category: Missing Memory]]}}
{{!}}-
! scope="row" {{!}} O.S.
{{!}} {{#if: {{{os|}}} | {{{os}}} [[Category: {{{os}}}]] | O.S. NEEDED [[Category: Missing O.S.]]}}
{{!}}-
{{!}}-
! scope="row" {{!}} Platform
! scope="row" {{!}} Platform
Line 93: Line 123:
! scope="row" {{!}} Requires
! scope="row" {{!}} Requires
{{!}} {{#if: {{{requires|}}} | {{{requires}}} | REQUIREMENTS NEEDED [[Category: Missing Requirements]]}}
{{!}} {{#if: {{{requires|}}} | {{{requires}}} | REQUIREMENTS NEEDED [[Category: Missing Requirements]]}}
{{!}}-
! scope="row" {{!}} Video Mode
{{!}} {{#if: {{{videomode|}}} | {{{videomode}}} [[Category: {{{videomode}}}]] | VIDEO MODE NEEDED [[Category: Missing Video Mode]]}}
{{!}}-
! scope="row" {{!}} Download
{{!}} {{#if: {{{download|}}} | {{{download}}} | DOWNLOAD NEEDED [[Category: Missing Download]]}}
{{!}}-
{{!}}-
}} <!-- end of ifeq(Software) -->
}} <!-- end of ifeq(Software) -->
Line 102: Line 138:
| {{#if: {{{infosource|}}} | {{{infosource}}} | INFO SOURCE NEEDED [[Category: Missing Info Source]]}}
| {{#if: {{{infosource|}}} | {{{infosource}}} | INFO SOURCE NEEDED [[Category: Missing Info Source]]}}
|-
|-
| colspan="2" align="center" | <small>[[About the {{{boxtype}}} Info Box]]</small>
| colspan="2" align="center" | <small>[[About the {{#if: {{{boxtype|}}} | {{{boxtype}}} }} Info Box]]</small>
|}
|}
{{#if: {{{format|}}} | [[Category: INFOBOX FORMAT UPDATE NEEDED]]}}
{{#if: {{{format|}}} | [[Category: INFOBOX FORMAT UPDATE NEEDED]]}}<!-- For old pages that just defined "date", but do not have "year", flag them. -->{{#if: {{{date|}}} | {{#if: {{{year|}}} | | [[Category: INFOBOX DATE UPDATE NEEDED]]}} }}</includeonly></onlyinclude>
{{#if: {{{date|}}} | [[Category: INFOBOX DATE UPDATE NEEDED]]}}
</includeonly></onlyinclude>

Latest revision as of 05:32, 30 March 2020

This template currently generates the master InfoBox. It is able to create many different types of InfoBoxes.

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

The parameters you pass in depend on the boxtype you specify. Some are used by multiple box types, and others are specific to only one. When this is complete, I will revise this help screen to better explain how to use all of this, and it will be really simple.

{{InfoBox |
| boxtype    = Company, Convention, Hardware, Person, Publication or Software
<!-- All -->
| 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
| notes      = short description
| infosource = where did this information come from

<!-- Company, Convention, Publication -->
| enddate    = (optional)
| endyear    = 

<!-- Company, Convention, Person, Publication -->
| location   = 

<!-- Hardware -->
| interface  = 

<!-- Publication -->
| alibris    = 
| format     = 
| isbn       = 
| isbn-13    = 
| language   = 
| pages      = 
| volume     = 

<!-- Publication and Software -->
| publisher  = 

<!-- Software -->
| author     = 
| media      = Disk, Tape, ROM-Pak
| memory     = ##Kb
| os         = OS-9. CB, ECB, DECB (or RS-DOS?)
| platform   = CoCo 1, CoCo 2, CoCo1/2, or CoCo 3
| requires   = Joystiks, Mouse, Disk Drive, etc. 
| videomode  = 32 Text, PMODE 4, 320x250x16, etc.
| download   = link for download
}}