Difference between revisions of "Template:InfoboxSoftware"

From DoomWiki.org

m (This should also use FULLPAGENAME)
m (fix dangling empty parentheses above source repo URL. Thanks to Corbin for accidentally testing it out :>)
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox  
+
<includeonly>{{Infobox  
 
| title      = {{{title|{{{name|{{PAGENAME}}}}}}}}
 
| title      = {{{title|{{{name|{{PAGENAME}}}}}}}}
 
| titleclass = summary
 
| titleclass = summary
Line 20: Line 20:
  
 
<!--| label5    = Initial release
 
<!--| label5    = Initial release
| data5      = {{{released|}}}-->
+
| data5      = {{#ifexist: {{FULLPAGENAME}}/InitialVersion | {{:{{FULLPAGENAME}}/InitialVersion}} {{#ifexist: {{FULLPAGENAME}}/InitialDate | ({{:{{FULLPAGENAME}}/InitialDate}}, {{TimeAgo|{{:{{FULLPAGENAME}}/InitialDate}}}}) |}} | {{#ifexist: {{FULLPAGENAME}}/InitialDate | {{:{{FULLPAGENAME}}/InitialDate}} ({{TimeAgo|{{:{{FULLPAGENAME}}/InitialDate}}}}) |}}}}-->
  
 
| label5    = Initial release
 
| label5    = Initial release
| data5      = {{#ifexist: {{FULLPAGENAME}}/InitialVersion | {{:{{FULLPAGENAME}}/InitialVersion}} {{#ifexist: {{FULLPAGENAME}}/InitialDate | ({{:{{FULLPAGENAME}}/InitialDate}}, {{TimeAgo|{{:{{FULLPAGENAME}}/InitialDate}}}}) |}} | {{#ifexist: {{FULLPAGENAME}}/InitialDate | {{:{{FULLPAGENAME}}/InitialDate}} ({{TimeAgo|{{:{{FULLPAGENAME}}/InitialDate}}}}) |}}}}
+
| data5     = {{#if: {{{initialversion|}}} | {{{initialversion}}} {{#if: {{{initialdate|}}} | ({{{initialdate}}}, {{TimeAgo|{{{initialdate}}}}}) | }} | {{#if: {{{initialdate|}}} | {{{initialdate}}} ({{TimeAgo|{{{initialdate}}}}}) | }}}}
 +
 
 +
<!--| label6    = Latest release
 +
| data6     = {{#ifexist: {{FULLPAGENAME}}/Version | {{:{{FULLPAGENAME}}/Version}} {{#ifexist: {{FULLPAGENAME}}/Date | ({{:{{FULLPAGENAME}}/Date}}, {{TimeAgo|{{:{{FULLPAGENAME}}/Date}}}}) |}} | {{#ifexist: {{FULLPAGENAME}}/Date | {{:{{FULLPAGENAME}}/Date}} ({{TimeAgo|{{:{{FULLPAGENAME}}/Date}}}}) |}}}}0-->
  
 
| label6    = Latest release
 
| label6    = Latest release
Line 35: Line 38:
  
 
| label10    = Target Platform
 
| label10    = Target Platform
| data10      = {{#ifexist: {{FULLPAGENAME}}/Platforms | {{:{{FULLPAGENAME}}/Platforms}} | {{{platform|}}}}}
+
| data10      = {{{platform|}}}
  
 
| label11    = Available in
 
| label11    = Available in
Line 49: Line 52:
 
| label15    = Source Repository
 
| label15    = Source Repository
  
({{{repotype|}}})
+
{{#if:{{{repotype|}}} | ({{{repotype}}}) | }}
 
| data15    = {{{repourl|}}}
 
| data15    = {{{repourl|}}}
 
| label16    = IRC Channel
 
| label16    = IRC Channel
 
| data16    = {{{ircchannel|}}}
 
| data16    = {{{ircchannel|}}}
}}<noinclude>
+
}}</includeonly><noinclude>Infobox for a [[source port]]'s main article.
THIS TEMPLATE IS FROM WIKIPEDIA:
+
 
  http://en.wikipedia.org/w/index.php?title=Template:Infobox_software&action=edit
+
Parameters (all optional):
IT IS MODIFIED TO FIT SOURCE PORTS MORE
+
 
* Removed the wikilinks on all the labels
+
* '''title''' = Application name.
* Doomized some things
+
* '''status''' = Project status. Active or Discontinued is usual in the community.
* Moved standard from the bottom to the top (very important to us Doomers)
+
* '''license''' = Distribution license (e.g. GPL, BSD, Proprietary).
* Removed File Size (pointless)
+
* '''platform''' = Target operating environment(s). Official binaries need not be provided.
* Merged Operating System and Platform into Target Platform which is (Linux, DOS, Windows, etc.)
+
* '''standard''' = Baseline compatibility level (e.g. Vanilla, Boom, ZDoom). This should be an overall categorization based on featureset, not demo compatibility alone.
 +
* '''language''' = Interface language (English is assumed, rightly or wrongly).
 +
* '''initialversion''' = Version number of initial public release, including betas.
 +
* '''initialdate''' = Date of initial public release.
 +
* '''programming_language''' = Language of source code.
 +
* '''baseparent''' = The parent codebase of the source port, if applicable. For example, ReMooD was based on Doom Legacy 1.42.
 +
* '''repourl''' = URL of source code repository (enclose in square brackets to activate link).
 +
* '''repotype''' = Type of repository (e.g. Fossil, Mercurial, Git).
 +
* '''developer''' = Current development team. Former members can be mentioned in a History section of the port article.
 +
* '''nondeveloper''' = People on the team who do not develop (e.g. webmaster, alpha tester, wealthy hosting patron). This should be confined to major contributions: the 1000 public testers do not go here, but someone who bought hardware specifically for a new beta release might. Also includes anyone with repository commit access if not an active developer.
 +
* '''logo''' = Project logo (internal link to file upload).
 +
* '''screenshot''' = An image of the port in action (internal link to file upload).
 +
* '''caption''' = Screenshot caption.
 +
* '''website''' = Project home page, if different from the repository.
 +
* '''ircchannel''' = IRC channel dedicated to the port.
  
My own stuff:
+
The ''current'' version and release date are automatically read from subpages of the port page, /Version and /Date respectively, for ease of updating by non-regulars.
* standard = The standard of the source port "Vanilla Compatible, Boom Compatible, ZDoom Compatible, etc." The baseline compatibility level for the source port. This should be based on levels and features (so if it can't play back Boom demos it shouldn't be excluded from Boom compatibility).
 
* baseparent = The base codebase version of the source port. For example, ReMooD is based on Doom Legacy 1.42 so it will say that.
 
* repotype = Type of source code repository you use (if any)
 
* repourl = URL to repository
 
* ircchannel = IRC Channel where your stuff presides
 
* nondeveloper = People on the team but they don't develop. This should be people who actually do a major part in the source port but don't do anything code wise. So your ports 1000 public testers does not go here but the solo guy who spends his free time and his own money on your source port paying for a website or something should be here. Or you can put people of power here, who have control over the entirety of the source port and can usurp developer admins.  
 
  
NOTES:
+
This template has known issues with the port genealogy tables: please do not embed either template inside the other.
* It seems the template is screwing around with Quasar's gene stuff, seems it doesn't like shoving a new table in the table or something. So it will be kept in the normal page.
 
  
CHANGES:
+
== Source ==
* Added time ago for dates.
 
* Switched from static initial release to a better way (one that can be easily used by other pages).
 
* Moved time ago templates from GhostlyDeath's userspace to normal template namespace.
 
  
=== Source ===
+
* This template is a heavily modified version of {{wp|Template:Infobox Software}} on [[Wikipedia]].
This template is mostly from {{wp|Template:Infobox Software|Wikipedia}}.
 
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 17:30, 25 September 2018

Infobox for a source port's main article.

Parameters (all optional):

  • title = Application name.
  • status = Project status. Active or Discontinued is usual in the community.
  • license = Distribution license (e.g. GPL, BSD, Proprietary).
  • platform = Target operating environment(s). Official binaries need not be provided.
  • standard = Baseline compatibility level (e.g. Vanilla, Boom, ZDoom). This should be an overall categorization based on featureset, not demo compatibility alone.
  • language = Interface language (English is assumed, rightly or wrongly).
  • initialversion = Version number of initial public release, including betas.
  • initialdate = Date of initial public release.
  • programming_language = Language of source code.
  • baseparent = The parent codebase of the source port, if applicable. For example, ReMooD was based on Doom Legacy 1.42.
  • repourl = URL of source code repository (enclose in square brackets to activate link).
  • repotype = Type of repository (e.g. Fossil, Mercurial, Git).
  • developer = Current development team. Former members can be mentioned in a History section of the port article.
  • nondeveloper = People on the team who do not develop (e.g. webmaster, alpha tester, wealthy hosting patron). This should be confined to major contributions: the 1000 public testers do not go here, but someone who bought hardware specifically for a new beta release might. Also includes anyone with repository commit access if not an active developer.
  • logo = Project logo (internal link to file upload).
  • screenshot = An image of the port in action (internal link to file upload).
  • caption = Screenshot caption.
  • website = Project home page, if different from the repository.
  • ircchannel = IRC channel dedicated to the port.

The current version and release date are automatically read from subpages of the port page, /Version and /Date respectively, for ease of updating by non-regulars.

This template has known issues with the port genealogy tables: please do not embed either template inside the other.

Source