Vorlage:Infobox/Modul: Unterschied zwischen den Versionen

Aus OMSI-Tools
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 2: Zeile 2:
<languages/>
<languages/>
</noinclude>
</noinclude>
<includeonly>
<includeonly>
<templatestyles src="Vorlage:Infobox/styles.css"/>
<templatestyles src="Vorlage:Infobox/styles.css"/>
{{#switch: {{{STATUS}}}
| development = <table class="infobox infobox-side border-blue"> <tr class="infobox-head-blue">
| stable = <table class="infobox infobox-side border-green"> <tr class="infobox-head-green">
| removed = <table class="infobox infobox-side border-black"> <tr class="infobox-head-black">
| inactive = <table class="infobox infobox-side border-grey"> <tr class="infobox-head-grey">
| #default = <table class="infobox infobox-side border-grey"> <tr class="infobox-head-grey">}}
<td>[[Datei:IconModule.svg|30px|link=]]</td>
<th>{{#if:{{{MODULENAME|}}}|{{{MODULENAME}}}|~~EMPTY~~}}</th>
</tr>
<tr>
<td class="infobox-image" colspan="2">
{{#if:{{{IMAGE|}}}|[[{{{IMAGE}}}|250px]]|[[Datei:Placeholder.jpg|250px]]}}
</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr>
<th><translate><!--T:40--> Status</translate></th>
<td>{{#switch: {{{STATUS}}}
| development = <translate><!--T:41--> In Entwicklung</translate>
| stable = <translate><!--T:42--> Stabil</translate>
| removed = <translate><!--T:43--> Entfernt</translate>
| inactive = <translate><!--T:44--> Inaktiv</translate>
| <translate><!--T:51--> Unbekannt</translate>}}
</td>
</tr>
{{#if:{{{ALSOKNOWNAS|}}}|<tr>
<th><translate><!--T:45--> Auch bekannt als</translate></th>
<td>{{{ALSOKNOWNAS}}}</td>
</tr>}}
<tr>
<th><translate><!--T:46--> Klassenname</translate></th>
<td class="monospace">{{#if:{{{CLASSNAME|}}}|{{{CLASSNAME}}}|~~EMPTY~~}}</td>
</tr>
<tr>
<th><translate><!--T:47--> Eingeführt</translate></th>
<td class="monospace">{{#if:{{{INTRODUCED|}}}|{{{INTRODUCED}}}|~~EMPTY~~}}</td>
</tr>
{{#if:{{{PARENTMODULES|}}}|<tr>
<th><translate><!--T:48--> Übergeordnete Module</translate></th>
<td>{{{PARENTMODULES}}}</td>}}
</tr>
{{#if:{{{SUBMODULES|}}}|<tr>
<th><translate><!--T:49--> Untergeordnete Module</translate></th>
<td>{{{SUBMODULES}}}</td>}}
</tr>
{{#if:{{{FURTHERINFORMATION|}}}|<tr>
<th><translate><!--T:50--> Weitere Informationen</translate></th>
<td>{{{FURTHERINFORMATION}}}</td>}}
</tr>
</table>
</td>
</tr>
</table>
</includeonly>


{{#switch: {{{STATUS}}}
= Vorschau =
| development = <table class="infobox infobox-side border-blue"> <tr class="infobox-head-blue">
{|
| stable = <table class="infobox infobox-side border-green"> <tr class="infobox-head-green">
| {{Infobox/Modul | MODULENAME = development | STATUS = development }} || {{Infobox/Modul | MODULENAME = stable | STATUS = stable }}
| removed = <table class="infobox infobox-side border-black"> <tr class="infobox-head-black">
|-
| inactive = <table class="infobox infobox-side border-grey"> <tr class="infobox-head-grey">
| {{Infobox/Modul | MODULENAME = inactive | STATUS = inactive }} || {{Infobox/Modul | MODULENAME = removed | STATUS = removed }}
| #default = <table class="infobox infobox-side border-grey"> <tr class="infobox-head-grey">}}
|-
<td>[[Datei:IconModule.svg|30px|link=]]</td>
| {{Infobox/Modul | MODULENAME = unknown | STATUS = bla }} ||
<th>{{#if:{{{MODULENAME|}}}|{{{MODULENAME}}}|~~EMPTY~~}}</th>
|}
</tr>
 
<tr>
<hr/>
<td class="infobox-image" colspan="2">
{{#if:{{{IMAGE|}}}|[[{{{IMAGE}}}|250px]]|[[Datei:Placeholder.jpg|250px]]}}
</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr>
<th><translate><!--T:40--> Status</translate></th>
<td>{{#switch: {{{STATUS}}}
                                | development = <translate><!--T:41--> In Entwicklung</translate>
                                | stable = <translate><!--T:42--> Stabil</translate>
                                | removed = <translate><!--T:43--> Entfernt</translate>
                                | inactive = <translate><!--T:44--> Inaktiv</translate>
                                | <translate><!--T:51--> Unbekannt</translate>}}
                            </td>
</tr>
                        {{#if:{{{ALSOKNOWNAS|}}}|<tr>
<th><translate><!--T:45--> Auch bekannt als</translate></th>
<td>{{{ALSOKNOWNAS}}}</td>
</tr>}}
<tr>
<th><translate><!--T:46--> Klassenname</translate></th>
<td class="monospace">{{#if:{{{CLASSNAME|}}}|{{{CLASSNAME}}}|~~EMPTY~~}}</td>
</tr>
                        <tr>
<th><translate><!--T:47--> Eingeführt</translate></th>
<td class="monospace">{{#if:{{{INTRODUCED|}}}|{{{INTRODUCED}}}|~~EMPTY~~}}</td>
</tr>
                        {{#if:{{{PARENTMODULES|}}}|<tr>
<th><translate><!--T:48--> Übergeordnete Module</translate></th>
<td>{{{PARENTMODULES}}}</td>}}
</tr>
                        {{#if:{{{SUBMODULES|}}}|<tr>
<th><translate><!--T:49--> Untergeordnete Module</translate></th>
<td>{{{SUBMODULES}}}</td>}}
</tr>
                        {{#if:{{{FURTHERINFORMATION|}}}|<tr>
<th><translate><!--T:50--> Weitere Informationen</translate></th>
<td>{{{FURTHERINFORMATION}}}</td>}}
</tr>
</table>
</td>
</tr>
</table>
</includeonly>


<noinclude>
<noinclude>
Zeile 129: Zeile 140:
}
}
</templatedata>
</templatedata>
<hr/>
= 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 }}
|}


<hr/>
Template source code:
Template source code:
  <nowiki>{{Infobox/Modul
  <nowiki>{{Infobox/Modul

Version vom 5. August 2023, 23:20 Uhr

Sprachen:



Vorschau

development

Status In Entwicklung
Klassenname ???
Geplante Einführung Unbekannt

stable

Status Stabil
Klassenname ???
Eingeführt Unbekannt

inactive

Status Inaktiv
Klassenname ???
Eingeführt Unbekannt

removed

Status Entfernt
Klassenname ???
Eingeführt Unbekannt

unknown

Status Unbekannt
Klassenname ???
Eingeführt Unbekannt

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=
}}