Vorlage:Service/doc: Unterschied zwischen den Versionen

ZIM 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 ==
Links a technical service (PAGENAME) to a service landing page (parameter 1). Also when in namespace 3500 (Meta) sets a category depending on normal or erroneous input.
+
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 of the entity created by this template or of the function of this template",
+
     "description": "Links a technical service (PAGENAME) to a service landing page.",
 
     "params": {
 
     "params": {
         "1": {
+
         "portal": {
 
             "type": "wiki-page-name",
 
             "type": "wiki-page-name",
 
             "label": "Serviceportal",
 
             "label": "Serviceportal",
Zeile 14: Zeile 18:
 
             "required": true
 
             "required": true
 
         },
 
         },
         "2": {
+
         "active": {
 +
            "type": "boolean",
 +
            "label": "Aktiv",
 +
            "description": "Activates or deactivates the service."
 +
        },
 +
        "displayname": {
 
             "type": "line",
 
             "type": "line",
             "label": "Switch",
+
             "label": "Anzeigename",
             "description": "Set to any value to inactivate the service - aka omitting the category so that the service wont shown in the form"
+
             "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 ==
{{code|lang=bibtex|code=<nowiki>
+
<pre>
{{service|PAGE}}
+
{{service
</nowiki>}}
+
|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 -->
[[Category:Hilfewiki templates]]
 
 
}}
 
}}
 
}}</includeonly>
 
}}</includeonly>

Aktuelle Version vom 27. Februar 2023, 14:42 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.

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.