Template:Wikibreak: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Created page with "{{{{#ifeq:{{{spacetype|}}}|tmbox|tmbox|mbox}} |style = {{{style|}}} |image = {{#ifeq:{{{noimage|}}}|{{{noimage|µ}}}|none|[[File:{{#if:{{{image|}}}|{{{image}}}|{{ #switch: {{{type|}}} | exams = Nuvola apps bookcase.svg | attempting | wikibreak | normal | short | #default = Sunset at Huntington Beach.jpg }}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|75x50px}}]]}} |imageright = {{#if:{{{imageright|}}}|File:{{{imageright}}}|{{#if:{{{imagesizeright|}}}|{{{imagesizeright}}}|7..." |
mNo edit summary |
||
| Line 3: | Line 3: | ||
|image = {{#ifeq:{{{noimage|}}}|{{{noimage|µ}}}|none|[[File:{{#if:{{{image|}}}|{{{image}}}|{{ #switch: {{{type|}}} | exams = Nuvola apps bookcase.svg | attempting | wikibreak | normal | short | #default = Sunset at Huntington Beach.jpg }}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|75x50px}}]]}} |
|image = {{#ifeq:{{{noimage|}}}|{{{noimage|µ}}}|none|[[File:{{#if:{{{image|}}}|{{{image}}}|{{ #switch: {{{type|}}} | exams = Nuvola apps bookcase.svg | attempting | wikibreak | normal | short | #default = Sunset at Huntington Beach.jpg }}}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|75x50px}}]]}} |
||
|imageright = {{#if:{{{imageright|}}}|[[File:{{{imageright}}}|{{#if:{{{imagesizeright|}}}|{{{imagesizeright}}}|75x50px}}]]|none}} |
|imageright = {{#if:{{{imageright|}}}|[[File:{{{imageright}}}|{{#if:{{{imagesizeright|}}}|{{{imagesizeright}}}|75x50px}}]]|none}} |
||
|text = {{#ifeq:{{{align|}}}|center|<span style="display: block; margin: 0px auto; text-align: center;">}}{{#if:{{{message|}}}|{{{message}}}|{{ #switch: {{{type}}} |exams = '''{{trim|1={{{name|{{{1|{{ROOTPAGENAME}}}}}}}}}}''' is taking a short '''[[Wikipedia:WP:Wikibreak|wikibreak]]'''{{#if:{{{begin|}}}| starting {{{begin|}}}|}} to get ready for exams and will be back on |
|text = {{#ifeq:{{{align|}}}|center|<span style="display: block; margin: 0px auto; text-align: center;">}}{{#if:{{{message|}}}|{{{message}}}|{{ #switch: {{{type}}} |exams = '''{{trim|1={{{name|{{{1|{{ROOTPAGENAME}}}}}}}}}}''' is taking a short '''[[Wikipedia:WP:Wikibreak|wikibreak]]'''{{#if:{{{begin|}}}| starting {{{begin|}}}|}} to get ready for exams and will be back on Test Wiki once the exams are {{#if: {{{2|}}} |over on {{{2}}}.|over.}}| attempting = '''{{trim|1={{{name|{{{1|{{ROOTPAGENAME}}}}}}}}}}''' is trying to take a short '''[[Wikipedia:WP:Wikibreak|wikibreak]]'''{{#if:{{{begin|}}}| as of {{{begin|}}}|}} and will be back on Test Wiki {{{back|{{{2|soon}}}}}}. Most likely, however, {{{name|{{{1|{{ROOTPAGENAME}}}}}}}} will not be able to keep away from Test Wiki for that long, and will probably be back a lot earlier while making some small edits every once in a while anyway. | semi = '''{{trim|1={{{name|{{{1|{{ROOTPAGENAME}}}}}}}}}}''' is taking a [[Wikipedia:WP:Wikibreak#Semi-wikibreak|semi-wikibreak]]{{#if:{{{begin|}}}| as of {{{begin|}}}|}} and will fully return to Test Wiki {{{back|{{{2|{{ #switch: {{{type}}} | long = some later time | wikibreak | normal | short | #default = later}}.}}}}}} | long | wikibreak | normal | short | #default = '''{{trim|1={{{name|{{{1|{{ROOTPAGENAME}}}}}}}}}}''' is taking a {{ #switch: {{{type}}} | long = long | wikibreak | normal | short | #default = short }} '''[[Wikipedia:WP:Wikibreak|wikibreak]]''' {{#if:{{{begin|}}}| as of {{{begin|}}}|}} and will be back on Test Wiki {{{back|{{{2|{{ #switch: {{{type}}} | long = some time later | wikibreak | normal | short | #default = soon}}.}}}}}} {{{3|}}} }} }}{{#ifeq:{{{align|}}}|center|</span>}} |
||
}}<noinclude> |
}}<noinclude>{{documentation}} |
||
[[Category:Templates]]</noinclude> |
|||
{{Documentation}} |
|||
</noinclude> |
|||
Latest revision as of 05:10, 8 March 2024
Usage
[edit source]The simplest use is to place {{wikibreak}} on your user and/or user talk pages and the above will be displayed, but with your user name in place of "Wikibreak".
{{wikibreak|message=YourMessage}}, where YourMessage is the message you wish to use instead of the default above. Putting {{wikibreak|message=I will be on holiday}} will produce...
It is possible to adjust the size and change the type of image for your Wikibreak template. Note that to change the file name you should not add "File:".
{{wikibreak|message=I will be on holiday.|image=Clipart island.svg|imagesize=75px}}
For more options, in particular for the |type= parameter, see below.
Syntax
[edit source]Any and all parameters optional.
{{wikibreak
| [Name]
| begin =
| back =
| type =
| message =
| align =
| image =
| noimage =
| imagesize =
| spacetype =
| style =
}}
| Parameter | Description | Example and default |
|---|---|---|
| Name | Your username or nickname. | {{wikibreak | Joe | ...}}Default: {{BASEPAGENAME}} |
| type | Type of break:
|
{{wikibreak | type=long | ...}}Default: #default |
| begin | Adds starting date for wikibreak to default message. | {{wikibreak | begin=November 6, 2025 | ...}}Default: <none> |
| back | Replaces "soon" in the default message. Deprecated. | {{wikibreak | back=in January | ...}}Default: soon |
| message | Your own message rather than the default. | {{wikibreak | message=Joe is elsewhere for now, but will check his talk page now and then. | ...}}Default: "Name is taking a short wikibreak and will be back on Wikipedia soon." |
| align | The alignment of the message. Options are "left" and "center". | {{wikibreak | message=Joe is elsewhere for now, but will check his talk page now and then. | align=left |...}}Default: left |
| image | Filename of the image you wish to appear beside the message (omitting "Image:" prefix). |
{{wikibreak ...| image=MyImage.jpg | ...}}Default: Sunset at Huntington Beach.jpg |
| noimage | To display the template without a picture. | {{wikibreak ...| noimage= | ...}}Default: unused |
| spacetype | Type of box:
tmbox (makes it appear like a tmbox) |
{{wikibreak | spacetype=tmbox | ...}}Default: mbox |
| imagesize | Size of the image. | {{wikibreak ...| imagesize=100px | ...}}Default: 75px |
| style | CSS style | {{wikibreak ...| style=background:#ffffff; | ...}}Default: mbox |