Difference between revisions of "Template: Infobox"

From Nydus Network
Jump to: navigation, search
Line 1: Line 1:
{| style="float: right; background-color: white; width:280px; border: 2px solid {{#switch: {{lc: {{{status|unknown}}}<!-- -->}}|<!--
 
  -->experimental=rgb(255,48,32)|beta=rgb(96,128,224)|stable=rgb(64,192,64)|obsolete=rgb(0,0,0)|<!--
 
  -->rgb(154,154,154)<!--
 
-->}}; border-collapse: collapse; margin:0 0 0.5em 0.5em;"
 
|- style="background-color: {{#switch: {{lc: {{{status|unknown}}}<!-- -->}}|<!--
 
  -->experimental=rgb(255,48,32)|beta=rgb(96,128,224)|stable=rgb(64,192,64)|obsolete=rgb(0,0,0)|<!--
 
  -->rgb(154,154,154)<!--
 
-->}}; color:white; text-align:left;"
 
! colspan="2" style="padding-top: 0.5em; padding-left:12px" | <!--
 
  --><span style="font-size: 130%;">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}<!--
 
-->}}</span><br />
 
Release status: {{#switch: {{lc: {{{status|unknown}}}<!-- -->}}|<!--
 
  -->experimental|beta|stable|obsolete={{{status}}}|<!--
 
  -->unknown<!--
 
-->}}
 
<small style="float:right">doku</small>
 
|- style="border-bottom:1px solid #F0F0F0;"
 
{{#if:{{{image|}}}|<!--
 
  -->{{col sep}} colspan="2" style="text-align: center; padding: 12px;" {{!}} [[Image:{{{image}}}|{{{imagesize|220}}}px]]<!--
 
-->}}
 
|- style="border-bottom:1px solid #F0F0F0;"
 
| style="vertical-align: top; padding:0.2em 0.5em;" | '''Description''' || {{{description}}}
 
|- style="border-bottom:1px solid #F0F0F0;"
 
{{#if:{{{author|{{{username|}}}}}}|<!--
 
  -->{{col sep}} style="vertical-align: top; padding:0.2em 0.5em;" {{!}} '''Author(s)'''<!--
 
  -->{{col sep}} {{#if: {{{username|}}} |<!--
 
      -->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!--
 
        nothing
 
      -->|<!--else--><!--
 
        -->{{{author}}} (<!--
 
      -->}}<!--
 
      -->[[Benutzer:{{{username}}}|{{{username}}}]]<!--
 
      -->{{#ifeq: {{{username}}}|{{{author|{{{username}}}<!-- -->}}}|<!--
 
        nothing
 
      -->|<!--else--><!--
 
        -->)<!--
 
      -->}}<!--
 
  -->|<!--else--><!--
 
      -->{{{author}}}<!--
 
  -->}}<!--
 
-->}}
 
|- style="border-bottom:1px solid #F0F0F0;"
 
{{#if:{{{version|}}}|<!--
 
  -->{{col sep}} style="vertical-align: top; padding:0.2em 0.5em;" {{!}} '''Last Version'''<!--
 
  -->{{col sep}} {{{version}}}{{#ifeq:{{{update|}}}||&#160;<sup>({{{update|}}})</sup>}}<!--
 
-->}}
 
|- style="border-bottom:1px solid #F0F0F0;"
 
{{#if:{{{platform|}}}|<!--
 
  -->{{col sep}} style="vertical-align: top; padding:0.2em 0.5em;" {{!}} '''Platform'''<!--
 
  -->{{col sep}} {{{platform}}}<!--
 
-->}}
 
|- style="border-bottom:1px solid #F0F0F0;"
 
{{#if:{{{license|}}}|<!--
 
  -->{{col sep}} style="vertical-align: top; padding:0.2em 0.5em;" {{!}} '''License'''<!--
 
  -->{{col sep}} {{{license}}}<!--
 
-->}}
 
|- style="border-bottom:1px solid #F0F0F0;"
 
{{#if:{{{download|}}}|<!--Spezial:Hochladen
 
  -->{{col sep}} style="vertical-align: top; padding:0.2em 0.5em;" {{!}} '''Download'''<!--
 
  -->{{col sep}} {{{download}}}<!--
 
-->}}
 
|}[[Category:Project]][[Category:Projectstatus {{#switch:{{lc: {{{status|unknown}}}}}|experimental=Experimental|beta=Beta|stable=Stable|obsolete=Obsolete|Unbekannt}}]]{{#set:pr_title={{{name|{{PAGENAME}}}}}}}{{#set:pr_status={{{status}}}}}{{#set:pr_image={{{image}}}}}{{#set:pr_description={{{description}}}}}{{#set:pr_authors={{{author}}}}}{{#set:pr_username={{{username}}}}}{{#set:pr_version={{{version}}}}}{{#set:pr_update={{{update|}}} }}{{#set:pr_platform={{{platform}}}}}{{#set:pr_license={{{license}}}}}
 
<!-- {{#set:pr_download={{{download}}}}} -->
 
 
{{DISPLAYTITLE:{{{name|}}} }}
 
</includeonly>
 
 
<noinclude>
 
<noinclude>
 
This is the "Infobox" template.
 
This is the "Infobox" template.

Revision as of 17:57, 23 May 2018

This is the "Infobox" template. It should be called in the following format:

{{Infobox
|name        = Name of the project, default is the sitename.
|status      = Set the status of the project, fals options will set it to "unkown". (options: experimental, stable and obsolete)
|image       = Requires a file name. settled to 220px.
|description = Describe the project.
|author      = Who is in charge?
|version     = Optional: Give Feedback to your current version.
|platform    = Optional: Indicate further platforms, where your project is developed.
|license     = Optional: Name the license of your project.
|download    = Optional: Set a downloadable URL for your project.
|update      = Function for further extensions.
}}