差分

ナビゲーションに移動 検索に移動

テンプレート:Time ago

1,150 バイト追加, 2014年5月2日 (金) 04:49
ページの作成:「{{#iferror: {{#time:U| {{{1|}}} }} |{{error|エラー:日付・時間の入力がありません。}} |{{Time ago/core |ago = {{{ago|前}}} |time = {{{1|}}} |...」
{{#iferror: {{#time:U| {{{1|}}} }}
|{{error|エラー:日付・時間の入力がありません。}}
|{{Time ago/core
|ago = {{{ago|前}}}
|time = {{{1|}}}
|auto_magnitude_num = {{#if:{{{magnitude|}}}
|0<!-- Make sure the specified {{{magnitude}}} is used -->
|{{#expr:{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 120 ) | 1 | 0 }}+
{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 7200 ) | 1 | 0 }}+
{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 172800 ) | 1 | 0 }}+
{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 5356800 ) | 2 | 0 }}+
{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 63115200 ) | 1 | 0 }}
}}
}}
|min_magnitude_num = {{#switch:{{#if:{{{magnitude|}}}
|{{{magnitude}}}
|{{{min_magnitude}}}
}}
|years = 6
|months = 5
|weeks = 4
|days = 3
|hours = 2
|minutes = 1
|seconds
|#default= 0
}}
}}
}}{{#ifeq:{{{purge|}}}|yes|&#32;<span class="plainlinks">([{{fullurl:{{FULLPAGENAME}}|action=purge}} パージ])</span>|}}<noinclude>{{documentation}}</noinclude>
匿名利用者

案内メニュー