Template:Xmbox/doc

From DnD with Extra Tongues
Jump to navigation Jump to search

This template creates template messages boxes. It uses {{ #if: | }}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Mbox | 0 | 1 }} | : || {{ #if: || Template }} }}:Mbox|{{ #ifeq: {{ #sub: Mbox | 0 | 1 }} | : | : }}{{ #ifeq: | Template | Mbox | Mbox }}]]{{ #if:

 | |{{{2}}} }}{{ #if: 
 | |{{{3}}} }}{{ #if: 
 | |{{{4}}} }}{{ #if: 
 | |{{{5}}} }}{{ #if: 
 | |{{{6}}} }}{{ #if: 
 | |{{{7}}} }}{{ #if: 
 | |{{{8}}} }}{{ #if: 
 | |{{{9}}} }}{{ #if: 
 | |{{{10}}} }}{{ #if: 
 | |{{{11}}} }}{{ #if: 
 | |{{{12}}} }}{{ #if: 
 | |{{{13}}} }}{{ #if: 
 | |{{{14}}} }}{{ #if: 
 | |{{{15}}} }}{{ #if: 
 | |{{{16}}} }}{{ #if: 
 | |{{{17}}} }}{{ #if: 
 | |{{{18}}} }}{{ #if: 
 | |{{{19}}} }}{{ #if: 
 | |{{{20}}} }}{{ #if: 
 | |{{{21}}} }}}}{{ #if:  |  }} that is based on Mbox on Wikipedia. Please see Mbox for installation instructions.

Usage

{{Xmbox
| type  =
| small =
| id    =
| class =
| style =
| textstyle  =
| plainlinks =
| text  =
| issue =
| fix   =
| date  =
| info  =
| image =
| imageright
| doc =
| cat =
}}

Parameters

  • type
    • speedy - speedy delete message box
    • delete - delete message box
    • content - content message box
    • style - style message box
    • notice - general message box (default)
    • protection - protection message box
  • small - a small left floated message box
  • id - the id of the box
  • class - any additional classes for the box
  • style - any additional styles for the box
  • textstyle - any additional style for the text in the box
  • plainlinks - if you want all external links to be plain links
  • text - text of the message box or use the following together
    • issue - the issue of the message box
    • fix - how to fix the message issue
  • date - the date the box was placed
  • info - more information about the issue
  • image - image in the left side of the message box.
  • imageright - image in the right side of the message box.
  • doc - answer yes to this when you are using your Xmbox template on a documentation page, the documentation will not be categorized.
  • cat - this is the category your Xmbox will put the pages in where it is used.

Boxen

All options are not shown.

This wiki has instant commons. If you want these images, your wiki's admin will have to request instant commons or you will have to upload the images manually.

{{#ifeq: yes | yes || {{#if: Templates for speedy deletion | Templates for speedy deletion}}}}

{{#ifeq: yes | yes || {{#if: Templates for deletion | Templates for deletion}}}}

{{#ifeq: | yes || {{#if: | }}}}

{{#ifeq: | yes || {{#if: | }}}}

{{#ifeq: | yes || {{#if: | }}}}

{{#ifeq: | yes || {{#if: | }}}}

{{#ifeq: yes | yes || {{#if: Protected templates | Protected templates}}}}

Small box

{{#ifeq: | yes || {{#if: | }}}}

This is a message box that can be used to highlight minor issues with a template or documentation of it. It is suggested to use a normal box for bigger problems with the template or documentation. Text can flow around this box, so if you do not want text beside the box, you should use the <div style="clear:both"></div> directly after the box.

Here is the code for the above box.

{{Xmbox
| small = yes
| type  = notice
| text  = This is a small template general message box.
}}

See also

  • {{ #if: | }}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Ambox | 0 | 1 }} | : || {{ #if: || Template }} }}:Ambox|{{ #ifeq: {{ #sub: Ambox | 0 | 1 }} | : | : }}{{ #ifeq: | Template | Ambox | Ambox }}]]{{ #if:
 | |{{{2}}} }}{{ #if: 
 | |{{{3}}} }}{{ #if: 
 | |{{{4}}} }}{{ #if: 
 | |{{{5}}} }}{{ #if: 
 | |{{{6}}} }}{{ #if: 
 | |{{{7}}} }}{{ #if: 
 | |{{{8}}} }}{{ #if: 
 | |{{{9}}} }}{{ #if: 
 | |{{{10}}} }}{{ #if: 
 | |{{{11}}} }}{{ #if: 
 | |{{{12}}} }}{{ #if: 
 | |{{{13}}} }}{{ #if: 
 | |{{{14}}} }}{{ #if: 
 | |{{{15}}} }}{{ #if: 
 | |{{{16}}} }}{{ #if: 
 | |{{{17}}} }}{{ #if: 
 | |{{{18}}} }}{{ #if: 
 | |{{{19}}} }}{{ #if: 
 | |{{{20}}} }}{{ #if: 
 | |{{{21}}} }}}}{{ #if:  |  }} - article message box
  • {{ #if: | }}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Cmbox | 0 | 1 }} | : || {{ #if: || Template }} }}:Cmbox|{{ #ifeq: {{ #sub: Cmbox | 0 | 1 }} | : | : }}{{ #ifeq: | Template | Cmbox | Cmbox }}]]{{ #if:
 | |{{{2}}} }}{{ #if: 
 | |{{{3}}} }}{{ #if: 
 | |{{{4}}} }}{{ #if: 
 | |{{{5}}} }}{{ #if: 
 | |{{{6}}} }}{{ #if: 
 | |{{{7}}} }}{{ #if: 
 | |{{{8}}} }}{{ #if: 
 | |{{{9}}} }}{{ #if: 
 | |{{{10}}} }}{{ #if: 
 | |{{{11}}} }}{{ #if: 
 | |{{{12}}} }}{{ #if: 
 | |{{{13}}} }}{{ #if: 
 | |{{{14}}} }}{{ #if: 
 | |{{{15}}} }}{{ #if: 
 | |{{{16}}} }}{{ #if: 
 | |{{{17}}} }}{{ #if: 
 | |{{{18}}} }}{{ #if: 
 | |{{{19}}} }}{{ #if: 
 | |{{{20}}} }}{{ #if: 
 | |{{{21}}} }}}}{{ #if:  |  }} - category message box
  • {{ #if: | }}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Imbox | 0 | 1 }} | : || {{ #if: || Template }} }}:Imbox|{{ #ifeq: {{ #sub: Imbox | 0 | 1 }} | : | : }}{{ #ifeq: | Template | Imbox | Imbox }}]]{{ #if:
 | |{{{2}}} }}{{ #if: 
 | |{{{3}}} }}{{ #if: 
 | |{{{4}}} }}{{ #if: 
 | |{{{5}}} }}{{ #if: 
 | |{{{6}}} }}{{ #if: 
 | |{{{7}}} }}{{ #if: 
 | |{{{8}}} }}{{ #if: 
 | |{{{9}}} }}{{ #if: 
 | |{{{10}}} }}{{ #if: 
 | |{{{11}}} }}{{ #if: 
 | |{{{12}}} }}{{ #if: 
 | |{{{13}}} }}{{ #if: 
 | |{{{14}}} }}{{ #if: 
 | |{{{15}}} }}{{ #if: 
 | |{{{16}}} }}{{ #if: 
 | |{{{17}}} }}{{ #if: 
 | |{{{18}}} }}{{ #if: 
 | |{{{19}}} }}{{ #if: 
 | |{{{20}}} }}{{ #if: 
 | |{{{21}}} }}}}{{ #if:  |  }} - image message box
  • {{ #if: | }}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Tmbox | 0 | 1 }} | : || {{ #if: || Template }} }}:Tmbox|{{ #ifeq: {{ #sub: Tmbox | 0 | 1 }} | : | : }}{{ #ifeq: | Template | Tmbox | Tmbox }}]]{{ #if:
 | |{{{2}}} }}{{ #if: 
 | |{{{3}}} }}{{ #if: 
 | |{{{4}}} }}{{ #if: 
 | |{{{5}}} }}{{ #if: 
 | |{{{6}}} }}{{ #if: 
 | |{{{7}}} }}{{ #if: 
 | |{{{8}}} }}{{ #if: 
 | |{{{9}}} }}{{ #if: 
 | |{{{10}}} }}{{ #if: 
 | |{{{11}}} }}{{ #if: 
 | |{{{12}}} }}{{ #if: 
 | |{{{13}}} }}{{ #if: 
 | |{{{14}}} }}{{ #if: 
 | |{{{15}}} }}{{ #if: 
 | |{{{16}}} }}{{ #if: 
 | |{{{17}}} }}{{ #if: 
 | |{{{18}}} }}{{ #if: 
 | |{{{19}}} }}{{ #if: 
 | |{{{20}}} }}{{ #if: 
 | |{{{21}}} }}}}{{ #if:  |  }} - talk page message box
  • {{ #if: | }}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Fmbox | 0 | 1 }} | : || {{ #if: || Template }} }}:Fmbox|{{ #ifeq: {{ #sub: Fmbox | 0 | 1 }} | : | : }}{{ #ifeq: | Template | Fmbox | Fmbox }}]]{{ #if:
 | |{{{2}}} }}{{ #if: 
 | |{{{3}}} }}{{ #if: 
 | |{{{4}}} }}{{ #if: 
 | |{{{5}}} }}{{ #if: 
 | |{{{6}}} }}{{ #if: 
 | |{{{7}}} }}{{ #if: 
 | |{{{8}}} }}{{ #if: 
 | |{{{9}}} }}{{ #if: 
 | |{{{10}}} }}{{ #if: 
 | |{{{11}}} }}{{ #if: 
 | |{{{12}}} }}{{ #if: 
 | |{{{13}}} }}{{ #if: 
 | |{{{14}}} }}{{ #if: 
 | |{{{15}}} }}{{ #if: 
 | |{{{16}}} }}{{ #if: 
 | |{{{17}}} }}{{ #if: 
 | |{{{18}}} }}{{ #if: 
 | |{{{19}}} }}{{ #if: 
 | |{{{20}}} }}{{ #if: 
 | |{{{21}}} }}}}{{ #if:  |  }} - footer and header message box
  • {{ #if: | }}{{{{ #if: | {{{prefix}}}: }}[[{{ #ifeq: {{ #sub: Ombox | 0 | 1 }} | : || {{ #if: || Template }} }}:Ombox|{{ #ifeq: {{ #sub: Ombox | 0 | 1 }} | : | : }}{{ #ifeq: | Template | Ombox | Ombox }}]]{{ #if:
 | |{{{2}}} }}{{ #if: 
 | |{{{3}}} }}{{ #if: 
 | |{{{4}}} }}{{ #if: 
 | |{{{5}}} }}{{ #if: 
 | |{{{6}}} }}{{ #if: 
 | |{{{7}}} }}{{ #if: 
 | |{{{8}}} }}{{ #if: 
 | |{{{9}}} }}{{ #if: 
 | |{{{10}}} }}{{ #if: 
 | |{{{11}}} }}{{ #if: 
 | |{{{12}}} }}{{ #if: 
 | |{{{13}}} }}{{ #if: 
 | |{{{14}}} }}{{ #if: 
 | |{{{15}}} }}{{ #if: 
 | |{{{16}}} }}{{ #if: 
 | |{{{17}}} }}{{ #if: 
 | |{{{18}}} }}{{ #if: 
 | |{{{19}}} }}{{ #if: 
 | |{{{20}}} }}{{ #if: 
 | |{{{21}}} }}}}{{ #if:  |  }} - all other pages message box