https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Modul%3AWert
Modul:Wert - Versionsgeschichte
2025-06-04T20:11:59Z
Versionsgeschichte dieser Seite in Wikipedia
MediaWiki 1.45.0-wmf.3
https://de.wikipedia.org/w/index.php?title=Modul:Wert&diff=190060341&oldid=prev
Sivizius am 2. Juli 2019 um 10:55 Uhr
2019-07-02T10:55:49Z
<p></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 2. Juli 2019, 12:55 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 107:</td>
<td colspan="2" class="diff-lineno">Zeile 107:</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> if arg and arg ~= '' then</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> if arg and arg ~= '' then</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> arg = arg:gsub(',',<del style="font-weight: bold; text-decoration: none;"> </del>'\t')</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> arg = arg:gsub(',','\t<ins style="font-weight: bold; text-decoration: none;">'):gsub('[.]',''):gsub('\t','.</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> arg = arg:gsub('.', '' )</div></td>
<td colspan="2" class="diff-empty diff-side-added"></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> arg = arg:gsub('\t', '.' )</div></td>
<td colspan="2" class="diff-empty diff-side-added"></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> if arg:sub(1, 1) == '(' and arg:sub(-1) == ')' then</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> if arg:sub(1, 1) == '(' and arg:sub(-1) == ')' then</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> result.parens = true</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> result.parens = true</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Zeile 129:</td>
<td colspan="2" class="diff-lineno">Zeile 127:</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> local value = tonumber(arg)</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> local value = tonumber(arg)</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> if not value then</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> if not value then</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> return fail(<del style="font-weight: bold; text-decoration: none;">'#'..old</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> return fail()</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> 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> if arg:sub(1, 1) == ',' then</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> if arg:sub(1, 1) == ',' then</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Zeile 147:</td>
<td colspan="2" class="diff-lineno">Zeile 145:</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> isnegative = true</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> isnegative = true</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> else</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> else</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> return fail(<del style="font-weight: bold; text-decoration: none;">prefix</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> return fail()</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> 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> result.clean = arg</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> result.clean = arg</div></td>
</tr>
</table>
Sivizius
https://de.wikipedia.org/w/index.php?title=Modul:Wert&diff=190060168&oldid=prev
Sivizius am 2. Juli 2019 um 10:49 Uhr
2019-07-02T10:49:57Z
<p></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 2. Juli 2019, 12:49 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 125:</td>
<td colspan="2" class="diff-lineno">Zeile 125:</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> local isnegative, propersign, prefix</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> local isnegative, propersign, prefix</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> local minus = '−'</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> local minus = '−'</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> local old=arg</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> prefix, arg = arg:match('^(.-)([%d.]+)$')</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> prefix, arg = arg:match('^(.-)([%d.]+)$')</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> local value = tonumber(arg)</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> local value = tonumber(arg)</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> if not value then</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> if not value then</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> return fail(<del style="font-weight: bold; text-decoration: none;">arg</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> return fail(<ins style="font-weight: bold; text-decoration: none;">'#'..old</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> 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> if arg:sub(1, 1) == ',' then</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> if arg:sub(1, 1) == ',' then</div></td>
</tr>
</table>
Sivizius
https://de.wikipedia.org/w/index.php?title=Modul:Wert&diff=190060126&oldid=prev
Sivizius am 2. Juli 2019 um 10:48 Uhr
2019-07-02T10:48:45Z
<p></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 2. Juli 2019, 12:48 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 146:</td>
<td colspan="2" class="diff-lineno">Zeile 146:</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> isnegative = true</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> isnegative = true</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> else</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> else</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> return fail()</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> return fail(<ins style="font-weight: bold; text-decoration: none;">prefix</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> 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> result.clean = arg</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> result.clean = arg</div></td>
</tr>
</table>
Sivizius
https://de.wikipedia.org/w/index.php?title=Modul:Wert&diff=190060104&oldid=prev
Sivizius am 2. Juli 2019 um 10:47 Uhr
2019-07-02T10:47:56Z
<p></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 2. Juli 2019, 12:47 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 128:</td>
<td colspan="2" class="diff-lineno">Zeile 128:</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> local value = tonumber(arg)</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> local value = tonumber(arg)</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> if not value then</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> if not value then</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> return fail()</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> return fail(<ins style="font-weight: bold; text-decoration: none;">arg</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> 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> if arg:sub(1, 1) == ',' then</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> if arg:sub(1, 1) == ',' then</div></td>
</tr>
</table>
Sivizius
https://de.wikipedia.org/w/index.php?title=Modul:Wert&diff=190059981&oldid=prev
Sivizius am 2. Juli 2019 um 10:41 Uhr
2019-07-02T10:41:39Z
<p></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 2. Juli 2019, 12:41 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 107:</td>
<td colspan="2" class="diff-lineno">Zeile 107:</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> if arg and arg ~= '' then</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> if arg and arg ~= '' then</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> arg = arg:gsub('<del style="font-weight: bold; text-decoration: none;">.</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> arg = arg:gsub('<ins style="font-weight: bold; text-decoration: none;">,</ins>',<ins style="font-weight: bold; text-decoration: none;"> </ins> '<ins style="font-weight: bold; text-decoration: none;">\t</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;"><div> arg = arg:gsub('.', '' )</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> arg = arg:gsub('\t', '.' )</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> if arg:sub(1, 1) == '(' and arg:sub(-1) == ')' then</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> if arg:sub(1, 1) == '(' and arg:sub(-1) == ')' then</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> result.parens = true</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> result.parens = true</div></td>
</tr>
</table>
Sivizius
https://de.wikipedia.org/w/index.php?title=Modul:Wert&diff=190059872&oldid=prev
Sivizius am 2. Juli 2019 um 10:37 Uhr
2019-07-02T10:37:35Z
<p></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 2. Juli 2019, 12:37 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 107:</td>
<td colspan="2" class="diff-lineno">Zeile 107:</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> if arg and arg ~= '' then</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> if arg and arg ~= '' then</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> arg = arg:gsub('<del style="font-weight: bold; text-decoration: none;">,</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> arg = arg:gsub('<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> if arg:sub(1, 1) == '(' and arg:sub(-1) == ')' then</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> if arg:sub(1, 1) == '(' and arg:sub(-1) == ')' then</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> result.parens = true</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> result.parens = true</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Zeile 514:</td>
<td colspan="2" class="diff-lineno">Zeile 514:</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>local delimit_groups = require('Modul:Gapnum').groups</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>local delimit_groups = require('Modul:Gapnum').groups</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>local function delimit(sign, numstr, fmt)</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>local function delimit(sign, numstr, fmt)</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> -- Return sign and numstr (unsigned digits or '<del style="font-weight: bold; text-decoration: none;">,</del>' only) after formatting.</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> -- Return sign and numstr (unsigned digits or '<ins style="font-weight: bold; text-decoration: none;">.</ins>' only) after formatting.</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> -- Four-digit integers are not formatted with gaps.</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> -- Four-digit integers are not formatted with gaps.</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> fmt = (fmt or ''):lower()</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> fmt = (fmt or ''):lower()</div></td>
</tr>
</table>
Sivizius
https://de.wikipedia.org/w/index.php?title=Modul:Wert&diff=190059756&oldid=prev
Sivizius am 2. Juli 2019 um 10:32 Uhr
2019-07-02T10:32:35Z
<p></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 2. Juli 2019, 12:32 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 128:</td>
<td colspan="2" class="diff-lineno">Zeile 128:</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> return fail()</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> return fail()</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> 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" 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> if arg:sub(1, 1) == '<del style="font-weight: bold; text-decoration: none;">.</del>' then</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> if arg:sub(1, 1) == '<ins style="font-weight: bold; text-decoration: none;">,</ins>' then</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> arg = '0' .. arg</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> arg = '0' .. arg</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> 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 colspan="2" class="diff-lineno">Zeile 514:</td>
<td colspan="2" class="diff-lineno">Zeile 514:</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>local delimit_groups = require('Modul:Gapnum').groups</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>local delimit_groups = require('Modul:Gapnum').groups</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>local function delimit(sign, numstr, fmt)</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>local function delimit(sign, numstr, fmt)</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> -- Return sign and numstr (unsigned digits or '<del style="font-weight: bold; text-decoration: none;">.</del>' only) after formatting.</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> -- Return sign and numstr (unsigned digits or '<ins style="font-weight: bold; text-decoration: none;">,</ins>' only) after formatting.</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> -- Four-digit integers are not formatted with gaps.</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> -- Four-digit integers are not formatted with gaps.</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> fmt = (fmt or ''):lower()</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> fmt = (fmt or ''):lower()</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Zeile 527:</td>
<td colspan="2" class="diff-lineno">Zeile 527:</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> result = sign .. table.concat(ipart, ',')</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> result = sign .. table.concat(ipart, ',')</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> if dpart then</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> if dpart then</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> result = result .. '<del style="font-weight: bold; text-decoration: none;">.</del>' .. table.concat(dpart)</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> result = result .. '<ins style="font-weight: bold; text-decoration: none;">,</ins>' .. table.concat(dpart)</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> 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> else</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> else</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Zeile 537:</td>
<td colspan="2" class="diff-lineno">Zeile 537:</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> if dpart then</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> if dpart then</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> table.insert(groups, '<del style="font-weight: bold; text-decoration: none;">.</del>' .. (table.remove(dpart, 1) or ''))</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> table.insert(groups, '<ins style="font-weight: bold; text-decoration: none;">,</ins>' .. (table.remove(dpart, 1) or ''))</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> for _, v in ipairs(dpart) do</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> for _, v in ipairs(dpart) do</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> table.insert(groups, '<span style="margin-left:.25em;">' .. v .. '</span>')</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> table.insert(groups, '<span style="margin-left:.25em;">' .. v .. '</span>')</div></td>
</tr>
</table>
Sivizius
https://de.wikipedia.org/w/index.php?title=Modul:Wert&diff=190059675&oldid=prev
Sivizius am 2. Juli 2019 um 10:29 Uhr
2019-07-02T10:29:40Z
<p></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 2. Juli 2019, 12:29 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 40:</td>
<td colspan="2" class="diff-lineno">Zeile 40:</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> ["or"] = " or " ,</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> ["or"] = " or " ,</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> ["to"] = " to " ,</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> ["to"] = " to " ,</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> ["x"] = " <del style="font-weight: bold; text-decoration: none;">×</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> ["x"] = " <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> ["×"] = " <del style="font-weight: bold; text-decoration: none;">×</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> ["×"] = " <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> ["/"] = "/",</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> ["/"] = "/",</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>}</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>}</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Zeile 47:</td>
<td colspan="2" class="diff-lineno">Zeile 47:</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> -- WP:UNIT wants unit repeated when a "multiply" range is used.</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> -- WP:UNIT wants unit repeated when a "multiply" range is used.</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> ["x"] = true,</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> ["x"] = true,</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> ["<del style="font-weight: bold; text-decoration: none;">×</del>"] = true,</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;">·</ins>"] = true,</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>}</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>}</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 704:</td>
<td colspan="2" class="diff-lineno">Zeile 704:</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> e_text = '10<sup>' .. delimit(e_10.sign, e_10.clean, fmt) .. '</sup>'</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> e_text = '10<sup>' .. delimit(e_10.sign, e_10.clean, fmt) .. '</sup>'</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> if number.clean then</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> if number.clean then</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> e_text = '<span style="margin-left:0.25em;margin-right:0.15em;"><del style="font-weight: bold; text-decoration: none;">×</del></span>' .. e_text</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> e_text = '<span style="margin-left:0.25em;margin-right:0.15em;"><ins style="font-weight: bold; text-decoration: none;">·</ins></span>' .. e_text</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> 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> else</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> else</div></td>
</tr>
</table>
Sivizius
https://de.wikipedia.org/w/index.php?title=Modul:Wert&diff=190059614&oldid=prev
Sivizius am 2. Juli 2019 um 10:26 Uhr
2019-07-02T10:26:50Z
<p></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 2. Juli 2019, 12:26 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 2:</td>
<td colspan="2" class="diff-lineno">Zeile 2:</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>-- Format options include scientific and uncertainty notations.</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>-- Format options include scientific and uncertainty notations.</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>local data_module = 'Modul:Wert/<del style="font-weight: bold; text-decoration: none;">units</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>local data_module = 'Modul:Wert/<ins style="font-weight: bold; text-decoration: none;">Einheiten</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>local convert_module = 'Modul:Convert'</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>local convert_module = 'Modul:Convert'</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>
</table>
Sivizius
https://de.wikipedia.org/w/index.php?title=Modul:Wert&diff=190059189&oldid=prev
Sivizius: AZ: Die Seite wurde neu angelegt: -- For Vorlage:Wert, output a number and optional unit. -- Format options include scientific and uncer…
2019-07-02T10:06:55Z
<p><a href="/wiki/Hilfe:Zusammenfassung_und_Quellen#Auto-Zusammenfassung" title="Hilfe:Zusammenfassung und Quellen">AZ</a>: Die Seite wurde neu angelegt: -- For Vorlage:Wert, output a number and optional unit. -- Format options include scientific and uncer…</p>
<p><b>Neue Seite</b></p><div>-- For Vorlage:Wert, output a number and optional unit.<br />
-- Format options include scientific and uncertainty notations.<br />
<br />
local data_module = 'Modul:Wert/units'<br />
local convert_module = 'Modul:Convert'<br />
<br />
local function valerror(msg, nocat, iswarning)<br />
-- Return formatted message text for an error or warning.<br />
-- Can append "#FormattingError" to URL of a page with a problem to find it.<br />
local anchor = '<span id="FormattingError"></span>'<br />
local body, category<br />
if nocat or mw.title.getCurrentTitle():inNamespaces(1, 2, 3, 5) then<br />
-- No category in Talk, User, User_talk, or Wikipedia_talk.<br />
category = ''<br />
else<br />
category = '[[Category:Pages with incorrect formatting templates use]]'<br />
end<br />
iswarning = false -- problems are infrequent so try showing large error so editor will notice<br />
if iswarning then<br />
body = '<sup class="noprint Inline-Template" style="white-space:nowrap;">' ..<br />
'[[Vorlage:Wert|<span title="' ..<br />
msg:gsub('"', '&quot;') ..<br />
'">warning</span>]]</sup>'<br />
else<br />
body = '<strong class="error">' ..<br />
'Error in &#123;&#123;[[Vorlage:Wert|Wert]]&#125;&#125;: ' ..<br />
msg ..<br />
'</strong>'<br />
end<br />
return anchor .. body .. category<br />
end<br />
<br />
local range_types = {<br />
-- No need for '&nbsp;' because nowrap applies to all output.<br />
[","] = ", ",<br />
["by"] = " by ",<br />
["-"] = "–",<br />
["–"] = "–",<br />
["and"] = " and ",<br />
["or"] = " or " ,<br />
["to"] = " to " ,<br />
["x"] = " × ",<br />
["×"] = " × ",<br />
["/"] = "/",<br />
}<br />
local range_repeat_unit = {<br />
-- WP:UNIT wants unit repeated when a "multiply" range is used.<br />
["x"] = true,<br />
["×"] = true,<br />
}<br />
<br />
local function extract_item(index, numbers, arg)<br />
-- Extract an item from arg and store the result in numbers[index].<br />
-- If no argument or if argument is valid, return nil (no error);<br />
-- otherwise, return an error message.<br />
-- The stored result is:<br />
-- * a table for a number (empty if there was no specified number); or<br />
-- * a string for range text<br />
-- Input like 1e3 is regarded as invalid for all except argument 1<br />
-- which accepts e notation as an alternative to the 'e' argument.<br />
-- Input commas are removed so 1,234 is the same as 1234.<br />
local which = index<br />
local function fail(msg)<br />
local description<br />
if which == 'e' then<br />
description = 'exponent parameter (<b>e</b>)'<br />
else<br />
description = 'parameter ' .. which<br />
end<br />
return description .. ' ' .. (msg or 'is not a valid number') .. '.'<br />
end<br />
local result = {}<br />
local range = range_types[arg]<br />
if range then<br />
if type(index) == 'number' and (index % 2 == 0) then<br />
if index == 2 then<br />
if numbers[1] and numbers[1].exp then<br />
return fail('cannot use a range if the first parameter includes "e"')<br />
end<br />
numbers.has_ranges = true<br />
else<br />
if not numbers.has_ranges then<br />
return fail('needs a range in parameter 2')<br />
end<br />
end<br />
numbers[index] = range<br />
if range_repeat_unit[arg] then<br />
-- Any "repeat" range forces unit (if any) to be repeated for all items.<br />
numbers.isrepeat = true<br />
end<br />
return nil<br />
end<br />
return fail('does not accept a range')<br />
end<br />
if numbers.has_ranges and type(index) == 'number' and (index % 2 == 0) then<br />
return fail('should be a range')<br />
end<br />
if index == 'e' then<br />
local e = numbers[1] and numbers[1].exp<br />
if e then<br />
if arg then<br />
return fail('cannot be used if the first parameter includes "e"')<br />
end<br />
arg = e<br />
which = 1<br />
end<br />
end<br />
if arg and arg ~= '' then<br />
arg = arg:gsub(',', '')<br />
if arg:sub(1, 1) == '(' and arg:sub(-1) == ')' then<br />
result.parens = true<br />
arg = arg:sub(2, -2)<br />
end<br />
local a, b = arg:match('^(.+)[Ee](.+)$')<br />
if a then<br />
if index == 1 then<br />
arg = a<br />
result.exp = b<br />
else<br />
return fail('cannot use e notation')<br />
end<br />
end<br />
local isnegative, propersign, prefix<br />
local minus = '−'<br />
prefix, arg = arg:match('^(.-)([%d.]+)$')<br />
local value = tonumber(arg)<br />
if not value then<br />
return fail()<br />
end<br />
if arg:sub(1, 1) == '.' then<br />
arg = '0' .. arg<br />
end<br />
if prefix == '' then<br />
-- Ignore.<br />
elseif prefix == '±' then<br />
-- Display for first number, ignore for others.<br />
if index == 1 then<br />
propersign = '±'<br />
end<br />
elseif prefix == '+' then<br />
propersign = '+'<br />
elseif prefix == '-' or prefix == minus then<br />
propersign = minus<br />
isnegative = true<br />
else<br />
return fail()<br />
end<br />
result.clean = arg<br />
result.sign = propersign or ''<br />
result.value = isnegative and -value or value<br />
end<br />
numbers[index] = result<br />
return nil -- no error<br />
end<br />
<br />
local function get_args(numbers, args)<br />
-- Extract arguments and store the results in numbers.<br />
-- Return nothing (no error) if ok; otherwise, return an error message.<br />
for index = 1, 99 do<br />
local which = index<br />
local arg = args[which] -- has been trimmed<br />
if not arg then<br />
which = 'e'<br />
arg = args[which]<br />
end<br />
local msg = extract_item(which, numbers, arg)<br />
if msg then<br />
return msg<br />
end<br />
if which == 'e' then<br />
break<br />
end<br />
if index > 19 then<br />
return 'too many parameters'<br />
end<br />
end<br />
if numbers.has_ranges and (#numbers % 2 == 0) then<br />
return 'need a number after the last parameter because it is a range.'<br />
end<br />
end<br />
<br />
local function get_scale(text, ucode)<br />
-- Return the value of text as a number, or throw an error.<br />
-- This supports extremely basic expressions of the form:<br />
-- a / b<br />
-- a ^ b<br />
-- where a and b are numbers or 'pi'.<br />
local n = tonumber(text)<br />
if n then<br />
return n<br />
end<br />
n = text:gsub('pi', math.pi)<br />
for _, op in ipairs({ '/', '^' }) do<br />
local a, b = n:match('^(.-)' .. op .. '(.*)$')<br />
if a then<br />
a = tonumber(a)<br />
b = tonumber(b)<br />
if a and b then<br />
if op == '/' then<br />
return a / b<br />
elseif op == '^' then<br />
return a ^ b<br />
end<br />
end<br />
break<br />
end<br />
end<br />
error('Unit "' .. ucode .. '" has invalid scale "' .. text .. '"')<br />
end<br />
<br />
local function get_builtin_unit(ucode, definitions)<br />
-- Return table of information for the specified built-in unit, or nil if not known.<br />
-- Each defined unit code must be followed by two spaces (not tab characters).<br />
local _, pos = definitions:find('\n' .. ucode .. ' ', 1, true)<br />
if pos then<br />
local endline = definitions:find('%s*\n', pos)<br />
if endline then<br />
local result = {}<br />
local n = 0<br />
local text = definitions:sub(pos + 1, endline - 1):gsub('%s%s+', '\t')<br />
for item in (text .. '\t'):gmatch('(%S.-)\t') do<br />
if item == 'ALIAS' then<br />
result.alias = true<br />
elseif item == 'ANGLE' then<br />
result.isangle = true<br />
result.nospace = true<br />
elseif item == 'NOSPACE' then<br />
result.nospace = true<br />
elseif item == 'SI' then<br />
result.si = true<br />
else<br />
n = n + 1<br />
if n == 1 then<br />
local link, symbol = item:match('^%[%[([^|]+)|(.+)%]%]$')<br />
if link then<br />
result.symbol = symbol<br />
result.link = link<br />
n = 2<br />
else<br />
result.symbol = item<br />
end<br />
elseif n == 2 then<br />
result.link = item<br />
elseif n == 3 then<br />
result.scale_text = item<br />
result.scale = get_scale(item, ucode)<br />
else<br />
result.more_ignored = item<br />
break<br />
end<br />
end<br />
end<br />
if result.si then<br />
local s = result.symbol<br />
if ucode == 'mc' .. s or ucode == 'mu' .. s then<br />
result.ucode = 'µ' .. s -- unit code for convert should be this<br />
end<br />
end<br />
if n >= 2 or (n >= 1 and result.alias) then<br />
return result<br />
end<br />
-- Ignore invalid definition, treating it as a comment.<br />
end<br />
end<br />
end<br />
<br />
local function convert_lookup(ucode, value, scaled_top, want_link, si, options)<br />
local lookup = require(convert_module)._unit<br />
return lookup(ucode, {<br />
value = value,<br />
scaled_top = scaled_top,<br />
link = want_link,<br />
si = si,<br />
sort = options.sortable,<br />
})<br />
end<br />
<br />
local function get_unit(ucode, value, scaled_top, options)<br />
local want_link = options.want_link<br />
if scaled_top then<br />
want_link = options.want_per_link<br />
end<br />
local data = mw.loadData(data_module)<br />
local result = options.want_longscale and<br />
get_builtin_unit(ucode, data.builtin_units_long_scale) or<br />
get_builtin_unit(ucode, data.builtin_units)<br />
local si, use_convert<br />
if result then<br />
if result.alias then<br />
ucode = result.symbol<br />
use_convert = true<br />
end<br />
if result.scale then<br />
-- Setting si means convert will use the unit as given, and the sort key<br />
-- will be calculated from the value without any extra scaling that may<br />
-- occur if convert found the unit code. For example, if val defines the<br />
-- unit 'year' with a scale and if si were not set, convert would also apply<br />
-- its own scale because convert knows that a year is 31,557,600 seconds.<br />
si = { result.symbol, result.link }<br />
value = value * result.scale<br />
end<br />
if result.si then<br />
ucode = result.ucode or ucode<br />
si = { result.symbol, result.link }<br />
use_convert = true<br />
end<br />
else<br />
result = {}<br />
use_convert = true<br />
end<br />
local convert_unit = convert_lookup(ucode, value, scaled_top, want_link, si, options)<br />
result.sortkey = convert_unit.sortspan<br />
if use_convert then<br />
result.text = convert_unit.text<br />
result.scaled_top = convert_unit.scaled_value<br />
else<br />
if want_link then<br />
result.text = '[[' .. result.link .. '|' .. result.symbol .. ']]'<br />
else<br />
result.text = result.symbol<br />
end<br />
result.scaled_top = value<br />
end<br />
return result<br />
end<br />
<br />
local function makeunit(value, options)<br />
-- Return table of information for the requested unit and options, or<br />
-- return nil if no unit.<br />
options = options or {}<br />
local unit<br />
local ucode = options.u<br />
local percode = options.per<br />
if ucode then<br />
unit = get_unit(ucode, value, nil, options)<br />
elseif percode then<br />
unit = { nospace = true, scaled_top = value }<br />
else<br />
return nil<br />
end<br />
local text = unit.text or ''<br />
local sortkey = unit.sortkey<br />
if percode then<br />
local function bracketed(code, text)<br />
return code:find('[*./]') and '(' .. text .. ')' or text<br />
end<br />
local perunit = get_unit(percode, 1, unit.scaled_top, options)<br />
text = (ucode and bracketed(ucode, text) or '') ..<br />
'/' .. bracketed(percode, perunit.text)<br />
sortkey = perunit.sortkey<br />
end<br />
if not (unit.nospace or options.nospace) then<br />
text = '&nbsp;' .. text<br />
end<br />
return { text = text, isangle = unit.isangle, sortkey = sortkey }<br />
end<br />
<br />
local function list_units(mode)<br />
-- Return wikitext to list the built-in units.<br />
-- A unit code should not contain wikimarkup so don't bother escaping.<br />
local data = mw.loadData(data_module)<br />
local definitions = data.builtin_units .. data.builtin_units_long_scale<br />
local last_was_blank = true<br />
local n = 0<br />
local result = {}<br />
local function add(line)<br />
if line == '' then<br />
last_was_blank = true<br />
else<br />
if last_was_blank and n > 0 then<br />
n = n + 1<br />
result[n] = ''<br />
end<br />
last_was_blank = false<br />
n = n + 1<br />
result[n] = line<br />
end<br />
end<br />
local si_prefixes = {<br />
-- These are the prefixes recognized by convert; u is accepted for micro.<br />
y = 'y',<br />
z = 'z',<br />
a = 'a',<br />
f = 'f',<br />
p = 'p',<br />
n = 'n',<br />
u = 'µ',<br />
['µ'] = 'µ',<br />
m = 'm',<br />
c = 'c',<br />
d = 'd',<br />
da = 'da',<br />
h = 'h',<br />
k = 'k',<br />
M = 'M',<br />
G = 'G',<br />
T = 'T',<br />
P = 'P',<br />
E = 'E',<br />
Z = 'Z',<br />
Y = 'Y',<br />
}<br />
local function is_valid(ucode, unit)<br />
if unit and not unit.more_ignored then<br />
assert(type(unit.symbol) == 'string' and unit.symbol ~= '')<br />
if unit.alias then<br />
if unit.link or unit.scale_text or unit.si then<br />
return false<br />
end<br />
end<br />
if unit.si then<br />
if unit.scale_text then<br />
return false<br />
end<br />
ucode = unit.ucode or ucode<br />
local base = unit.symbol<br />
if ucode == base then<br />
unit.display = base<br />
return true<br />
end<br />
local plen = #ucode - #base<br />
if plen > 0 then<br />
local prefix = si_prefixes[ucode:sub(1, plen)]<br />
if prefix and ucode:sub(plen + 1) == base then<br />
unit.display = prefix .. base<br />
return true<br />
end<br />
end<br />
else<br />
unit.display = unit.symbol<br />
return true<br />
end<br />
end<br />
return false<br />
end<br />
local lookup = require(convert_module)._unit<br />
local function show_convert(ucode, unit)<br />
-- If a built-in unit defines a scale or sets the SI flag, any unit defined in<br />
-- convert is not used (the scale or SI prefix's scale is used for a sort key).<br />
-- If there is no scale or SI flag, and the unit is not defined in convert,<br />
-- the sort key may not be correct; this allows such units to be identified.<br />
if not (unit.si or unit.scale_text) then<br />
if mode == 'convert' then<br />
unit.show = not lookup(unit.alias and unit.symbol or ucode).unknown<br />
unit.show_text = 'CONVERT'<br />
elseif mode == 'unknown' then<br />
unit.show = lookup(unit.alias and unit.symbol or ucode).unknown<br />
unit.show_text = 'UNKNOWN'<br />
elseif not unit.alias then<br />
-- Show convert's scale in square brackets ('[1]' for an unknown unit).<br />
-- Don't show scale for an alias because it's misleading for temperature<br />
-- and an alias is probably not useful for anything else.<br />
local scale = lookup(ucode, {value=1, sort='on'}).scaled_value<br />
if type(scale) == 'number' then<br />
scale = string.format('%.5g', scale):gsub('e%+?(%-?)0*(%d+)', 'e%1%2')<br />
else<br />
scale = '?'<br />
end<br />
unit.show = true<br />
unit.show_text = '[' .. scale .. ']'<br />
end<br />
end<br />
end<br />
for line in definitions:gmatch('([^\n]*)\n') do<br />
local pos, _ = line:find(' ', 1, true)<br />
if pos then<br />
local ucode = line:sub(1, pos - 1)<br />
local unit = get_builtin_unit(ucode, '\n' .. line .. '\n')<br />
if is_valid(ucode, unit) then<br />
show_convert(ucode, unit)<br />
local flags, text<br />
if unit.alias then<br />
text = unit.symbol<br />
else<br />
text = '[[' .. unit.link .. '|' .. unit.display .. ']]'<br />
end<br />
if unit.isangle then<br />
unit.nospace = nil -- don't show redundant flag<br />
end<br />
for _, f in ipairs({<br />
{ 'alias', 'ALIAS' },<br />
{ 'isangle', 'ANGLE' },<br />
{ 'nospace', 'NOSPACE' },<br />
{ 'si', 'SI' },<br />
{ 'scale_text', unit.scale_text },<br />
{ 'show', unit.show_text },<br />
}) do<br />
if unit[f[1]] then<br />
local t = f[2]<br />
if t:match('^%u+$') then<br />
t = '<small>' .. t .. '</small>'<br />
end<br />
if flags then<br />
flags = flags .. ' ' .. t<br />
else<br />
flags = t<br />
end<br />
end<br />
end<br />
if flags then<br />
text = text .. ' • ' .. flags<br />
end<br />
add(ucode .. ' = ' .. text .. '<br />')<br />
else<br />
add(line .. ' ◆ <b>invalid definition</b><br />')<br />
end<br />
else<br />
add(line)<br />
end<br />
end<br />
return table.concat(result, '\n')<br />
end<br />
<br />
local delimit_groups = require('Modul:Gapnum').groups<br />
local function delimit(sign, numstr, fmt)<br />
-- Return sign and numstr (unsigned digits or '.' only) after formatting.<br />
-- Four-digit integers are not formatted with gaps.<br />
fmt = (fmt or ''):lower()<br />
if fmt == 'none' or (fmt == '' and #numstr == 4 and numstr:match('^%d+$')) then<br />
return sign .. numstr<br />
end<br />
-- Group number by integer and decimal parts.<br />
-- If there is no decimal part, delimit_groups returns only one table.<br />
local ipart, dpart = delimit_groups(numstr)<br />
local result<br />
if fmt == 'commas' then<br />
result = sign .. table.concat(ipart, ',')<br />
if dpart then<br />
result = result .. '.' .. table.concat(dpart)<br />
end<br />
else<br />
-- Delimit with a small gap by default.<br />
local groups = {}<br />
groups[1] = table.remove(ipart, 1)<br />
for _, v in ipairs(ipart) do<br />
table.insert(groups, '<span style="margin-left:.25em;">' .. v .. '</span>')<br />
end<br />
if dpart then<br />
table.insert(groups, '.' .. (table.remove(dpart, 1) or ''))<br />
for _, v in ipairs(dpart) do<br />
table.insert(groups, '<span style="margin-left:.25em;">' .. v .. '</span>')<br />
end<br />
end<br />
result = sign .. table.concat(groups)<br />
end<br />
return result<br />
end<br />
<br />
local function sup_sub(sup, sub, align)<br />
-- Return the same result as Modul:Su except Wert defaults to align=right.<br />
if align == 'l' or align == 'left' then<br />
align = 'left'<br />
elseif align == 'c' or align == 'center' then<br />
align = 'center'<br />
else<br />
align = 'right'<br />
end<br />
return '<span style="display:inline-block;margin-bottom:-0.3em;vertical-align:-0.4em;line-height:1.2em;font-size:85%;text-align:' ..<br />
align .. ';">' .. sup .. '<br />' .. sub .. '</span>'<br />
end<br />
<br />
local function range_text(items, unit_table, options)<br />
local fmt = options.fmt<br />
local nend = items.nend or ''<br />
if items.isrepeat or unit_table.isangle then<br />
nend = nend .. unit_table.text<br />
end<br />
local text = ''<br />
for i = 1, #items do<br />
if i % 2 == 0 then<br />
text = text .. items[i]<br />
else<br />
text = text .. delimit(items[i].sign, items[i].clean, fmt) .. nend<br />
end<br />
end<br />
return text<br />
end<br />
<br />
local function uncertainty_text(uncertainty, unit_table, options)<br />
local angle, text, need_parens<br />
if unit_table.isangle then<br />
angle = unit_table.text<br />
end<br />
local upper = uncertainty.upper or {}<br />
local lower = uncertainty.lower or {}<br />
local uncU = upper.clean<br />
if uncU then<br />
local fmt = options.fmt<br />
local uncL = lower.clean<br />
if uncL then<br />
uncU = delimit('+', uncU, fmt) .. (upper.errend or '')<br />
uncL = delimit('−', uncL, fmt) .. (lower.errend or '')<br />
if angle then<br />
uncU = uncU .. angle<br />
uncL = uncL .. angle<br />
end<br />
text = (angle or '') ..<br />
'<span style="margin-left:0.3em;">' ..<br />
sup_sub(uncU, uncL, options.align) ..<br />
'</span>'<br />
else<br />
if upper.parens then<br />
text = '(' .. uncU .. ')' -- old template did not delimit<br />
else<br />
text = (angle or '') ..<br />
'<span style="margin-left:0.3em;margin-right:0.15em;">±</span>' ..<br />
delimit('', uncU, fmt)<br />
need_parens = true<br />
end<br />
if uncertainty.errend then<br />
text = text .. uncertainty.errend<br />
end<br />
if angle then<br />
text = text .. angle<br />
end<br />
end<br />
else<br />
if angle then<br />
text = angle<br />
end<br />
end<br />
return text, need_parens<br />
end<br />
<br />
local function _main(values, unit_spec, options)<br />
if options.sandbox then<br />
data_module = data_module .. '/sandbox'<br />
convert_module = convert_module .. '/sandbox'<br />
end<br />
local action = options.action<br />
if action then<br />
if action == 'list' then<br />
-- Kludge: am using the align parameter (a=xxx) for type of list.<br />
return list_units(options.align)<br />
end<br />
return valerror('invalid action "' .. action .. '".', options.nocat)<br />
end<br />
local number = values.number or (values.numbers and values.numbers[1]) or {}<br />
local e_10 = options.e or {}<br />
local novalue = (number.value == nil and e_10.clean == nil)<br />
local fmt = options.fmt<br />
local want_sort = true<br />
local sortable = options.sortable<br />
if sortable == 'off' or (sortable == nil and novalue) then<br />
want_sort = false<br />
elseif sortable == 'debug' then<br />
-- Same as sortable = 'on' but the sort key is displayed.<br />
else<br />
sortable = 'on'<br />
end<br />
local sort_value = 1<br />
if want_sort then<br />
sort_value = number.value or 1<br />
if e_10.value and sort_value ~= 0 then<br />
-- The 'if' avoids {{val|0|e=1234}} giving an invalid sort_value due to overflow.<br />
sort_value = sort_value * 10^e_10.value<br />
end<br />
end<br />
local unit_table = makeunit(sort_value, {<br />
u = unit_spec.u,<br />
want_link = unit_spec.want_link,<br />
per = unit_spec.per,<br />
want_per_link = unit_spec.want_per_link,<br />
nospace = novalue,<br />
want_longscale = unit_spec.want_longscale,<br />
sortable = sortable,<br />
})<br />
local sortkey<br />
if unit_table then<br />
if want_sort then<br />
sortkey = unit_table.sortkey<br />
end<br />
else<br />
unit_table = { text = '' }<br />
if want_sort then<br />
sortkey = convert_lookup('dummy', sort_value, nil, nil, nil, { sortable = sortable }).sortspan<br />
end<br />
end<br />
local final_unit = unit_table.isangle and '' or unit_table.text<br />
local e_text, n_text, need_parens<br />
local uncertainty = values.uncertainty<br />
if uncertainty then<br />
if number.clean then<br />
n_text = delimit(number.sign, number.clean, fmt) .. (number.nend or '')<br />
local text<br />
text, need_parens = uncertainty_text(uncertainty, unit_table, options)<br />
if text then<br />
n_text = n_text .. text<br />
end<br />
else<br />
n_text = ''<br />
end<br />
else<br />
if values.numbers.isrepeat then<br />
final_unit = ''<br />
end<br />
n_text = range_text(values.numbers, unit_table, options)<br />
need_parens = true<br />
end<br />
if e_10.clean then<br />
if need_parens then<br />
n_text = '(' .. n_text .. ')'<br />
end<br />
e_text = '10<sup>' .. delimit(e_10.sign, e_10.clean, fmt) .. '</sup>'<br />
if number.clean then<br />
e_text = '<span style="margin-left:0.25em;margin-right:0.15em;">×</span>' .. e_text<br />
end<br />
else<br />
e_text = ''<br />
end<br />
local result =<br />
(sortkey or '') ..<br />
(options.prefix or '') ..<br />
n_text ..<br />
e_text ..<br />
final_unit ..<br />
(options.suffix or '')<br />
if result ~= '' then<br />
result = '<span class="nowrap">' .. result .. '</span>'<br />
end<br />
return result .. (options.warning or '')<br />
end<br />
<br />
local function check_parameters(args, has_ranges, nocat)<br />
-- Return warning text for the first problem parameter found, or nothing if ok.<br />
local whitelist = {<br />
a = true,<br />
action = true,<br />
debug = true,<br />
e = true,<br />
['end'] = true,<br />
errend = true,<br />
['+errend'] = true,<br />
['-errend'] = true,<br />
fmt = true,<br />
['long scale'] = true,<br />
long_scale = true,<br />
longscale = true,<br />
nocategory = true,<br />
p = true,<br />
s = true,<br />
sortable = true,<br />
u = true,<br />
ul = true,<br />
up = true,<br />
upl = true,<br />
}<br />
for k, v in pairs(args) do<br />
if type(k) == 'string' and not whitelist[k] then<br />
local warning = 'Val parameter "' .. k .. '=' .. v .. '" is not supported'<br />
return valerror(warning, nocat, true)<br />
end<br />
end<br />
if not has_ranges and args[4] then<br />
return valerror('Val parameter 4 ignored', nocat, true)<br />
end<br />
end<br />
<br />
local function main(frame)<br />
local getArgs = require('Modul:Arguments').getArgs<br />
local args = getArgs(frame, {wrappers = { 'Vorlage:Wert' }})<br />
local nocat = args.nocategory<br />
local numbers = {} -- table of number tables, perhaps with range text<br />
local msg = get_args(numbers, args)<br />
if msg then<br />
return valerror(msg, nocat)<br />
end<br />
if args.u and args.ul then<br />
return valerror('unit (<b>u</b>) and unit with link (<b>ul</b>) are both specified, only one is allowed.', nocat)<br />
end<br />
if args.up and args.upl then<br />
return valerror('unit per (<b>up</b>) and unit per with link (<b>upl</b>) are both specified, only one is allowed.', nocat)<br />
end<br />
local values<br />
if numbers.has_ranges then<br />
-- Multiple values with range separators but no uncertainty.<br />
numbers.nend = args['end']<br />
values = {<br />
numbers = numbers,<br />
}<br />
else<br />
-- A single value with optional uncertainty.<br />
local function setfield(i, dst, src)<br />
local v = args[src]<br />
if v then<br />
if numbers[i] then<br />
numbers[i][dst] = v<br />
else<br />
numbers[i] = { [dst] = v }<br />
end<br />
end<br />
end<br />
setfield(1, 'nend', 'end')<br />
setfield(2, 'errend', '+errend')<br />
setfield(3, 'errend', '-errend')<br />
values = {<br />
number = numbers[1],<br />
uncertainty = {<br />
upper = numbers[2],<br />
lower = numbers[3],<br />
errend = args.errend,<br />
}<br />
}<br />
end<br />
local unit_spec = {<br />
u = args.ul or args.u,<br />
want_link = args.ul ~= nil,<br />
per = args.upl or args.up,<br />
want_per_link = args.upl ~= nil,<br />
want_longscale = (args.longscale or args.long_scale or args['long scale']) == 'on',<br />
}<br />
local options = {<br />
action = args.action,<br />
align = args.a,<br />
e = numbers.e,<br />
fmt = args.fmt,<br />
nocat = nocat,<br />
prefix = args.p,<br />
sandbox = string.find(frame:getTitle(), 'sandbox', 1, true) ~= nil,<br />
sortable = args.sortable or (args.debug == 'yes' and 'debug' or nil),<br />
suffix = args.s,<br />
warning = check_parameters(args, numbers.has_ranges, nocat),<br />
}<br />
return _main(values, unit_spec, options)<br />
end<br />
<br />
return { main = main, _main = _main }</div>
Sivizius