| MediaWiki:Sitenotice |
|---|
| 2026-03-12: Cocopedia.com is now using a new caching system that should make things faster. Please let me know if you encounter any new issues.
2026-03-15: MediaWiki has been reinstalled and the old database and files restored. It was pretty clogged up from being upgraded so many times since 2004. I am also testing out Cloudflare to see if it can prevent the 'bot assaults that took the site down last year. 2026-03-16: Special thanks to Don Barber for hosting a backup mirror of CoCopedia: https://cocopedia.dgb3.net |
Template:InfoBox: Difference between revisions
AllenHuffman (talk | contribs) No edit summary |
AllenHuffman (talk | contribs) removing keyword, we will use name. |
||
| (37 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>This template currently generates the | <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, | | 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 | ||
| notes = short description | | notes = short description | ||
| infosource = | | 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 | |||
{| class="wikitable" style="float:right;" width="300px" | <!-- BASIC --> | ||
| token = Token value | |||
}}</pre> | |||
</noinclude><includeonly><onlyinclude><!-- START of InfoBox -->{| class="wikitable" style="float:right;" width="300px" | |||
<!-- Heading --> | |||
|+ {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }} | |+ {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }} | ||
|- | |- | ||
<!-- Common --> | <!-- Common --> | ||
| colspan="2" align="center" | | | colspan="2" align="center" | | ||
{{#if: {{{photo|}}} | [[ | {{#if: {{{photo|}}} | [[File:{{{photo}}}|300px]] | MISSING PHOTO [[Category: Missing Photo]]}} | ||
<!-- TODO: Caption --> | <!-- TODO: Caption --> | ||
|- | |- | ||
! scope="row" {{!}} Name | ! scope="row" {{!}} Name | ||
| {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }} | | {{#if: {{{name|}}} | {{{name}}} | {{PAGENAME}} }} | ||
|- | |- | ||
{{#if: {{{date|}}} | | |||
! scope="row" {{!}} Date | ! scope="row" {{!}} Date | ||
{{!}} {{{date}}} [[Category: {{{date}}}]] | |||
{{!}}- | |||
}} <!-- end of if(date) --> | |||
! scope="row" {{!}} Year | ! scope="row" {{!}} Year | ||
| {{#if: {{{year|}}} | {{{year}}} [[Category: {{{year}}}]] | DATE NEEDED [[Category: Missing Year]]}} | | {{#if: {{{year|}}} | {{{year}}} [[Category: {{{year}}}]] | DATE NEEDED [[Category: Missing Year]]}} | ||
|- | |- | ||
<!-- For | <!-- For Conventions and Publications, we require End Year and Location --> | ||
{{#switch:{{{boxtype}}} | |||
| Company | |||
| Convention | |||
| Publication = | |||
{{#if: {{{enddate|}}} | | {{#if: {{{enddate|}}} | | ||
! scope="row" {{!}} End Date | ! scope="row" {{!}} End Date | ||
{{!}} | {{!}} {{{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]]}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
<!-- For Hardware, we require Interface --> | |||
{{#ifeq: {{{boxtype}}} | Hardware | | |||
! scope="row" {{!}} Interface | |||
{{!}} {{#if: {{{interface|}}} | {{{interface}}} [[Category: {{{interface}}}]] | INTERFACE NEEDED [[Category: Missing Interface Year]]}} | |||
{{!}}- | |||
}} <!-- end of ifeq(Hardware) --> | |||
<!-- Software --> | |||
{{#ifeq: {{{boxtype}}} | Software | | |||
! scope="row" {{!}} Author(s) | |||
{{!}} {{#if: {{{author|}}} | {{{author}}} | AUTHOR(S) NEEDED [[Category: Missing Author]]}} | |||
{{!}}- | |||
! scope="row" {{!}} Media | |||
{{!}} {{#if: {{{media|}}} | {{{media}}} [[Category: {{{media}}}]] | MEDIA NEEDED [[Category: Missing Media]]}} | |||
{{!}}- | |||
! scope="row" {{!}} 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 | |||
{{!}} {{#if: {{{platform|}}} | {{{platform}}} [[Category: {{{platform}}}]] | PLATFORM NEEDED [[Category: Missing Platform]]}} | |||
{{!}}- | |||
! scope="row" {{!}} Publisher | |||
{{!}} {{#if: {{{publisher|}}} | {{{publisher}}} [[Category: {{{publisher}}}]] | PUBLISHER NEEDED [[Category: Missing Publisher]]}} | |||
{{!}}- | |||
! scope="row" {{!}} Requires | |||
{{!}} {{#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) --> | |||
<!-- Software --> | |||
{{#ifeq: {{{boxtype}}} | BASIC | | |||
! scope="row" {{!}} Keyword | |||
{{!}} {{#if: {{{keyword|}}} | {{{keyword}}} | KEYWORD(S) NEEDED [[Category: Missing Keyword]]}} | |||
{{!}}- | |||
! scope="row" {{!}} Token | |||
{{!}} {{#if: {{{token|}}} | {{{token}}} [[Category: {{{token}}}]] | TOKEN NEEDED [[Category: Missing Token]]}} | |||
{{!}}- | |||
}} <!-- end of ifeq(BASIC) --> | |||
<!-- Common --> | <!-- Common --> | ||
! scope="row" {{!}} Notes | ! scope="row" {{!}} Notes | ||
| Line 74: | Line 150: | ||
| {{#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 {{#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 13:50, 12 March 2026
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
<!-- BASIC -->
| token = Token value
}}