Template:Infobox/Homebrew: Difference between revisions

From ConsoleMods Wiki
Jump to navigation Jump to search
(parameter checks (we really ought to copy the enwiki module, but alas, no scribunto))
(restore last good version until i can figure this out)
Tag: Manual revert
 
Line 1: Line 1:
{{Infobox
<div class="infobox">
| title  = {{{title|{{PAGENAME}}}}}
| image  = {{{image}}}


{{#if:{{{author|}}}|
<div class="infobox-title">
| title1 = Author
{{{title|{{PAGENAME}}}}}
| param1 = {{{author}}}
</div>
}}
{{#if:{{{type|}}}|
| title2 = Type
| param2 = {{{type}}}
}}
{{#if:{{{version|}}}|
| title3 = Version
| param3 = {{{version}}}
}}
{{#if:{{{license|}}}|
| title4 = License
| param4 = {{{license}}}
}}
{{#if:{{{website|}}}|
| title5 = Website
| param5 = {{{website}}}
}}
{{#if:{{{source|}}}|
| title6 = Source
| param6 = {{{source}}}
}}
{{#if:{{{download|}}}|
| title7 = Download
| param7 = {{{download}}}
}}
}}


<div class="infobox-image">
[[File:{{{image}}}|300px]]
</div>
<table>
<tr>
<th colspan="2" class="subheader">Information</th>
</tr>
{{#if:{{{author|}}}|<tr>
    <th>Author</th>
    <td>{{{author}}}</td>
</tr>}}
{{#if:{{{type|}}}|<tr>
    <th>Type</th>
    <td>{{{type}}}</td>
</tr>}}
{{#if:{{{version|}}}|<tr>
    <th>Version</th>
    <td>{{{version}}}</td>
</tr>}}
{{#if:{{{license|}}}|<tr>
    <th>License</th>
    <td>{{{license}}}</td>
</tr>}}
{{#if:{{{website||source||download|}}}|<tr>
<th class="subheader" colspan="2">Links</th>
</tr>}}
{{#if:{{{website|}}}|<tr>
    <th>Website</th>
    <td>{{{website}}}</td>
</tr>}}
{{#if:{{{source|}}}|<tr>
    <th>Source</th>
    <td>{{{source}}}</td>
</tr>}}
{{#if:{{{download|}}}|<tr>
    <th>Download(s)</th>
    <td>{{{download}}}</td>
</tr>}}
</table>
</div>
<noinclude>
<noinclude>
== Usage ==
== Usage ==

Latest revision as of 14:12, 26 October 2024

Infobox/Homebrew

[[File:{{{image}}}|300px]]

Information

Usage

{{Infobox/Homebrew
|title = Swiss
|image = xodelogo.png
|author = Sigmund Frued
|type = ODE (Optical Drive Emulator)
|version = 5.4.0.21
|license = [http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2]
|website = https://www.bing.com
|source = https://www.duckduckgo.com
|download = https://www.google.com
}}




Example

Swiss

Xodelogo.png

Information
Author Sigmund Freud
Type ODE (Optical Drive Emulator)
Version 5.4.0.21
License GNU GPL v2
Links
Website https://www.bing.com
Source https://www.duckduckgo.com
Download(s) https://www.google.com