(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 13: | Zeile 13: | ||
-->|{{errortext|Bitte eine oder mehrere Serviceportalseiten angeben, auf denen Artikel für diesen Service angezeigt werden!}}[[Category:Servicepages with erroneous input]]}}<!-- | -->|{{errortext|Bitte eine oder mehrere Serviceportalseiten angeben, auf denen Artikel für diesen Service angezeigt werden!}}[[Category:Servicepages with erroneous input]]}}<!-- | ||
* set display name to {{{displayname}}} oif set, to page name otherwise | * set display name to {{{displayname}}} oif set, to page name otherwise | ||
− | -->{{#set:has display title={{#if:{{{displayname|}}}|{{{displayname}}}|{{PAGENAME}}}}}}<!-- | + | -->{{#set:has display title={{#if:{{{displayname|}}}|{{{displayname}}}|{{PAGENAME}}}}}}{{DISPLAYTITLE:{{#if:{{{displayname|}}}|{{{displayname}}}|{{PAGENAME}}}}}}<!-- |
* and now categorize the service | * and now categorize the service | ||
-->{{#ifeq:{{{active|Nein}}}|Ja|[[Category:Services]]|[[Category:Inactive services]]}} | -->{{#ifeq:{{{active|Nein}}}|Ja|[[Category:Services]]|[[Category:Inactive services]]}} | ||
|<!-- 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}}}|,|@@@@|{{ | + | -->{{#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-->}}<!-- |
Aktuelle Version vom 13. April 2023, 06:57 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}}