Änderungen

2.422 Bytes hinzugefügt ,  21:54, 21. Aug. 2018
keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1: −
Die Funktion <nowiki>{{CURRENTYEAR}}</nowiki> liefert: {{CURRENTYEAR}} <br/>
+
===Automatisch DPL-Monatsliste Ein/Ausblenden===
Help-Links:
+
*Idee1: IF Monat=m1 THEN Szenario m1-m12 ELSE IF Monat=m2 THEN Szenario m2-m12-m13
*http://followthescore.org/dpldemo/index.php?title=DPL:Manual_-_DPL_parameters:_Controlling_output_volume#include_contents_related_to_templates
+
*Funktion-Monatszahl: {{Monatszahl | n=1 }}
 +
*Verschachtelung: <code><nowiki> {{Monatszahl | n={{CURRENTMONTH1}}}} </nowiki></code> {{Monatszahl | n={{CURRENTMONTH1}} }}
 +
*vorhanden: <code> <nowiki> {{konferenzliste|monat = Monat Jahr}} </nowiki> </code>
 +
*SWITCH-Case-Parswer-Function https://en.wikipedia.org/wiki/Help:Switch_parser_function
 +
*Media-Wiki Loops https://www.mediawiki.org/wiki/Extension:Loops
 +
*Media-Wiki IF https://de.wikipedia.org/wiki/Hilfe:Vorlagenprogrammierung
 +
*Funktionsliste https://www.mediawiki.org/wiki/Help:Magic_words/de#Zeitangaben
 +
*Funktion <nowiki> {{CURRENTYEAR}} </nowiki> liefert {{CURRENTYEAR}}
 +
*Funktion <nowiki> {{CURRENTMONTHNAME}} </nowiki> liefert {{CURRENTMONTHNAME}}
 +
*Funktion <nowiki> {{LOCALMONTH1}} </nowiki> liefert {{LOCALMONTH1}}
 +
*Funktion <nowiki> {{CURRENTMONTH1}} </nowiki> liefert Monatszahl {{CURRENTMONTH1}} ohne vorangestellte NULL
   −
==Version1==
+
*automatische Parameterübergabe von Monat und Jahr an DPL-Liste möglich
http://followthescore.org/dpldemo/index.php?title=DPL:FAQ#How_do_I_produce_a_list_or_a_table_that_begins_with_a_template_parameter_instead_of_the_article_name.3F
   
{{#dpl:
 
{{#dpl:
category= Konferenzen Januar 2018
+
category= Konferenzen {{CURRENTMONTHNAME}} {{CURRENTYEAR}}
|listseparators=*lol[[%PAGE%]]&#44; ,,}}
+
|debug=1
 +
|order=ascending
 +
|ordermethod=sortkey
 +
|mode=userformat
 +
|include={conf}:beginn,{conf}:ende,{conf}:monat,{conf}:jahr,{conf}:[[%PAGE%]],{conf}:ort,{conf}:land,¶
 +
|secseparators=*,-,,{{sp}},,,{{sp}},,: ,, (,&#044; ,,
 +
}}
 +
 
 +
 
 +
===DPL Help-Links:===
 +
*[http://followthescore.org/dpldemo/index.php?title=DPL:Manual_-_DPL_parameters:_Controlling_output_order#order Sortieren]
 +
*[http://followthescore.org/dpldemo/index.php?title=DPL:Websites_using_DPL Example Websites]
 +
*[https://meta.wikimedia.org/wiki/Help:Newlines_and_spaces#Parameter_selection_templates spaces]
 +
*[https://github.com/Alexia/DynamicPageList/blob/master/CHANGELOG.md#version-096 List of DPL-Versions & Features]
 +
*[http://followthescore.org/dpldemo/index.php?title=DPL:Manual_-_DPL_parameters:_Controlling_output_volume#include_contents_related_to_templates DPL Template Outputs]
 +
*[http://followthescore.org/dpldemo/index.php?title=DPL:FAQ#How_do_I_produce_a_list_or_a_table_that_begins_with_a_template_parameter_instead_of_the_article_name.3F DPL FAQs]
 +
*DPL-Variablen:{{#dpl:
 +
|spa=;}}
   −
==Version 2==
+
=DPL-Beispiele=
 +
==Hauptseite Nach Datum-Sortierte Liste==
 +
'''Problem:'''  [http://followthescore.org/dpldemo/DPL:Manual_-_DPL_parameters:_Controlling_output_order DPL-Ausgabe nach Template sortieren]
 
{{#dpl:
 
{{#dpl:
category = Konferenzen Januar 2018
+
category= Konferenzen März 2018
 +
|debug=1
 +
|order=ascending
 +
|ordermethod=sortkey
 
|mode=userformat
 
|mode=userformat
|include={conf}:beginn:[[%-?]]:ende:monat:jahr:[[%PAGE%]]:ort:land: [[%whyThis2GetA-NewLine?%]]<br/>
+
|include={conf}:beginn,{conf}:ende,{conf}:monat,{conf}:jahr,{conf}:[[%PAGE%]],{conf}:ort,{conf}:land
 +
|secseparators=*,-,,{{sp}},,,{{sp}},,: ,, (,&#044; ,,)¶
 
}}
 
}}
   −
==Version von Ulli==
+
==Nummerierte-alphabetisch sortierte Liste==
 
{{#dpl:
 
{{#dpl:
category=Konferenzen Januar 2018
+
|category = Konferenzen GDM
| mode = userformat  
+
|debug=1
| include = {conf}:beginn:monat:jahr,[[%PAGE%]]  
+
|order=ascending
|format=<ul>,<li>,</li>,</ul>,  
+
|ordermethod=title
 +
|mode=userformat
 +
|include={conf}:[[%PAGE%]],{conf}:ort,¶
 +
|secseparators=#{{sp}}, ,,¶
 +
}}
 +
==Alphabetisch sortierte Liste mit Bullet-Points==
 +
{{#dpl:
 +
|category = Konferenzen
 +
|debug=1
 +
|order=ascending
 +
|ordermethod=title
 +
|mode=userformat
 +
|include={conf}:[[%PAGE%]],{conf}:¶
 +
|secseparators=*{{sp}}, ,,
 
}}
 
}}
    +
==Hauptseite Version3==
 +
{{#dpl:
 +
category= Konferenzen Januar 2018
 +
|mode=userformat
 +
|include={conf}
 +
}}
   −
 
+
==2 Methoden von DPL Listen==
<!-- Auskommentierte Befehle
+
*http://followthescore.org/dpldemo/DPL:Manual_-_General_Usage_and_Invocation_Syntax
|format=,{conf}:beginn,[[%TITLE%]]\n,
+
=== Parser extension method===
|includepage={conf}:beginn
+
<DPL>
|includepage={conf}:monat
+
  category = Konferenzen Januar 2018
|includepage={conf}:jahr
+
</DPL>
-->
+
===Parser function method===
 
+
{{#dpl:
 
+
  |category = Konferenzen Januar 2018
 
+
}}
<!--
  −
<DynamicPageList>
  −
category=Konferenzen 2018  
  −
</DynamicPageList>
  −
-->