Module:Infobox/software

From Feed The Beast Wiki
Jump to: navigation, search

Documentation for this module may be created at Module:Infobox/software/doc

local p = {}

p.docLead = [=[<translate><!--T:34--> This one is for non-mod software.</translate>]=]

local statuses = {
	planned = [=[<translate><!--T:1--> Planned</translate>]=],
	active = [=[<translate><!--T:2--> Active</translate>]=],
	unmaintained = [=[<translate><!--T:3--> Unmaintained</translate>]=],
	discontinued = [=[<translate><!--T:4--> Discontinued</translate>]=],
	stalled = [=[<translate><!--T:5--> Stalled</translate>]=],
	abandoned = [=[<translate><!--T:6--> Abandoned</translate>]=]
}

p.format = {
	{
		title = {arg="name", desc=[=[<translate><!--T:7--> The title that will be displayed at the top of the info box.</translate>]=]},
		{
			{{arg={"image"}, type="image", maxSize=640, desc=[=[<translate><!--T:8--> The big picture.</translate>]=]}}
		},
		{
			{[=[<translate><!--T:9--> Current developers</translate>]=], {arg="author", desc=[=[<translate><!--T:10--> Current author or authors of the software. Separate multiple authors by commas.</translate>]=]}},
			{[=[<translate><!--T:11--> Past developers</translate>]=], {arg="pastauthor", desc=[=[<translate><!--T:12--> Previous author(s) of the software.</translate>]=]}}
		},
		{
			{[=[<translate><!--T:13--> Latest version</translate>]=], {arg="version", desc=[=[<translate><!--T:14--> The current software version.</translate>]=]}},
			{[=[<translate><!--T:15--> Status</translate>]=], {arg="status", type="switch", allowedValues=statuses, desc=[=[<translate><!--T:16--> The current status of the project.</translate>]=]}},
			{[=[<translate><!--T:17--> Written in</translate>]=], {arg="proglangs", desc=[=[<translate><!--T:18--> The programming languages that it is written in. Should be a link to a Wikipedia article if possible. Separate multiple languages by commas.</translate>]=]}},
			{[=[<translate><!--T:19--> Operating systems</translate>]=], {arg="os", desc=[=[<translate><!--T:20--> Supported operating systems. Should be Wikipedia links if possible. Avoid vague descriptors such as Cross-Platform. Separate multiple systems by commas.</translate>]=]}},
			{[=[<translate><!--T:21--> Depends on</translate>]=], {arg="deps", desc=[=[<translate><!--T:22--> Non-standard external dependencies, such as Atom or a Ruby Gem.</translate>]=]}},
			{[=[<translate><!--T:23--> License</translate>]=], {arg="license", desc=[=[<translate><!--T:24--> The software's license. Should be a Wikipedia article, unless it is a license specific to Minecraft, such as the Modded Minecraft Public License.</translate>]=]}},
			{[=[<translate><!--T:25--> Source</translate>]=], {arg="source", type="link", desc=[=[<translate><!--T:26--> The source code repository.</translate>]=]}},
			{[=[<translate><!--T:27--> Issues</translate>]=], {arg="issues", type="link", desc=[=[<translate><!--T:28--> The issue tracker.</translate>]=]}},
			{[=[<translate><!--T:32--> Documentation</translate>]=], {arg="docs", type="link", desc=[=[<translate><!--T:33--> The official documentation for the software. This is mostly specific to APIs and such.</translate>]=]}},
			{[=[<translate><!--T:29--> Website</translate>]=], {arg="url", type="link", desc=[=[<translate><!--T:30--> URL to the software's main page. Can be a dedicated forum thread or website.</translate>]=]}}
		}
	}
}

p.examples = {{[=[<translate><!--T:31-->
{{Infobox software
|name=Software
|image=Wiki.png
|author=That one dude
|pastauthor=That one dude that sucks
|version=1.0.0
|status=active
|proglangs=[[WP:Ruby (programming language)|Ruby]], [[WP:C++|C++]]
|os=[[WP:Microsoft Windows|Microsoft Windows]], [[WP:OS X|OS X]]
|deps=[[WP:Atom (text editor)|Atom]]
|license=[[WP:MIT License|MIT License]]
|source=http://github.com/rust/rustlang
|issues=http://github.com/elifoster/ftb-wiki-issue-tracker/issues
|url=http://ftb.gamepedia.com
}}</translate>]=]}}

return p