Vorlage:Os portal listing/table row: Unterschied zwischen den Versionen

ZIM HilfeWiki - das Wiki
(Die Seite wurde neu angelegt: „<!-- outputs one row in the listing-table Os portal listing submits the following parameters 1. Page 2. Service (csl) 3. Targetgroup (csl) 4. Type…“)
 
Zeile 2: Zeile 2:
  
 
   Os portal listing submits the following parameters
 
   Os portal listing submits the following parameters
 
 
   1. Page
 
   1. Page
   2. Service (csl)
+
   2. Service (csl) -- this is a lsit of technical services, not the service landing page. those you get after transclusion
 
   3. Targetgroup (csl)
 
   3. Targetgroup (csl)
 
   4. Type
 
   4. Type
  
 
   # convert input-strings in arrays #
 
   # convert input-strings in arrays #
-->{{#arraydefine:OsPortalListingTableRow_service|{{{2|}}}|,|sort=asc,unique}}<!--
+
-->{{#arraydefine:OsPortalListingTableRow_technicalServices|{{{2|}}}|,|sort=asc,unique}}{{#vardefine:OsPortalListingTableRow_technicalServicesString|{{#arrayprint:OsPortalListingTableRow_technicalServices|,|@@@|{{@@@}}}}}}{{#arraydefine:OsPortalListingTableRow_ServicePortals|{{#var:OsPortalListingTableRow_technicalServicesString}}|,|sort=asc,unique}}<!--
  
 
   # and a usable link-format #
 
   # and a usable link-format #
Zeile 15: Zeile 14:
 
   # now the tr #.  
 
   # now the tr #.  
 
--> |-  
 
--> |-  
  | [[{{{1|}}}]] || {{{4|-}}} || {{#arrayprint:OsPortalListingTableRow_service|<nowiki > </nowiki>&bull;<nowiki > </nowiki>| @@@ }} || {{Icons user|{{{3|}}}|{{#var:OsPortalListingTableRow_flink|}}}}
+
  | [[{{{1|}}}]] || {{{4|-}}} || {{#arrayprint:OsPortalListingTableRow_ServicePortals|<nowiki > </nowiki>&bull;<nowiki > </nowiki>| @@@ }} || {{Icons user|{{{3|}}}|{{#var:OsPortalListingTableRow_flink|}}}}
 
<noinclude>
 
<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Version vom 5. Oktober 2016, 10:46 Uhr

|- 
| [[]] || - ||  || 
Documentation icon Template documentation

Description[Quelltext bearbeiten]

Creates a row used for display format table in {{Os portal listing}}.

Parameters[Quelltext bearbeiten]

Description of the entity created by this template or of the function of this template

Vorlagenparameter

ParameterBeschreibungTypStatus
Article1

Name of and link to article in table listing (primary information!)

Seiteerforderlich
Service(s)2

List of services the article in this line is written for (comma separated values).

Zeilevorgeschlagen
Target audience(s)3

List of target groups the article in this line is written for (comma separated values).

Zeilevorgeschlagen
Article type4

Type of article.

Zeilevorgeschlagen

Usage[Quelltext bearbeiten]

This is a query template and is calles by a semantic ask query.

Variables[Quelltext bearbeiten]

The templates sets these variables to the described values:

OsPortalListingTableRow_flink
link to the article in the row
OsPortalListingTableRow_service
array
list of associated services

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.