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
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.
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
Serviceportal | portal | Depicts the service landing page, articles belonging to that technical service are listed on | Seite | erforderlich |
Aktiv | active | Activates or deactivates the service. | Boolesch | optional |
Anzeigename | displayname | Sets the name for this service used in the drop down on article forms. | Zeile | optional |
Usage[Quelltext bearbeiten]
{{service |portal=PAGE |active=Ja }}
See also[Quelltext bearbeiten]
- {{service portal}}
- {{article}}
- {{os}}