Vorlage:Service portal listing/doc: Unterschied zwischen den Versionen

IMT 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 ==
When on a service portal page, prints all articles of given type associated to that service landings page (through being assigned to corresponding service).
+
{{lua|Module:Service portal listing|Module:Article/config|Module:Arguments|Module:TableTools|Module:SmwUtil}}When on a service portal page, prints all articles of given type associated to that service landings page (through being assigned to corresponding service).
  
 
== Parameters ==
 
== Parameters ==
 
<templatedata>{
 
<templatedata>{
     "description": "Description of the entity created by this template or of the function of this template",
+
     "description": "When on a service portal page, prints all articles of given type associated to that service landings page (through being assigned to corresponding service).",
 
     "params": {
 
     "params": {
 
         "type": {
 
         "type": {
Zeile 15: Zeile 15:
 
             "suggested": true
 
             "suggested": true
 
         },
 
         },
         "format": {
+
         "service": {
 
             "type": "line",
 
             "type": "line",
             "default" : "table",
+
             "default" : "BASEPAGENAME",
             "label": "display format",
+
             "label": "associated service",
             "description": "controls which type of display format will be used. possible values are list, table.",
+
             "description": "filters listed service for a given service-association"
            "suggested": true
 
 
         }
 
         }
 
     }
 
     }
Zeile 26: Zeile 25:
 
<!-- 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 portal listing|type=Information,Policy,FAQ}}
 
{{Service portal listing|type=Information,Policy,FAQ}}
</nowiki>}}
+
</pre>
 
 
== Variables ==
 
The templates sets these variables to the described values:
 
;input_type
 
:array
 
:Types (for filter) provided by user
 
;error_type
 
:all errorneous types provided by user
 
;type
 
:temporary variable used to create ''type_arr''
 
;type_arr
 
:array
 
:result of ''input_type'' filtered by ''type_valid_values'' thus provided the resulting list of types used as selector for the query
 
;type_valid_values
 
:array
 
:all valid types in system
 
  
 
== See also ==
 
== See also ==
Zeile 52: Zeile 35:
 
* {{tl|Service portal listing/table header}}
 
* {{tl|Service portal listing/table header}}
 
* {{tl|Service portal listing/table footer}}
 
* {{tl|Service portal listing/table footer}}
* {{tl|Service portal listing/list}}
+
* <strike>{{tl|Service portal listing/list}}</strike>
  
<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:Query templates]] [[Category:Hilfewiki templates]]
+
[[Category:Query templates]]
 
}}
 
}}
 
}}</includeonly>
 
}}</includeonly>

Aktuelle Version vom 28. Februar 2023, 12:22 Uhr

Description[Quelltext bearbeiten]

When on a service portal page, prints all articles of given type associated to that service landings page (through being assigned to corresponding service).

Parameters[Quelltext bearbeiten]

When on a service portal page, prints all articles of given type associated to that service landings page (through being assigned to corresponding service).

Vorlagenparameter

ParameterBeschreibungTypStatus
Article typetype

define, which article type(s) are used for filtering the list. provide a comma separated list if more than one

Standard
Anleitung
Zeilevorgeschlagen
associated serviceservice

filters listed service for a given service-association

Standard
BASEPAGENAME
Zeileoptional

Usage[Quelltext bearbeiten]

{{Service portal listing|type=Information,Policy,FAQ}}

See also[Quelltext bearbeiten]

Cookies helfen uns bei der Bereitstellung des IMT HilfeWikis. Bei der Nutzung vom IMT HilfeWiki werden die in der Datenschutzerklärung beschriebenen Cookies gespeichert.