Difference between revisions of "Template: Infobox"

From Nydus Network
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
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">[[Vorlage:ProjektInfoBox/doc|[box 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}}}<!--
 
-->}}
 
|}[[Kategorie:Projekt]][[Kategorie:Projektstatus {{#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}}}}} -->
 
 
{{#arraymap:{{{tags|}}}|,|<item>|[[Kategorie:<item>|<item>]]| }}
 
 
{{#default_form:Projekt}}
 
{{DISPLAYTITLE:{{{name|}}} }}
 
</includeonly>
 
 
<noinclude>
 
<noinclude>
 
This is the "Infobox" template.
 
This is the "Infobox" template.
Line 74: Line 5:
 
{{Infobox
 
{{Infobox
 
|name        = Name of the project, default is the sitename.
 
|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)
+
|status      = Set the status of the project.
 
|image      = Requires a file name. settled to 220px.
 
|image      = Requires a file name. settled to 220px.
 
|description = Describe the project.
 
|description = Describe the project.
Line 85: Line 16:
 
}}
 
}}
 
</pre>
 
</pre>
{{Infobox
+
</noinclude><includeonly>{| class="wikitable"
|name       =
+
! <span style="font-size: larger;">
|status     =
+
{{PAGENAME}}</span>
|image       =
+
|-
|description =
+
! Name
|author     =
+
| {{{name|}}}
|version     =
+
|-
|platform   =
+
! Status
|license     =
+
| {{{status|}}}
|download    =
+
|-
|update      =
+
! Image
}}
+
| {{{image|}}}
</noinclude><includeonly>{| class="wikitable"
+
|-
 +
! Description
 +
| {{{description|}}}
 +
|-
 +
! Author
 +
| {{{author|}}}
 +
|-
 +
! Version
 +
| {{{version|}}}
 +
|-
 +
! Platform
 +
| {{{platform|}}}
 +
|-
 +
! License
 +
| {{{license|}}}
 +
|-
 +
! Download
 +
| {{{download|}}}
 
|-
 
|-
!  
+
! Update
| {{#ask:[[T2 project::{{SUBJECTPAGENAME}}]]|format=list}}
+
| {{{update|}}} | {{#ask:[[T2 project::{{SUBJECTPAGENAME}}]]|format=list}}
 
|}
 
|}
 
</includeonly>
 
</includeonly>

Latest revision as of 18:52, 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.
|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.
}}