template:vacation

{{wikibreak

| image = {{{image|Beach-scene.svg}}}

| imageright = {{#if:{{{2|{{{country|}}}}}}|{{#ifexist:Template:Country data {{{2|{{{country}}}}}}|{{getalias|{{{2|{{{country}}}}}}|flag}}|World map.svg}}|Modern clock chris kemps 01.svg}}

| imagesizeright = x40px

| style = text-align: center; {{#if:{{{bgcol|}}}|background: {{{bgcol}}};}} {{#if:{{{fullwidth|}}}|width: 100%; margin: 4px 0;}}

| message =

{{#if:{{{from|}}}{{{until|}}}|{{#iferror:{{#expr:{{#time:U|{{{until|}}}}}+{{#time:U|{{{from|}}}}}}}|{{{1|{{ROOTPAGENAME}}}}} is away on vacation{{#if:{{{holiday {{#if:{{{2|{{{country|{{{location|}}}}}}}}}|in {{{location|{{{country}}}}}}}}}}} from {{{from}}} {{#if:{{{until|}}}|to {{{until}}}}} and may not respond swiftly to queries.|{{#ifexpr:{{#time:U|{{{until|{{{from|}}}}}}}}<{{#time:U|{{{from|{{{until|}}}}}}}}|{{error|Date error: {{para|from}} date is after {{para|until}}}}|'''{{{1|{{ROOTPAGENAME}}}}} {{#ifexpr:{{#time:U|{{{until|}}}}}<{{#time:U}}|was|{{#if:{{{until|}}}|will be|{{#ifexpr:{{#time:U|{{{from|}}}}}<{{#time:U}}|is|will be}}}}}} away on vacation{{#if:{{{holiday''' {{#if:{{{2|{{{country|{{{location|}}}}}}}}}|in {{{location|{{{country}}}}}}}}}}} {{#switch:{{#ifexpr:{{#time:U|{{{from|}}}}}>{{#time:U}}|F|P}}-{{#ifexpr:{{#time:U|{{{until|}}}}}<{{#time:U}}|P|F}}| P-P = {{#if:{{{from|}}}|from {{{from}}} to|until}} {{{until}}} and may not have responded| P-F = {{#if:{{{until|}}}|until {{{until}}}}} and may not respond| F-F = from {{{from}}} {{#if:{{{until|}}}|to {{{until}}}}} and may not respond}} swiftly to queries.}}}}|{{{1|{{ROOTPAGENAME}}}}} is away on vacation{{#if:{{{holiday {{#if:{{{2|{{{country|{{{location|}}}}}}}}}|in {{{location|{{{country}}}}}}}}}}} and may not respond swiftly to queries.

}} {{{3|{{{cmt|}}}}}}

}}

{{Documentation}}