Vorlage:Disambiguate: Unterschied zwischen den Versionen

Permanently protected template
ZIM HilfeWiki - das Wiki
K (Schützte „Vorlage:Disambiguate“ ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt)))
Zeile 15: Zeile 15:
 
}}<!--
 
}}<!--
 
   when there is more than one type, infobox article will show an error. however, we will print out our own, just to make sure
 
   when there is more than one type, infobox article will show an error. however, we will print out our own, just to make sure
-->{{#ifeq: {{#arraysize:disambig_types}}|1||{{Template warning|There is more than one type defined on the associated pages. this error has to be corrected on the corresponding page(s)! (passed types are {{#arrayprint:disambig_types}})|Disambiguate}} }}<!-- if there is text in {{{1}}}, print it before the articellisting -->{{#if: {{{1|}}}|{{{1}}}<p></p>}}The chosen topic is covered on the following pages:
+
-->{{#ifeq: {{#arraysize:disambig_types}}|1||{{Template warning|There is more than one type defined on the associated pages. this error has to be corrected on the corresponding page(s)! (passed types are {{#arrayprint:disambig_types}})|Disambiguate}} }}<!-- if there is text in {{{1}}}, print it before the articellisting -->{{#if: {{{1|}}}|{{{1}}}<p></p>}}Das gewählte Thema wird auf den folgenden Seiten behandelt:  
 
{{#ask: [[Is disambiguated by::{{BASEPAGENAME}}]]|format=ul|sort=has sortkey|order=ascending}}
 
{{#ask: [[Is disambiguated by::{{BASEPAGENAME}}]]|format=ul|sort=has sortkey|order=ascending}}
 
|<!--
 
|<!--

Version vom 7. April 2020, 07:27 Uhr


Documentation icon Template documentation

Description[Quelltext bearbeiten]

Generates a disambiguation page. Gathers all associated articles automatically, accumulates services, operation systems, targetgroups, and types. Then uses {{article}} and prints an infobox. Also lists all disambiguated pages.

Parameters[Quelltext bearbeiten]

Generates a disambiguation page.

Vorlagenparameter

ParameterBeschreibungTypStatus
Intro text1

Content text (wikitext) displayed on the left of the infobox, right before the disambiguated pages' listing.

Inhaltvorgeschlagen

Usage[Quelltext bearbeiten]

{{disambiguate}}

Variables[Quelltext bearbeiten]

The templates sets these variables to the described values:

disambig_osses
array
accumulated operation systems of associated articles
disambig_pages
array
list of all disambiguated pages
disambig_services
array
accumulated services of associated articles
disambig_targetgroups
array
accumulated targetgroups of associated articles
disambig_types
array
accumulated types of associated articles (should be only one)

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.