Vorlage:Service portal listing: Unterschied zwischen den Versionen

Permanently protected template
IMT HilfeWiki - das Wiki
 
imported>Oetterer
(Transition to module)
 
(3 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly><!-- This template generates an overview of all articles of a given type (or given types) for the current service
+
<includeonly>{{#invoke:Service portal listing|main}}</includeonly><noinclude>
 
 
  WARNING: For debugging-purposes, some vars are set to constants. please change
 
 
 
  # parameter processing #
 
-->{{#arraydefine:type_valid_values|{{#ask: [[Attribut:Is of type]] |?Allows value= |format=list |mainlabel=- }} }}{{#if:{{{type|}}} |{{#arraydefine:input_type|{{{type}}} |,|sort=asc}} |{{#arraydefine:input_type|Anleitung}} <!-- end of {{#if:{{{type|}}}-->}}<!-- plausibilty check, fills var:type for query construction, or var:error_type if user entered incorrect value -->{{#vardefine:type|{{#arrayprint:input_type ||@@@@ |{{#arraysearch:type_valid_values|@@@@|0|@@@@,|{{#vardefine:error_type |{{#var:error_type|}}@@@@,&thinsp;}}}}}}<!-- end of vardefine:type -->}}{{#arraydefine:type_arr|{{#var:type}}|,|unique}}<!-- now we have a list of types to print. but first,
 
 
 
  # if there was an invalid type supplied, print warning #
 
-->{{#if:{{#var:error_type|}}|{{Template warning|UNKNOWN TYPE: ''{{#sub:{{#var:error_type|}}|0 |-9 }}''|Service portal listing}} }}<!--
 
 
 
  # and finally: here comes the listing #
 
-->{{#switch: {{{format|}}}
 
| list = {{#ask: [[shows on service landing page::{{#if:{{{service|}}}|{{{service}}}|{{BASEPAGENAME}}}}]] {{#arrayprint:type_arr| OR |@@@|[[Is of type::@@@]] }}
 
  | ?#
 
  | ?Is related to os#
 
  | ?Is written for target audience#
 
  | ?Is disambiguation page#
 
  | ?Is disambiguated by#
 
  | format=template
 
  | mainlabel=-
 
  | sort=has sortkey,Is disambiguation page,Is related to os<!-- prepending comma lets us sort for main column first -->
 
  | order=asc,desc,asc
 
  | template=Service portal listing/list
 
}}
 
| #default = {{#ask: [[shows on service landing page::{{#if:{{{service|}}}|{{{service}}}|{{BASEPAGENAME}}}}]] <q>{{#arrayprint:type_arr| OR |@@@|[[Is of type::@@@]] }}</q>
 
  | ?#
 
  | ?Is related to os#
 
  | ?Is written for target audience#
 
  | ?Is disambiguation page#
 
  | ?Is disambiguated by#
 
  | format=template
 
  | mainlabel=-
 
  | sort=has sortkey,Is disambiguation page,Is related to os<!-- prepending comma lets us sort for main column first -->
 
  | order=asc,desc,asc
 
  | template=Service portal listing/table row
 
  | introtemplate=Service portal listing/table header
 
  | outrotemplate=Service portal listing/table footer
 
}}<!-- end of {{#switch: {{{format|}}}: -->}}<!--
 
 
 
  Some words about the listing: each entry (article) has the osses it belongs to and its targroup it's written for listed. In case of singe articles,
 
  all is fine (because the icons are linked to the article).
 
 
 
  But in case of disambiguation pages what we want is the following: list the osses for which we have articles, but link the osses to the specific article and not to the disambiguation page.
 
  this fails especially when there are more than one articles for the same os (ref. Netzwerkspeicher:Backupfunktion des Netzwerkspeichers)
 
 
 
--></includeonly><noinclude>
 
  
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories to the /doc subpage, not here! -->
 
<!-- Add categories to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

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


Documentation icon Template documentation

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.