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

IMT HilfeWiki - das Wiki
imported>Oetterer
 
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 ==
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 29: Zeile 28:
 
{{Service portal listing|type=Information,Policy,FAQ}}
 
{{Service portal listing|type=Information,Policy,FAQ}}
 
</pre>
 
</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>
  
 
[[Category:Hilfewiki templates]]<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
[[Category:Hilfewiki templates]]<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

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.