Difference between revisions of "Template: Infobox"
From Nydus Network
| 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|}}}|| <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>{{#forminput:form=Projekt}}{{Transclude-Doku}}</noinclude> | ||
<noinclude> | <noinclude> | ||
This is the "Infobox" template. | This is the "Infobox" template. | ||
Revision as of 17:48, 23 May 2018
| {{#if:|{{{name}}}|Infobox}} Release status: {{#switch: unknown|experimental|beta|stable|obsolete={{{status}}}|unknown}} [box doku] | |||
|---|---|---|---|
| [[Image:{{{image}}}|220px]]}} | |||
| Description | {{{description}}} | ||
| Author(s) | {{#ifeq: {{{username}}}|{{{username}}} | {{{author}}} (}}[[Benutzer:{{{username}}}|{{{username}}}]]{{#ifeq: {{{username}}}|{{{username}}} | {{{author}}}}}}} |
| Last Version | {{{version}}}{{#ifeq: | ()}}}} | |
| Platform | {{{platform}}}}} | ||
| License | {{{license}}}}} | ||
| Download | {{{download}}}}} | ||
Property "Pr status" (as page type) with input value "{{{status}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Property "Pr image" (as page type) with input value "{{{image}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Property "Pr description" (as page type) with input value "{{{description}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Property "Pr authors" (as page type) with input value "{{{author}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Property "Pr username" (as page type) with input value "{{{username}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Property "Pr version" (as page type) with input value "{{{version}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Property "Pr platform" (as page type) with input value "{{{platform}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
Property "Pr license" (as page type) with input value "{{{license}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
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.
}}
|
Infobox | |
|---|---|
| Name | |
| Status | |
| Image | |
| Description | |
| Author | |
| Version | |
| Platform | |
| License | |
| Download | |
| Update |