Vorlage:Infobox/Modul/en: Unterschied zwischen den Versionen

Aus OMSI-Tools
(Übernehme Bearbeitung einer neuen Version der Quellseite)
(Übernehme Bearbeitung einer neuen Version der Quellseite)
Zeile 2: Zeile 2:
<languages/>
<languages/>
</noinclude>
</noinclude>
<templatestyles src="Vorlage:Infobox/styles.css"/>
 
{{#switch: {{{STATUS}}}
<includeonly>
| development = <table class="infobox infobox-side border-blue"> <tr class="infobox-head-blue">
<templatestyles src="Vorlage:Infobox/styles.css"/>
| stable = <table class="infobox infobox-side border-green"> <tr class="infobox-head-green">
{{#switch: {{{STATUS}}}
| removed = <table class="infobox infobox-side border-black"> <tr class="infobox-head-black">
| development = <table class="infobox infobox-side border-blue"> <tr class="infobox-head-blue">
| inactive = <table class="infobox infobox-side border-grey"> <tr class="infobox-head-grey">
| stable = <table class="infobox infobox-side border-green"> <tr class="infobox-head-green">
| #default = <table class="infobox infobox-side border-grey"> <tr class="infobox-head-grey">}}
| removed = <table class="infobox infobox-side border-black"> <tr class="infobox-head-black">
<td>[[Datei:IconModule.svg|30px|link=]]</td>
| inactive = <table class="infobox infobox-side border-grey"> <tr class="infobox-head-grey">
<th>{{#if:{{{MODULENAME|}}}|{{{MODULENAME}}}|~~EMPTY~~}}</th>
| #default = <table class="infobox infobox-side border-grey"> <tr class="infobox-head-grey">}}
</tr>
<td>[[Datei:IconModule.svg|30px|link=]]</td>
<tr>
<th>{{#if:{{{MODULENAME|}}}|{{{MODULENAME}}}|~~EMPTY~~}}</th>
<td class="infobox-image" colspan="2">
</tr>
{{#if:{{{IMAGE|}}}|[[{{{IMAGE}}}|250px]]|[[Datei:Placeholder.jpg|250px]]}}
<tr>
</td>
<td class="infobox-image" colspan="2">
</tr>
{{#if:{{{IMAGE|}}}|[[{{{IMAGE}}}|250px]]|[[Datei:Placeholder.jpg|250px]]}}
<tr>
</td>
<td colspan="2">
</tr>
<table>
<tr>
<tr>
<td colspan="2">
<th>Status</th>
<table>
<td>{{#switch: {{{STATUS}}}
<tr>
                                | development = In Entwicklung
<th>Status</th>
                                | stable = Stable
<td>{{#switch: {{{STATUS}}}
                                | removed = Removed
| development = In Entwicklung
                                | inactive = Inactive
| stable = Stable
                                | Unknown}}
| removed = Removed
                            </td>
| inactive = Inactive
</tr>
| Unknown}}
                        {{#if:{{{ALSOKNOWNAS|}}}|<tr>
</td>
<th>Also known as</th>
</tr>
<td>{{{ALSOKNOWNAS}}}</td>
{{#if:{{{ALSOKNOWNAS|}}}|<tr>
</tr>}}
<th>Also known as</th>
<tr>
<td>{{{ALSOKNOWNAS}}}</td>
<th>Class name</th>
</tr>}}
<td class="monospace">{{#if:{{{CLASSNAME|}}}|{{{CLASSNAME}}}|~~EMPTY~~}}</td>
<tr>
</tr>
<th>Class name</th>
                        <tr>
<td class="monospace">{{#if:{{{CLASSNAME|}}}|{{{CLASSNAME}}}|~~EMPTY~~}}</td>
<th>Introduced</th>
</tr>
<td class="monospace">{{#if:{{{INTRODUCED|}}}|{{{INTRODUCED}}}|~~EMPTY~~}}</td>
<tr>
</tr>
<th>Introduced</th>
                        {{#if:{{{PARENTMODULES|}}}|<tr>
<td class="monospace">{{#if:{{{INTRODUCED|}}}|{{{INTRODUCED}}}|~~EMPTY~~}}</td>
<th>Parent modules</th>
</tr>
<td>{{{PARENTMODULES}}}</td>}}
{{#if:{{{PARENTMODULES|}}}|<tr>
</tr>
<th>Parent modules</th>
                        {{#if:{{{SUBMODULES|}}}|<tr>
<td>{{{PARENTMODULES}}}</td>}}
<th>Sub modules</th>
</tr>
<td>{{{SUBMODULES}}}</td>}}
{{#if:{{{SUBMODULES|}}}|<tr>
</tr>
<th>Sub modules</th>
                        {{#if:{{{FURTHERINFORMATION|}}}|<tr>
<td>{{{SUBMODULES}}}</td>}}
<th>Further information</th>
</tr>
<td>{{{FURTHERINFORMATION}}}</td>}}
{{#if:{{{FURTHERINFORMATION|}}}|<tr>
</tr>
<th>Further information</th>
</table>
<td>{{{FURTHERINFORMATION}}}</td>}}
</td>
</tr>
</tr>
</table>
</table>
</td>
</tr>
</table>
</includeonly>
 
= Vorschau =
{|
| {{Infobox/Modul | MODULENAME = development | STATUS = development }} || {{Infobox/Modul | MODULENAME = stable | STATUS = stable }}
|-
| {{Infobox/Modul | MODULENAME = inactive | STATUS = inactive }} || {{Infobox/Modul | MODULENAME = removed | STATUS = removed }}
|-
| {{Infobox/Modul | MODULENAME = unknown | STATUS = bla }} ||
|}
 
<hr/>


<noinclude>
<noinclude>
Zeile 126: Zeile 140:
}
}
</templatedata>
</templatedata>
Template source code:
Template source code:
  <nowiki>{{Infobox/Modul
  <nowiki>{{Infobox/Modul

Version vom 5. August 2023, 23:21 Uhr

Sprachen:



Vorschau

development

Status In development
Class name ???
Planned implementation Unknown

stable

Status Stable
Class name ???
Implemented Unknown

inactive

Status Inactive
Class name ???
Implemented Unknown

removed

Status Removed
Class name ???
Implemented Unknown

unknown

Status Unknown
Class name ???
Implemented Unknown

Gives general information about a module

[Vorlagendaten bearbeiten]

Vorlagenparameter

Diese Vorlage bevorzugt Blockformatierung von Parametern.

ParameterBeschreibungTypStatus
Module nameMODULENAME

Module name - use the same name as the page name

Zeileerforderlich
ImageIMAGE

Preview image

Beispiel
File:Image
Unausgeglichener Wikitextvorgeschlagen
StatusSTATUS

Current status - possible values: <code>development</code> | <code>stable</code> | <code>removed</code> | <code>inactive</code>

Zeileerforderlich
Also known asALSOKNOWNAS

Alternate module name(s)

Zeilevorgeschlagen
Class nameCLASSNAME

Module class name

Zeileerforderlich
IntroducedINTRODUCED

Version in which the module will be / is / was introduced

Zeileerforderlich
Parent modulesPARENTMODULES

Module from which the module is available

Unausgeglichener Wikitextvorgeschlagen
Sub modulesSUBMODULES

Sub modules - please give one page link for a module per line (e.g. Special:MyLanguage/Create_a_font)

Unausgeglichener Wikitextvorgeschlagen
Further informationFURTHERINFORMATION

Further information about the topic (e.g. links to other wikis).

Unausgeglichener Wikitextvorgeschlagen

Template source code:

{{Infobox/Modul
 |MODULENAME=
 |STATUS=
 |CLASSNAME=
 |ALSOKNOWNAS=
 |PARENTMODULES=
 |SUBMODULES=
 |IMAGE=
 |INTRODUCED=
 |FURTHERINFORMATION=
}}