Vorlage:Os: Unterschied zwischen den Versionen

Permanently protected template
ZIM HilfeWiki - das Wiki
K (Schützte „Vorlage:Os“ ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt)))
imported>Oetterer
(Der Seiteninhalt wurde durch einen anderen Text ersetzt: „<includeonly>{{#invoke:Os|main}}</includeonly><noinclude> {{documentation}} <!-- Add categories to the /doc subpage, not here! -->…“)
 
Zeile 1: Zeile 1:
<includeonly><!-- this is an infobox commonly used on all os structure pages --><!--
+
<includeonly>{{#invoke:Os|main}}</includeonly><noinclude>
 
 
  for information on how to extend os-families or add a new os-family, please refer to the official documentation of this template on subsection #Maintenance
 
 
 
  1. declaration of internal variables
 
  ------------------------------------
 
-->{{#arraydefine:osfamily_valid_values|{{#ask:[[Attribut:Is member of os family]] |?Allows value= |format=list |mainlabel=- }}}}{{#vardefine:osname|{{#if:{{#pos:{{BASEPAGENAME}}|IOS}}|{{lcfirst:{{BASEPAGENAME}}}}|{{BASEPAGENAME}}<!--end of if-->}}<!--end of vardefine-->}}<!--
 
 
 
  2. parameter processing
 
  -----------------------
 
  2.1. operating system family
 
-->{{#if:{{{family|}}} |{{#vardefine:family |{{#if: {{#arraysearch:osfamily_valid_values|{{{family}}}}} |[[Is member of os family::{{{family}}}]] |{{#vardefine:error_family |UNKNOWN OS FAMILY:&thinsp;{{{family}}} }} }}<!-- end of vardefine:family -->}}| {{#vardefine:error_family |OS FAMILY OMITTED }}<!-- end of #if:{{{family|}}} else-->}}<!--
 
 
 
  2.2. image
 
-->{{#vardefine:image|{{#if:{{{image|}}}|{{#ifeq:{{#sub:{{{image}}}|0|1}}|[|{{{image}}}|[[Datei:{{{image}}}]]<!-- end of ifeq -->}}|[[Datei:Logo_{{BASEPAGENAME}}.png]]<!-- end of #if:{{{image|}}} else -->}}<!-- end of vardefine -->}}<!--
 
 
 
  2.3. year
 
-->{{#if:{{{year|}}}|{{#set:Was released in={{{year}}}}}{{#vardefine:age|{{#expr:{{CURRENTYEAR}}-{{{year}}}}}}}}}<!--
 
 
 
  3. call the infobox
 
  --------------------------------
 
 
 
-->{{Infobox
 
| title = {{#var:osname}}
 
| image = {{#var:image|Logo_{{#var:osname}}.png}}
 
| subheader = Betriebssystemfamilie: {{#var:family|{{errortext|{{#var:error_family|NONE SPECIFIED}}}}}}
 
| caption = {{#var:osname}}
 
| header1 = Information
 
| label2 = Entwickler
 
| data2 = {{{developer|}}}
 
| label3 = Erscheinungsjahr
 
| data3 = {{{year|}}}{{#if:{{#var:age|}}|{{#switch:{{#var:age}}|0 = | 1 = <nowiki> </nowiki>(vor einem Jahr)|#default = <nowiki> </nowiki>(vor {{#var:age}} Jahren)}}}}
 
| label4 = Vorgänger
 
| data4 = {{Link string|{{{predecessor|}}}}}
 
| label5 = Nachfolger
 
| data5 = {{Link string|{{{successor|}}}}}
 
| label6 = Anzahl Artikel
 
| data6 = {{#ask: [[is related to os::{{#var:osname}}]] [[Is disambiguation page::falsch]] OR [[is related to os::Any]] [[Is disambiguation page::falsch]] | format=count}}
 
<!-- end of {{Infobox -->}}
 
 
 
{{Os portal listing}}
 
 
 
{{Navbox os}}
 
[[Category:Betriebssysteme]]<!--
 
 
 
  4. start putting out some errorboxes, if applicable
 
  ---------------------------------------------------
 
 
 
-->{{#if:{{#var:error_family|}}|{{Template warning|{{#var:error_family|}}|Infobox_os}}}}</includeonly><noinclude>
 
 
{{documentation}}
 
{{documentation}}
  
 
<!-- Add categories to the /doc subpage, not here! -->
 
<!-- Add categories to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Aktuelle Version vom 28. Februar 2023, 21:26 Uhr

Documentation icon Template documentation

Description[Quelltext bearbeiten]

This templates adds an operation system to the wiki. It stores some semantic data and displays an infobox.

Parameters[Quelltext bearbeiten]

Ein Betriebssystem

Vorlagenparameter

ParameterBeschreibungTypStatus
Betriebssystemfamiliefamily

Das Betriebssystem ist dieser Familie zugeordnet

Zeileerforderlich
Bildimage

Das Logo des Betriebssystems

Dateivorgeschlagen
Entwicklerdeveloper

Der Entwickler der Betriebssystemsoftware

Zeilevorgeschlagen
Erscheinungsjahryear

Das Jahr, in dem das Betriebssystem auf den Mark gekommen ist

Nummervorgeschlagen
Vorgängerpredecessor

Das Vorgängerbetriebssystem

Seitevorgeschlagen
Nachfolgersuccessor

Das Nachfolgerbetriebssystem

Seitevorgeschlagen

Usage[Quelltext bearbeiten]

{{os
| family = <name of family>
| image = <name of image file>
| developer = <name of developer/publisher>
| year = <year of release>
| predecessor = <predecessor:Pagename>
| successor = <successor:Pagename>
}}
{{stub}}
{{draft}}

Variables[Quelltext bearbeiten]

The templates sets these variables to the described values:

age
calculated age of os in years
NOTE: month and day of release will not be taken into account, when calculating age
error_family
If plausibility test of parameter family results in an error, this stores the resulting errormessage
family
holds os family ofter plausibility test
image
wikilink to os logo image
osfamily_valid_values
array
possible/valid values for parameter {{{family}}}, no lower case conversion
osname
mangled name of os (in case of iOS, first letter is lower case)

See also[Quelltext bearbeiten]


Cookies helfen uns bei der Bereitstellung des ZIM HilfeWikis. Bei der Nutzung vom ZIM HilfeWiki werden die in der Datenschutzerklärung beschriebenen Cookies gespeichert.