https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Wikipedia%3ALua%2FModul%2FFileUtil%2Fde Wikipedia:Lua/Modul/FileUtil/de - Versionsgeschichte 2025-05-10T14:14:07Z Versionsgeschichte dieser Seite in Wikipedia MediaWiki 1.44.0-wmf.28 https://de.wikipedia.org/w/index.php?title=Wikipedia:Lua/Modul/FileUtil/de&diff=121505193&oldid=prev Patrick87: Dokumentation für "removeParameter()" 2013-08-13T20:29:25Z <p>Dokumentation für &quot;removeParameter()&quot;</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 13. August 2013, 22:29 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 20:</td> <td colspan="2" class="diff-lineno">Zeile 20:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* &lt;code&gt;3&lt;/code&gt; oder &lt;code&gt;value&lt;/code&gt; ''(optional)'' &amp;ndash; Neuer Wert (z.B. &lt;code&gt;"neuer Wert"&lt;/code&gt;)</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* &lt;code&gt;3&lt;/code&gt; oder &lt;code&gt;value&lt;/code&gt; ''(optional)'' &amp;ndash; Neuer Wert (z.B. &lt;code&gt;"neuer Wert"&lt;/code&gt;)</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>: Rückgabewert:</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>: Rückgabewert:</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* Eine neue Medieneinbindung mit hinzugefügtem Parameter bzw. <del style="font-weight: bold; text-decoration: none;">ersetzem</del> Wert, (z.B.<del style="font-weight: bold; text-decoration: none;"> &lt;/nowiki&gt;&lt;/code&gt;</del> &lt;code&gt;&lt;nowiki&gt;[[Datei:Name.ext|parameter=neuer Wert]]&lt;/nowiki&gt;&lt;/code&gt;)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* Eine neue Medieneinbindung mit hinzugefügtem Parameter bzw. <ins style="font-weight: bold; text-decoration: none;">ersetztem</ins> Wert, (z.B. &lt;code&gt;&lt;nowiki&gt;[[Datei:Name.ext|parameter=neuer Wert]]&lt;/nowiki&gt;&lt;/code&gt;)</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* ''nichts'' – wenn Medieneinbindung unzulässig</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>; removeParameter {{Anker|removeParameter }} &amp;ndash; entfernt einen Parameter aus einer vorhandenen Medieneinbindung</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>: Parameter:</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* &lt;code&gt;1&lt;/code&gt; oder &lt;code&gt;file&lt;/code&gt; &amp;ndash; Die Medieneinbindung (z.B. &lt;code&gt;&lt;nowiki&gt;"[[Datei:Name.ext|link=test]]"&lt;/nowiki&gt;&lt;/code&gt;)</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* &lt;code&gt;2&lt;/code&gt; oder &lt;code&gt;parameter&lt;/code&gt; &amp;ndash; Name des Parameters der entfernt werden soll (z.B. &lt;code&gt;"link"&lt;/code&gt;)</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>: Rückgabewert:</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* Eine neue Medieneinbindung mit entferntem Parameter (z.B. &lt;code&gt;&lt;nowiki&gt;[[Datei:Name.ext]]&lt;/nowiki&gt;&lt;/code&gt;)</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* ''nichts'' – wenn Medieneinbindung unzulässig</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* ''nichts'' – wenn Medieneinbindung unzulässig</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 41:</td> <td colspan="2" class="diff-lineno">Zeile 49:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Danach stehen zur Verfügung:</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Danach stehen zur Verfügung:</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* &lt;code&gt;FileUtil.addParameter( file, parameter, value )&lt;/code&gt; &amp;ndash; ''"value" ist optional''</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* &lt;code&gt;<ins style="font-weight: bold; text-decoration: none;">newFile = </ins>FileUtil.addParameter( file, parameter, value )&lt;/code&gt; &amp;ndash; ''"value" ist optional''</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* &lt;code&gt;FileUtil.replaceParameter( file, parameter, value )&lt;/code&gt; &amp;ndash; ''"value" ist optional''</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* &lt;code&gt;<ins style="font-weight: bold; text-decoration: none;">newFile = </ins>FileUtil.replaceParameter( file, parameter, value )&lt;/code&gt; &amp;ndash; ''"value" ist optional''</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* &lt;code&gt;newFile,n = FileUtil.removeParameter( file, parameter)&lt;/code&gt; &amp;ndash; ''"n" = Anzahl der entfernten Parameter (normalerweise 0 oder 1)''</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Verwendung ==</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Verwendung ==</div></td> </tr> </table> Patrick87 https://de.wikipedia.org/w/index.php?title=Wikipedia:Lua/Modul/FileUtil/de&diff=121504139&oldid=prev Patrick87: erweitert 2013-08-13T19:53:26Z <p>erweitert</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 13. August 2013, 21:53 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 6:</td> <td colspan="2" class="diff-lineno">Zeile 6:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>; addParameter {{Anker|addParameter}} &amp;ndash; fügt einer vorhandenen Medieneinbindung einen neuen Parameter hinzu.</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>; addParameter {{Anker|addParameter}} &amp;ndash; fügt einer vorhandenen Medieneinbindung einen neuen Parameter hinzu.</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>: Parameter:</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>: Parameter:</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* 1<del style="font-weight: bold; text-decoration: none;">=</del>Medieneinbindung (z.B. &lt;code&gt;&lt;nowiki&gt;"[[Datei:Name.ext]]"&lt;/nowiki&gt;&lt;/code&gt;</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* <ins style="font-weight: bold; text-decoration: none;">&lt;code&gt;</ins>1<ins style="font-weight: bold; text-decoration: none;">&lt;/code&gt; oder &lt;code&gt;file&lt;/code&gt; &amp;ndash; Die </ins>Medieneinbindung (z.B. &lt;code&gt;&lt;nowiki&gt;"[[Datei:Name.ext]]"&lt;/nowiki&gt;&lt;/code&gt;<ins style="font-weight: bold; text-decoration: none;">)</ins></div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* 2<del style="font-weight: bold; text-decoration: none;">=</del>Neuer Parametername (z.B. &lt;code&gt;"link"&lt;/code&gt;)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* <ins style="font-weight: bold; text-decoration: none;">&lt;code&gt;</ins>2<ins style="font-weight: bold; text-decoration: none;">&lt;/code&gt; oder &lt;code&gt;parameter&lt;/code&gt; &amp;ndash; </ins>Neuer Parametername (z.B. &lt;code&gt;"link"&lt;/code&gt;)</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* 3<del style="font-weight: bold; text-decoration: none;">=</del>Neuer Wert (z.B. &lt;code&gt;"Hauptseite"&lt;/code&gt;)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* <ins style="font-weight: bold; text-decoration: none;">&lt;code&gt;</ins>3<ins style="font-weight: bold; text-decoration: none;">&lt;/code&gt; oder &lt;code&gt;value&lt;/code&gt; ''(optional)'' &amp;ndash; </ins>Neuer Wert (z.B. &lt;code&gt;"Hauptseite"&lt;/code&gt;)</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>: Rückgabewert:</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>: Rückgabewert:</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* &lt;code&gt;&lt;nowiki&gt;[[Datei:Name.ext|link=Hauptseite]]&lt;/nowiki&gt;&lt;/code&gt;</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:*<ins style="font-weight: bold; text-decoration: none;"> Eine neue Medieneinbindung mit hinzugefügtem Parameter (und Wert) (z.B.</ins> &lt;code&gt;&lt;nowiki&gt;[[Datei:Name.ext|link=Hauptseite]]&lt;/nowiki&gt;&lt;/code&gt;<ins style="font-weight: bold; text-decoration: none;">)</ins></div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* Die alte Medieneinbindung wenn der neue Parameter bereits vorhanden ist</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* Die alte Medieneinbindung wenn der neue Parameter bereits vorhanden ist</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* ''nichts'' – wenn Medieneinbindung unzulässig</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* ''nichts'' – wenn Medieneinbindung unzulässig</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>; replaceParameter {{Anker|replaceParameter}} &amp;ndash; fügt einer vorhandenen Medieneinbindung einen neuen Parameter hinzu bzw. ersetzt <del style="font-weight: bold; text-decoration: none;">einen</del> vorhandenen <del style="font-weight: bold; text-decoration: none;">Parameter</del></div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>; replaceParameter {{Anker|replaceParameter}} &amp;ndash; fügt einer vorhandenen Medieneinbindung einen neuen Parameter hinzu bzw. ersetzt <ins style="font-weight: bold; text-decoration: none;">den Wert eines</ins> vorhandenen <ins style="font-weight: bold; text-decoration: none;">Parameters</ins></div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>: Parameter:</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>: Parameter:</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* 1<del style="font-weight: bold; text-decoration: none;">=</del>Medieneinbindung (z.B. &lt;code&gt;&lt;nowiki&gt;"[[Datei:Name.ext|parameter=<del style="font-weight: bold; text-decoration: none;">wert</del>]]"&lt;/nowiki&gt;&lt;/code&gt;</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* <ins style="font-weight: bold; text-decoration: none;">&lt;code&gt;</ins>1<ins style="font-weight: bold; text-decoration: none;">&lt;/code&gt; oder &lt;code&gt;file&lt;/code&gt; &amp;ndash; Die </ins>Medieneinbindung (z.B. &lt;code&gt;&lt;nowiki&gt;"[[Datei:Name.ext|parameter=<ins style="font-weight: bold; text-decoration: none;">alter Wert</ins>]]"&lt;/nowiki&gt;&lt;/code&gt;<ins style="font-weight: bold; text-decoration: none;">)</ins></div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* 2<del style="font-weight: bold; text-decoration: none;">=</del>Neuer oder vorhandener Parametername (z.B. &lt;code&gt;"parameter"&lt;/code&gt;)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* <ins style="font-weight: bold; text-decoration: none;">&lt;code&gt;</ins>2<ins style="font-weight: bold; text-decoration: none;">&lt;/code&gt; oder &lt;code&gt;parameter&lt;/code&gt; &amp;ndash; </ins>Neuer oder vorhandener Parametername (z.B. &lt;code&gt;"parameter"&lt;/code&gt;)</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* 3<del style="font-weight: bold; text-decoration: none;">=</del>Neuer Wert (z.B. &lt;code&gt;"neuer Wert"&lt;/code&gt;)</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:* <ins style="font-weight: bold; text-decoration: none;">&lt;code&gt;</ins>3<ins style="font-weight: bold; text-decoration: none;">&lt;/code&gt; oder &lt;code&gt;value&lt;/code&gt; ''(optional)'' &amp;ndash; </ins>Neuer Wert (z.B. &lt;code&gt;"neuer Wert"&lt;/code&gt;)</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>: Rückgabewert:</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>: Rückgabewert:</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>:* &lt;code&gt;&lt;nowiki&gt;[[Datei:Name.ext|parameter=neuer Wert]]&lt;/nowiki&gt;&lt;/code&gt;</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>:*<ins style="font-weight: bold; text-decoration: none;"> Eine neue Medieneinbindung mit hinzugefügtem Parameter bzw. ersetzem Wert, (z.B. &lt;/nowiki&gt;&lt;/code&gt;</ins> &lt;code&gt;&lt;nowiki&gt;[[Datei:Name.ext|parameter=neuer Wert]]&lt;/nowiki&gt;&lt;/code&gt;<ins style="font-weight: bold; text-decoration: none;">)</ins></div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* ''nichts'' – wenn Medieneinbindung unzulässig</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>:* ''nichts'' – wenn Medieneinbindung unzulässig</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td colspan="2" class="diff-lineno">Zeile 38:</td> <td colspan="2" class="diff-lineno">Zeile 38:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>end</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>end</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>&lt;/syntaxhighlight&gt;</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>&lt;/syntaxhighlight&gt;</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Danach stehen zur Verfügung:</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Danach stehen zur Verfügung:</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* FileUtil.addParameter( file, parameter, value )</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins style="font-weight: bold; text-decoration: none;">&lt;code&gt;</ins>FileUtil.addParameter( file, parameter, value )<ins style="font-weight: bold; text-decoration: none;">&lt;/code&gt; &amp;ndash; ''"value" ist optional''</ins></div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* FileUtil.replaceParameter( file, parameter, value )</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins style="font-weight: bold; text-decoration: none;">&lt;code&gt;</ins>FileUtil.replaceParameter( file, parameter, value )<ins style="font-weight: bold; text-decoration: none;">&lt;/code&gt; &amp;ndash; ''"value" ist optional''</ins></div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>== Verwendung ==</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Allgemeine Bibliothek; nicht eingegrenzt.</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>== Abhängigkeiten ==</div></td> </tr> <tr> <td colspan="2" class="diff-empty diff-side-deleted"></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Keine.</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:Wikipedia:Lua/Modul/Dokumentation|FileUtil]]</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Kategorie:Wikipedia:Lua/Modul/Dokumentation|FileUtil]]</div></td> </tr> </table> Patrick87 https://de.wikipedia.org/w/index.php?title=Wikipedia:Lua/Modul/FileUtil/de&diff=121473473&oldid=prev Patrick87: /* Beispiele (Testseite) */ Link repariert 2013-08-12T21:09:56Z <p><span class="autocomment">Beispiele (Testseite): </span> Link repariert</p> <table style="background-color: #fff; color: #202122;" data-mw="interface"> <col class="diff-marker" /> <col class="diff-content" /> <col class="diff-marker" /> <col class="diff-content" /> <tr class="diff-title" lang="de"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 12. August 2013, 23:09 Uhr</td> </tr><tr> <td colspan="2" class="diff-lineno">Zeile 24:</td> <td colspan="2" class="diff-lineno">Zeile 24:</td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Beispiele (Testseite) ===</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Beispiele (Testseite) ===</div></td> </tr> <tr> <td class="diff-marker" data-marker="−"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>Eine [[Wikipedia:Lua/Modul/<del style="font-weight: bold; text-decoration: none;">URLutil</del>/Test|Testseite]] illustriert praktische Beispiele.&lt;/onlyinclude&gt;</div></td> <td class="diff-marker" data-marker="+"></td> <td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>Eine [[Wikipedia:Lua/Modul/<ins style="font-weight: bold; text-decoration: none;">FileUtil</ins>/Test|Testseite]] illustriert praktische Beispiele.&lt;/onlyinclude&gt;</div></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br /></td> </tr> <tr> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== {{Anker|Lua}} Funktionen für Lua-Module ==</div></td> <td class="diff-marker"></td> <td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== {{Anker|Lua}} Funktionen für Lua-Module ==</div></td> </tr> </table> Patrick87 https://de.wikipedia.org/w/index.php?title=Wikipedia:Lua/Modul/FileUtil/de&diff=121473451&oldid=prev Patrick87: Deutsche Doku für Modul:FileUtil 2013-08-12T21:09:20Z <p>Deutsche Doku für <a href="/wiki/Modul:FileUtil" title="Modul:FileUtil">Modul:FileUtil</a></p> <p><b>Neue Seite</b></p><div>{{LuaModuleDoc}}<br /> &lt;onlyinclude&gt;&#039;&#039;&#039;&lt;code&gt;FileUtil&lt;/code&gt;&#039;&#039;&#039; – Modul mit Funktionen, die das Arbeiten mit Mediendatein (z.B. Bilder, Videos, etc.) erleichtern sollen.<br /> <br /> &lt;noinclude&gt;__TOC__&lt;/noinclude&gt;<br /> == {{Anker|Vorlage}} Funktionen für Vorlagen ==<br /> ; addParameter {{Anker|addParameter}} &amp;ndash; fügt einer vorhandenen Medieneinbindung einen neuen Parameter hinzu.<br /> : Parameter:<br /> :* 1=Medieneinbindung (z.B. &lt;code&gt;&lt;nowiki&gt;&quot;[[Datei:Name.ext]]&quot;&lt;/nowiki&gt;&lt;/code&gt;<br /> :* 2=Neuer Parametername (z.B. &lt;code&gt;&quot;link&quot;&lt;/code&gt;)<br /> :* 3=Neuer Wert (z.B. &lt;code&gt;&quot;Hauptseite&quot;&lt;/code&gt;)<br /> : Rückgabewert:<br /> :* &lt;code&gt;&lt;nowiki&gt;[[Datei:Name.ext|link=Hauptseite]]&lt;/nowiki&gt;&lt;/code&gt;<br /> :* Die alte Medieneinbindung wenn der neue Parameter bereits vorhanden ist<br /> :* &#039;&#039;nichts&#039;&#039; – wenn Medieneinbindung unzulässig<br /> <br /> ; replaceParameter {{Anker|replaceParameter}} &amp;ndash; fügt einer vorhandenen Medieneinbindung einen neuen Parameter hinzu bzw. ersetzt einen vorhandenen Parameter<br /> : Parameter:<br /> :* 1=Medieneinbindung (z.B. &lt;code&gt;&lt;nowiki&gt;&quot;[[Datei:Name.ext|parameter=wert]]&quot;&lt;/nowiki&gt;&lt;/code&gt;<br /> :* 2=Neuer oder vorhandener Parametername (z.B. &lt;code&gt;&quot;parameter&quot;&lt;/code&gt;)<br /> :* 3=Neuer Wert (z.B. &lt;code&gt;&quot;neuer Wert&quot;&lt;/code&gt;)<br /> : Rückgabewert:<br /> :* &lt;code&gt;&lt;nowiki&gt;[[Datei:Name.ext|parameter=neuer Wert]]&lt;/nowiki&gt;&lt;/code&gt;<br /> :* &#039;&#039;nichts&#039;&#039; – wenn Medieneinbindung unzulässig<br /> <br /> === Beispiele (Testseite) ===<br /> Eine [[Wikipedia:Lua/Modul/URLutil/Test|Testseite]] illustriert praktische Beispiele.&lt;/onlyinclude&gt;<br /> <br /> == {{Anker|Lua}} Funktionen für Lua-Module ==<br /> <br /> Alle oben dokumentierten Funktionen können auch über &lt;code&gt;require()&lt;/code&gt; in andere Module eingebunden werden:<br /> &lt;syntaxhighlight lang=&quot;lua&quot;&gt;<br /> local lucky, URLutil = pcall( require, &quot;Modul:FileUtil&quot; )<br /> if type( FileUtil ) == &quot;table&quot; then<br /> FileUtil = FileUtil.FileUtil()<br /> else<br /> -- Fehlerfall; FileUtil enthält Fehlermeldung<br /> return &quot;&lt;span class=&#039;error&#039;&gt;&quot; .. FileUtil .. &quot;&lt;/span&gt;&quot;<br /> end<br /> &lt;/syntaxhighlight&gt;<br /> Danach stehen zur Verfügung:<br /> * FileUtil.addParameter( file, parameter, value )<br /> * FileUtil.replaceParameter( file, parameter, value )<br /> <br /> [[Kategorie:Wikipedia:Lua/Modul/Dokumentation|FileUtil]]</div> Patrick87