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

ZIM HilfeWiki - das Wiki
 
Zeile 6: Zeile 6:
 
== 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 26: Zeile 26:
 
<!-- 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 ==
 
== Variables ==
Zeile 54: Zeile 54:
 
* {{tl|Service portal listing/list}}
 
* {{tl|Service portal listing/list}}
  
<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>

Version vom 30. September 2016, 11:37 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
display formatformat

controls which type of display format will be used. possible values are list, table.

Standard
table
Zeilevorgeschlagen

Usage[Quelltext bearbeiten]

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

Variables[Quelltext bearbeiten]

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[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.