Vorlage:Service: Unterschied zwischen den Versionen

Permanently protected template
ZIM HilfeWiki - das Wiki
Zeile 18: Zeile 18:
 
|<!-- the default, so all other pages
 
|<!-- the default, so all other pages
 
   * the serive page will be transcluded by articles. So pass comma separated list to calling article template
 
   * the serive page will be transcluded by articles. So pass comma separated list to calling article template
-->{{#if:{{{portal|}}}|{{#arraymap:{{{portal}}}|,|@@@@|{{unlink string|@@@@}}|,}}<!--
+
-->{{#if:{{{portal|}}}|{{#arraymap:{{{portal}}}|,|@@@@|[[{{unlink string|@@@@}}]]|,}}<!--
 
** no portal parameter, show textual warning
 
** no portal parameter, show textual warning
 
-->|<!-- let template article handle this-->}}<!--
 
-->|<!-- let template article handle this-->}}<!--

Version vom 18. Juli 2019, 08:15 Uhr

Documentation icon Template documentation

Description[Quelltext bearbeiten]

Links a technical service (PAGENAME) to one or many service landing page(s) (parameter portal). Page will also be categorized in Category:Services or Category:Inactive services, depending on parameter active.

When in another namespace than 3608 (Service), returns the associated service portal pages as comma separated list.

Special: When in 3500 (Meta) sets category Category:Inactive services and displays an error.

Parameters[Quelltext bearbeiten]

Links a technical service (PAGENAME) to a service landing page.

Vorlagenparameter

ParameterBeschreibungTypStatus
Serviceportalportal

Depicts the service landing page, articles belonging to that technical service are listed on

Seiteerforderlich
Aktivactive

Activates or deactivates the service.

Booleschoptional
Anzeigenamedisplayname

Sets the name for this service used in the drop down on article forms.

Zeileoptional

Usage[Quelltext bearbeiten]

{{service
|portal=PAGE
|active=Ja
}}

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.