imported>Oetterer (→Usage) |
|||
(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 == | ||
− | Links a technical service (PAGENAME) to | + | 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 == | == Parameters == | ||
<templatedata>{ | <templatedata>{ | ||
− | "description": " | + | "description": "Links a technical service (PAGENAME) to a service landing page.", |
"params": { | "params": { | ||
− | " | + | "portal": { |
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
"label": "Serviceportal", | "label": "Serviceportal", | ||
Zeile 14: | Zeile 18: | ||
"required": true | "required": true | ||
}, | }, | ||
− | " | + | "active": { |
+ | "type": "boolean", | ||
+ | "label": "Aktiv", | ||
+ | "description": "Activates or deactivates the service." | ||
+ | }, | ||
+ | "displayname": { | ||
"type": "line", | "type": "line", | ||
− | "label": " | + | "label": "Anzeigename", |
− | "description": " | + | "description": "Sets the name for this service used in the drop down on article forms." |
} | } | ||
} | } | ||
Zeile 23: | Zeile 32: | ||
<!-- 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 == | ||
− | + | <pre> | |
− | {{service|PAGE}} | + | {{service |
− | </ | + | |portal=PAGE |
+ | |active=Ja | ||
+ | }} | ||
+ | </pre> | ||
== See also == | == See also == | ||
Zeile 32: | Zeile 44: | ||
* {{tl|os}} | * {{tl|os}} | ||
− | <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 --> | ||
− | |||
}} | }} | ||
}}</includeonly> | }}</includeonly> |
Aktuelle Version vom 27. Februar 2023, 14:42 Uhr
This is a documentation subpage for Vorlage:Service. It contains usage information, categories and other content that is not part of the original vorlage page. |
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}}