Vorlage:Service portal/doc: Unterschied zwischen den Versionen

IMT HilfeWiki - das Wiki
 
imported>Oetterer
 
(Eine dazwischenliegende Version von einem anderen Benutzer wird nicht angezeigt)
Zeile 2: Zeile 2:
 
<!-- Categories go at the bottom of this page. -->
 
<!-- Categories go at the bottom of this page. -->
 
== Description ==
 
== Description ==
Adds a descriptive infobox to a service landing page with some helpful information. Also adds some structural and sematic data.
+
{{lua|Module:Service portal|Module:Article/config|Module:Arguments|Modul:Error|Modul:Infobox|Module:TableTools|Module:SmwUtil}}Adds a descriptive infobox to a service landing page with some helpful information. Also adds some structural and sematic data.
  
 
== Parameters ==
 
== Parameters ==
Zeile 37: Zeile 37:
 
<!-- see https://www.mediawiki.org/wiki/Extension:TemplateData#Format for more information about template data -->
 
<!-- see https://www.mediawiki.org/wiki/Extension:TemplateData#Format for more information about template data -->
 
== Usage ==
 
== Usage ==
{{code|lang=bibtex|code=<nowiki>
+
<pre>
 
{{service portal
 
{{service portal
 
|image=
 
|image=
Zeile 44: Zeile 44:
 
|glossary=
 
|glossary=
 
}}
 
}}
</nowiki>}}
+
</pre>
 
 
== Exposed values ==
 
The templates sets these arrays and variables to the described values:
 
 
 
=== Variables ===
 
;defaulttargetgroup
 
:this holds the default value for targetgroup, when non is specified by user
 
:set to ''"Angestellte, Gäste, Studierende"''
 
;label_defaulttargetgroup
 
:the default targetgroup (whether provided by user or by defaulting with {{((}}var:defaulttargetgroup{{))}}) will be replaced by this string
 
:set to ''"Endbenutzer"''
 
;image
 
:complete link to the service image
 
;service_description
 
:the short description for this service
 
;servicename
 
:Name of Service, derived from pagename
 
;targetgroup
 
:temporary value used for plausibility tests
 
;url2status
 
:Prefix/url used in the automatically created link to a "statusmeldungsicon"
 
:set to ''"https://statusmeldungen.uni-paderborn.de/state.php?service"''
 
;url2status_suffix
 
:Suffix used in the automatically created link to a "statusmeldungsicon"
 
:set to ''".png"''
 
 
 
=== Arrays ===
 
;input_targetgroup
 
:values for target group provided by user
 
;output_targetgroup
 
:targroup(s) after processing. filtered out all non valid entries
 
;targetgroup_valid_values
 
:all valid entries for target group
 
 
 
  
 
== See also ==
 
== See also ==
Zeile 85: Zeile 51:
 
* {{tl|os family}}
 
* {{tl|os family}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
[[Category:Hilfewiki templates]]<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<!-- ADD CATEGORIES AFTER THIS LINE -->
 
<!-- ADD CATEGORIES AFTER THIS LINE -->
[[Category:Infobox templates]][[Category:Hilfewiki templates]]
+
[[Category:Infobox templates]]
 
}}
 
}}
 
}}</includeonly>
 
}}</includeonly>

Aktuelle Version vom 28. Februar 2023, 18:48 Uhr

Description[Quelltext bearbeiten]

Adds a descriptive infobox to a service landing page with some helpful information. Also adds some structural and sematic data.

Parameters[Quelltext bearbeiten]

For a service portal / service landing page this produces an infobox and sets some sematic data

Vorlagenparameter

ParameterBeschreibungTypStatus
Service imageimage

name of image or link to image to use; can be a simple string in which case the appropriate image from statusmeldung will be used

Standard
Logo_{{BASEPAGENAME}}.png
Dateivorgeschlagen
audience/target grouptargetgroup

The group of user/people, the service is implemented for, i.e. who can use this service

Standard
Angestellte, Gäste, Studierende
Zeilevorgeschlagen
Short descriptiondescription

A short description of this service

Zeichenfolgevorgeschlagen
glossary entryglossary

Set to true enters the service portal in the global glossary - provided description is set.

Booleschoptional

Usage[Quelltext bearbeiten]

{{service portal
|image=
|targetgroup=
|description=
|glossary=
}}

See also[Quelltext bearbeiten]

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