https://wiki.tiplanet.org/index.php?title=Mod%C3%A8le:Time_ago&feed=atom&action=history Modèle:Time ago - Historique des versions 2024-03-28T20:36:50Z Historique des versions pour cette page sur le wiki MediaWiki 1.40.0 https://wiki.tiplanet.org/index.php?title=Mod%C3%A8le:Time_ago&diff=2445&oldid=prev Adriweb le 24 avril 2013 à 10:54 2013-04-24T10:54:22Z <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="fr"> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Version précédente</td> <td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version du 24 avril 2013 à 11:54</td> </tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Ligne 1 :</td> <td colspan="2" class="diff-lineno">Ligne 1 :</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>{{#iferror: {{#time:U| {{{1|}}} }}</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>{{#iferror: {{#time:U| {{{1|}}} }} |{{error|<ins style="font-weight: bold; text-decoration: none;">Erreur</ins>: <ins style="font-weight: bold; text-decoration: none;">le premier paramètre ne peut être analysé comme une </ins>date <ins style="font-weight: bold; text-decoration: none;">ou une durée</ins>.}} |{{Time ago/core <ins style="font-weight: bold; text-decoration: none;"> </ins>|ago = {{{<ins style="font-weight: bold; text-decoration: none;">il y a</ins>|<ins style="font-weight: bold; text-decoration: none;">il y a</ins>}}} <ins style="font-weight: bold; text-decoration: none;"> </ins>|time = {{{1|}}} <ins style="font-weight: bold; text-decoration: none;"> </ins>|auto_magnitude_num = {{#if:{{{magnitude|}}} <ins style="font-weight: bold; text-decoration: none;">  </ins>|0&lt;!-- <ins style="font-weight: bold; text-decoration: none;">S'assurer que la </ins>{{{magnitude}}} <ins style="font-weight: bold; text-decoration: none;">spécifiée est bien utilisée </ins>--&gt; <ins style="font-weight: bold; text-decoration: none;">  </ins>|{{#expr:{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 120      ) | 1 | 0 }}+ <ins style="font-weight: bold; text-decoration: none;">  </ins>{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 7200    ) | 1 | 0 }}+ <ins style="font-weight: bold; text-decoration: none;">  </ins>{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 172800  ) | 1 | 0 }}+ <ins style="font-weight: bold; text-decoration: none;">  </ins>{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 5356800  ) | 2 | 0 }}+ <ins style="font-weight: bold; text-decoration: none;">  </ins>{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 63115200 ) | 1 | 0 }} <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;"> </ins>|min_magnitude_num = {{#switch:{{#if:{{{magnitude|}}} <ins style="font-weight: bold; text-decoration: none;">  </ins>|{{{magnitude}}} <ins style="font-weight: bold; text-decoration: none;">  </ins>|{{{min_magnitude}}} <ins style="font-weight: bold; text-decoration: none;">  </ins>}} <ins style="font-weight: bold; text-decoration: none;">  </ins>|years  = 6 <ins style="font-weight: bold; text-decoration: none;">  </ins>|months  = 5 <ins style="font-weight: bold; text-decoration: none;">  </ins>|weeks  = 4 <ins style="font-weight: bold; text-decoration: none;">  </ins>|days    = 3 <ins style="font-weight: bold; text-decoration: none;">  </ins>|hours  = 2 <ins style="font-weight: bold; text-decoration: none;">  </ins>|minutes = 1 <ins style="font-weight: bold; text-decoration: none;">  </ins>|seconds <ins style="font-weight: bold; text-decoration: none;">  </ins>|#default= 0  }} }}}}&lt;noinclude&gt;{{documentation}}&lt;/noinclude&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><del style="font-weight: bold; text-decoration: none;"> </del>|{{error|<del style="font-weight: bold; text-decoration: none;">Error</del>: <del style="font-weight: bold; text-decoration: none;">first parameter cannot be parsed as a </del>date <del style="font-weight: bold; text-decoration: none;">or time</del>.}}</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;"> </del>|{{Time ago/core</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|ago = {{{<del style="font-weight: bold; text-decoration: none;">ago</del>|<del style="font-weight: bold; text-decoration: none;">ago</del>}}}</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|time = {{{1|}}}</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|auto_magnitude_num = {{#if:{{{magnitude|}}}</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|0&lt;!-- <del style="font-weight: bold; text-decoration: none;">Make sure the specified </del>{{{magnitude}}} <del style="font-weight: bold; text-decoration: none;">is used </del>--&gt;</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|{{#expr:{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 120      ) | 1 | 0 }}+</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">    </del>{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 7200    ) | 1 | 0 }}+</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">    </del>{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 172800  ) | 1 | 0 }}+</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">    </del>{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 5356800  ) | 2 | 0 }}+</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">    </del>{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 63115200 ) | 1 | 0 }}</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>}}</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>}}</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|min_magnitude_num = {{#switch:{{#if:{{{magnitude|}}}</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">    </del>|{{{magnitude}}}</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">    </del>|{{{min_magnitude}}}</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>}}</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|years  = 6</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|months  = 5</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|weeks  = 4</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|days    = 3</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|hours  = 2</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|minutes = 1</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|seconds</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  </del>|#default= 0</div></td><td colspan="2" class="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><del style="font-weight: bold; text-decoration: none;">  }}</del></div></td><td colspan="2" class="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>  }}</div></td><td colspan="2" class="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>}}<del style="font-weight: bold; text-decoration: none;">{{#ifeq:{{{purge|}}}|yes|&amp;#32;&lt;span class="plainlinks"&gt;([{{fullurl:{{FULLPAGENAME}}|action=purge}} purge])&lt;/span&gt;|</del>}}&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</div></td><td colspan="2" class="diff-side-added"></td></tr> </table> Adriweb https://wiki.tiplanet.org/index.php?title=Mod%C3%A8le:Time_ago&diff=1280&oldid=prev Adriweb : Page créée avec « {{#iferror: {{#time:U| {{{1|}}} }} |{{error|Error: first parameter cannot be parsed as a date or time.}} |{{Time ago/core |ago = {{{ago|ago}}} |time = {{{1|}}} |au... » 2012-12-19T11:38:41Z <p>Page créée avec « {{#iferror: {{#time:U| {{{1|}}} }} |{{error|Error: first parameter cannot be parsed as a date or time.}} |{{Time ago/core |ago = {{{ago|ago}}} |time = {{{1|}}} |au... »</p> <p><b>Nouvelle page</b></p><div>{{#iferror: {{#time:U| {{{1|}}} }}<br /> |{{error|Error: first parameter cannot be parsed as a date or time.}}<br /> |{{Time ago/core<br /> |ago = {{{ago|ago}}}<br /> |time = {{{1|}}}<br /> |auto_magnitude_num = {{#if:{{{magnitude|}}}<br /> |0&lt;!-- Make sure the specified {{{magnitude}}} is used --&gt;<br /> |{{#expr:{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 120 ) | 1 | 0 }}+<br /> {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 7200 ) | 1 | 0 }}+<br /> {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 172800 ) | 1 | 0 }}+<br /> {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 5356800 ) | 2 | 0 }}+<br /> {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 63115200 ) | 1 | 0 }}<br /> }}<br /> }}<br /> |min_magnitude_num = {{#switch:{{#if:{{{magnitude|}}}<br /> |{{{magnitude}}}<br /> |{{{min_magnitude}}}<br /> }}<br /> |years = 6<br /> |months = 5<br /> |weeks = 4<br /> |days = 3<br /> |hours = 2<br /> |minutes = 1<br /> |seconds<br /> |#default= 0<br /> }}<br /> }}<br /> }}{{#ifeq:{{{purge|}}}|yes|&amp;#32;&lt;span class=&quot;plainlinks&quot;&gt;([{{fullurl:{{FULLPAGENAME}}|action=purge}} purge])&lt;/span&gt;|}}&lt;noinclude&gt;{{documentation}}&lt;/noinclude&gt;</div> Adriweb