|
imported>Oetterer |
(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|}}@@@@, }}}}}}<!-- 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> |