Baustelle:Kevin: Unterschied zwischen den Versionen

2.633 Bytes hinzugefügt ,  21. August 2018
keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(87 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
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


==Januar 2018==
*automatische Parameterübergabe von Monat und Jahr an DPL-Liste möglich
<!--{{#dpl:
{{#dpl:
  |category = Konferenzen Januar 2018
category= Konferenzen {{CURRENTMONTHNAME}} {{CURRENTYEAR}}
|ordermethod = title
|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=;}}


=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
|mode= userformat
|debug=1
|include={conf}:beginn,<br/>,
|order=ascending
**:Monat:<br/>:jahr <br/>
|ordermethod=sortkey
|mode=userformat
|include={conf}:beginn,{conf}:ende,{conf}:monat,{conf}:jahr,{conf}:[[%PAGE%]],{conf}:ort,{conf}:land,¶
|secseparators=*,-,,{{sp}},,,{{sp}},,: ,, (,&#044; ,,)¶
}}
}}


<!-- Auskommentierte Befehle
==Nummerierte-alphabetisch sortierte Liste==
|format=,{conf}:beginn,[[%TITLE%]]\n,
{{#dpl:
|includepage={conf}:beginn
|category = Konferenzen GDM
|includepage={conf}:monat
|debug=1
|includepage={conf}:jahr
|order=ascending
-->
|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}
}}


<code>'''Version von UKor''' </code>
==2 Methoden von DPL Listen==
*http://followthescore.org/dpldemo/DPL:Manual_-_General_Usage_and_Invocation_Syntax
=== Parser extension method===
<DPL>
  category = Konferenzen Januar 2018
</DPL>
===Parser function method===
{{#dpl:
{{#dpl:
category=Konferenzen Januar 2018  
  |category = Konferenzen Januar 2018
| mode  = userformat
| include = {conf}:beginn:monat:jahr,[[%PAGE%]] |format=<ul>,<li>,</li>,</ul>
}}
}}
<!--
<DynamicPageList>
category=Konferenzen 2018
</DynamicPageList>
-->