Vorlage:Infobox/Modul: Unterschied zwischen den Versionen

Aus OMSI-Tools
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Markierung: Manuelle Zurücksetzung
 
(41 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
<noinclude>
<noinclude><languages/></noinclude><includeonly>
<languages/>
<templatestyles src="Vorlage:Infobox/styles.css"/>
</noinclude>
{{#switch: {{{STATUS}}}
<templatestyles src="Vorlage:Infobox/styles.css"/>
| development = <table class="infobox infobox-side border-blue"> <tr class="infobox-head-blue">
{{#switch: {{{STATUS}}}
| stable = <table class="infobox infobox-side border-green"> <tr class="infobox-head-green">
| development = <table class="infobox infobox-side border-blue"> <tr class="infobox-head-blue">
| removed = <table class="infobox infobox-side border-black"> <tr class="infobox-head-black">
| stable = <table class="infobox infobox-side border-green"> <tr class="infobox-head-green">
| inactive = <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">
| #default = <table class="infobox infobox-side border-grey"> <tr class="infobox-head-grey">}}
| inactive = <table class="infobox infobox-side border-grey"> <tr class="infobox-head-grey">
<td>[[Datei:IconModule.svg|30px|link=]]</td>
| #default = <table class="infobox infobox-side border-grey"> <tr class="infobox-head-grey">}}
<th>{{#if:{{{MODULENAME|}}}|{{{MODULENAME}}}|???}}</th>
<td>[[Datei:IconModule.svg|30px|link=]]</td>
</tr>
<th>{{#if:{{{MODULENAME|}}}|{{{MODULENAME}}}|~~EMPTY~~}}</th>
<tr>
</tr>
<td class="infobox-image" colspan="2">
<tr>
{{#if:{{{IMAGE|}}}|[[{{{IMAGE}}}|300px]]|[[Datei:Placeholder.jpg|300px]]}}
<td class="infobox-image" colspan="2">
</td>
{{#if:{{{IMAGE|}}}|[[{{{IMAGE}}}|250px]]|[[Datei:Placeholder.jpg|250px]]}}
</tr>
</td>
<tr>
</tr>
<td colspan="2">
<tr>
<table class="infobox-inner-table">
<td colspan="2">
<tr>
<table>
<th><translate><!--T:40--> Status</translate></th>
<tr>
<td>{{#switch: {{{STATUS}}}
<th><translate><!--T:40--> Status</translate></th>
| development = <translate><!--T:41--> In Entwicklung</translate>
<td>{{#switch: {{{STATUS}}}
| stable = <translate><!--T:42--> Stabil</translate>
                                | development = <translate><!--T:41--> In Entwicklung</translate>
| removed = <translate><!--T:43--> Entfernt</translate>
                                | stable = <translate><!--T:42--> Stabil</translate>
| inactive = <translate><!--T:44--> Inaktiv</translate>
                                | removed = <translate><!--T:43--> Entfernt</translate>
| <translate><!--T:51--> Unbekannt</translate>}}
                                | inactive = <translate><!--T:44--> Inaktiv</translate>
</td>
                                | <translate><!--T:51--> Unbekannt</translate>}}
</tr>
                            </td>
{{#if:{{{ALSOKNOWNAS|}}}|<tr>
</tr>
<th><translate><!--T:45--> Auch bekannt als</translate></th>
                        {{#if:{{{ALSOKNOWNAS|}}}|<tr>
<td>{{{ALSOKNOWNAS}}}</td>
<th><translate><!--T:45--> Auch bekannt als</translate></th>
</tr>}}
<td>{{{ALSOKNOWNAS}}}</td>
<tr>
</tr>}}
<th><translate><!--T:46--> Klassenname</translate></th>
<tr>
<td class="monospace">{{#if:{{{CLASSNAME|}}}|{{{CLASSNAME}}}|???}}</td>
<th><translate><!--T:46--> Klassenname</translate></th>
</tr>
<td class="monospace">{{#if:{{{CLASSNAME|}}}|{{{CLASSNAME}}}|~~EMPTY~~}}</td>
<tr>
</tr>
<th>[[Spezial:Meine_Sprache/Versionsverzeichnis|{{#ifeq:{{{STATUS}}}|development
                        <tr>
                                            |<translate><!--T:58--> Geplante Einführung</translate>|<translate><!--T:47--> Eingeführt</translate>
<th><translate><!--T:47--> Eingeführt</translate></th>
                                        }}]]</th>
<td class="monospace">{{#if:{{{INTRODUCED|}}}|{{{INTRODUCED}}}|~~EMPTY~~}}</td>
<td>{{#if:{{{INTRODUCED|}}}
</tr>
                                        |<span class="monospace">{{{INTRODUCED}}}</span>|<translate><!--T:55--> Unbekannt</translate>
                        {{#if:{{{PARENTMODULES|}}}|<tr>
                                    }}</td>
<th><translate><!--T:48--> Übergeordnete Module</translate></th>
</tr>
<td>{{{PARENTMODULES}}}</td>}}
                            {{#if:{{{REMOVED|}}}|<tr>
</tr>
<th><span class="monospace">{{Farbe|TEXT=<translate><!--T:57--> Entfernt</translate>|COLOR=red}}</span></th>
                        {{#if:{{{SUBMODULES|}}}|<tr>
<td>{{{REMOVED}}}</td>}}
<th><translate><!--T:49--> Untergeordnete Module</translate></th>
</tr>
<td>{{{SUBMODULES}}}</td>}}
{{#if:{{{PARENTMODULES|}}}|<tr>
</tr>
<th><translate><!--T:48--> Übergeordnete Module</translate></th>
                        {{#if:{{{FURTHERINFORMATION|}}}|<tr>
<td>{{{PARENTMODULES}}}</td>}}
<th><translate><!--T:50--> Weitere Informationen</translate></th>
</tr>
<td>{{{FURTHERINFORMATION}}}</td>}}
{{#if:{{{SUBMODULES|}}}|<tr>
</tr>
<th><translate><!--T:49--> Untergeordnete Module</translate></th>
</table>
<td>{{{SUBMODULES}}}</td>}}
</td>
</tr>
</tr>
{{#if:{{{FURTHERINFORMATION|}}}|<tr>
</table>
<th><translate><!--T:50--> Weiteres</translate></th>
<td>{{{FURTHERINFORMATION}}}</td>}}
</tr>
</table>
</td>
</tr>
</table>
</includeonly><noinclude>
= 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 }} ||
|}


<noinclude>
<hr/>
[[Kategorie:Infoboxen{{#translation:}}]]
[[Kategorie:Alle_Vorlagen{{#translation:}}]]
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"MODULENAME": {
"MODULENAME": {
"label": "Module name",
"label": "Modulname",
"description": "Module name - use the same name as the page name",
"description": "Modulname - gleichen Namen wie den Seitennamen nutzen",
"type": "line",
"type": "line",
"required": true,
"required": true,
Zeile 73: Zeile 86:
},
},
"IMAGE": {
"IMAGE": {
"label": "Image",
"label": "Bild",
"description": "Preview image",
"description": "Vorschaubild des Moduls (inApp-Screenshot)",
"type": "unbalanced-wikitext",
"type": "unbalanced-wikitext",
"suggested": true,
"suggested": true,
"example": "File:Image"
"example": "Datei:Bild.png",
"required": true
},
},
"STATUS": {
"STATUS": {
"label": "Status",
"label": "Status",
"description": "Current status - possible values:  <code>development</code> | <code>stable</code> | <code>removed</code> | <code>inactive</code>",
"description": "Modulstatus",
"type": "line",
"type": "line",
"required": true
"required": true,
"suggested": true,
"suggestedvalues": [
"development",
"stable",
"removed",
"inactive"
]
},
},
"ALSOKNOWNAS": {
"ALSOKNOWNAS": {
"label": "Also known as",
"label": "Aliasse",
"description": "Alternate module name(s)",
"description": "Alternative Modulnamen",
"type": "line",
"type": "line",
"suggested": true
"suggested": true
},
},
"CLASSNAME": {
"CLASSNAME": {
"label": "Class name",
"label": "Klassenname",
"description": "Module class name",
"description": "Klassenname des Moduls / der Module",
"type": "line",
"type": "content",
"required": true
"required": true,
"suggested": true
},
},
"INTRODUCED": {
"INTRODUCED": {
"label": "Introduced",
"label": "Einführung",
"description": "Version in which the module will be / is / was introduced",
"description": "Version(en), in welcher das Modul eingeführt wurde",
"type": "line",
"type": "line",
"required": true
"required": true,
"suggested": true
},
},
"PARENTMODULES": {
"PARENTMODULES": {
"label": "Parent modules",
"label": "Übergeordnete Module",
"description": "Module from which the module is available",
"description": "Module, von welchem sich das aktuelle aufrufen lässt",
"type": "unbalanced-wikitext",
"type": "unbalanced-wikitext",
"suggested": true
"suggested": true
},
},
"SUBMODULES": {
"SUBMODULES": {
"label": "Sub modules",
"label": "Untergeordnete Module",
"description": "Sub modules - please give one page link for a module per line (e.g. Special:MyLanguage/Create_a_font)",
"description": "Module, die sich von dem aktuellen aufrufen lassen",
"type": "unbalanced-wikitext",
"type": "unbalanced-wikitext",
"suggested": true
"suggested": true
},
},
"FURTHERINFORMATION": {
"FURTHERINFORMATION": {
"label": "Further information",
"label": "Weiteres",
"description": "Further information about the topic (e.g. links to other wikis).",
"description": "Weitere Informationen (z.B. Wiki-Links)",
"type": "unbalanced-wikitext",
"type": "unbalanced-wikitext",
"suggested": true
"suggested": true
},
"REMOVED": {
"label": "Entfernung",
"description": "Version(en), in denen das Modul entfernt wurde",
"type": "line"
}
}
},
},
"description": "Gives general information about a module",
"description": "Zeigt allgemeine Informationen über ein Modul an",
"format": "block"
"format": "block",
"paramOrder": [
"MODULENAME",
"IMAGE",
"STATUS",
"ALSOKNOWNAS",
"CLASSNAME",
"INTRODUCED",
"REMOVED",
"PARENTMODULES",
"SUBMODULES",
"FURTHERINFORMATION"
]
}
}
</templatedata>
</templatedata>
Template source code:
 
Beispielcode:
  <nowiki>{{Infobox/Modul
  <nowiki>{{Infobox/Modul
  |MODULENAME=
  |MODULENAME=

Aktuelle Version vom 19. Mai 2024, 00:51 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

Zeigt allgemeine Informationen über ein Modul an

[Vorlagendaten bearbeiten]

Vorlagenparameter

Diese Vorlage bevorzugt Blockformatierung von Parametern.

ParameterBeschreibungTypStatus
ModulnameMODULENAME

Modulname - gleichen Namen wie den Seitennamen nutzen

Zeileerforderlich
BildIMAGE

Vorschaubild des Moduls (inApp-Screenshot)

Beispiel
Datei:Bild.png
Unausgeglichener Wikitexterforderlich
StatusSTATUS

Modulstatus

Vorgeschlagene Werte
development stable removed inactive
Zeileerforderlich
AliasseALSOKNOWNAS

Alternative Modulnamen

Zeilevorgeschlagen
KlassennameCLASSNAME

Klassenname des Moduls / der Module

Inhalterforderlich
EinführungINTRODUCED

Version(en), in welcher das Modul eingeführt wurde

Zeileerforderlich
EntfernungREMOVED

Version(en), in denen das Modul entfernt wurde

Zeileoptional
Übergeordnete ModulePARENTMODULES

Module, von welchem sich das aktuelle aufrufen lässt

Unausgeglichener Wikitextvorgeschlagen
Untergeordnete ModuleSUBMODULES

Module, die sich von dem aktuellen aufrufen lassen

Unausgeglichener Wikitextvorgeschlagen
WeiteresFURTHERINFORMATION

Weitere Informationen (z.B. Wiki-Links)

Unausgeglichener Wikitextvorgeschlagen

Beispielcode:

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