Editing Template:Imbox/doc

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page is not enabled for semantic in-text annotations due to namespace restrictions. Details about how to enable the namespace can be found on the configuration help page.

Latest revision Your text
Line 5: Line 5:
 
{{Mbox templates (small)}}
 
{{Mbox templates (small)}}
  
This is the {{tl|Imbox}} (['''I''']mage ['''m''']essage ['''box''']) [[WP:MTM|metatemplate]].
+
This is the {{tl|Imbox}} (['''I''']mage ['''m''']essage ['''box''']) metatemplate.
  
 
It is used to build message box templates for file (image) pages, such as {{tl|cleanup-image}} etc. It offers several different colours, uses default images if no image parameter is given and it has some other features.
 
It is used to build message box templates for file (image) pages, such as {{tl|cleanup-image}} etc. It offers several different colours, uses default images if no image parameter is given and it has some other features.
Line 87: Line 87:
 
{{Imbox
 
{{Imbox
 
| type = style
 
| type = style
| image = [[File:Camera-photo.svg|40px]]
+
| image = [[File:Gnome-dev-camera.svg|42px]]
 
| text = type = style<br/>image = <nowiki>[[File:Gnome-dev-camera.svg|42px]]</nowiki><br/>This image is used for {{tl|cleanup-image}}.
 
| text = type = style<br/>image = <nowiki>[[File:Gnome-dev-camera.svg|42px]]</nowiki><br/>This image is used for {{tl|cleanup-image}}.
 
}}
 
}}
Line 136: Line 136:
 
<pre>
 
<pre>
 
{{Imbox
 
{{Imbox
| name = name of the template
 
 
| type  = speedy / delete / content / style / notice /  
 
| type  = speedy / delete / content / style / notice /  
 
           move / protection / license / featured
 
           move / protection / license / featured
Line 148: Line 147:
 
}}
 
}}
 
</pre>
 
</pre>
 
'''name'''
 
:(Optional) Name of the template. This adds a CSS class with name <code>box-''name''</code> to the HTML element, for use by bots or scripts.
 
  
 
'''type'''
 
'''type'''
Line 187: Line 183:
  
 
===Technical details===
 
===Technical details===
Namespace "Image:" was renamed to "File:" on 11 December 2008. This template was created long before that, and that is why it is named "imbox" as in "image message box".
+
Namespace "File:" was renamed to "File:" on 11 December 2008. This template was created long before that, and that is why it is named "imbox" as in "image message box".
  
 
If you need to use special characters in the text parameter then you need to escape them like this:
 
If you need to use special characters in the text parameter then you need to escape them like this:
<syntaxhighlight lang="tid">
+
<pre>
 
{{Imbox
 
{{Imbox
 
| text = <div>
 
| text = <div>
 
Equal sign = and a start and end brace { } work fine as they are.  
 
Equal sign = and a start and end brace { } work fine as they are.  
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>.  
+
But here is a pipe {{!}} and two end braces &lt;nowiki>}}&lt;/nowiki>.  
And now a pipe and end braces <nowiki>|}}</nowiki>.
+
And now a pipe and end braces &lt;nowiki>|}}&lt;/nowiki>.
 
</div>
 
</div>
 
}}
 
}}
</syntaxhighlight>
+
</pre>
 
{{Imbox
 
{{Imbox
 
| text = <div>
 
| text = <div>
Line 218: Line 214:
 
{{Mbox templates see also}}
 
{{Mbox templates see also}}
  
<includeonly>{{Sandbox other|
+
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
 
| <!-- CATEGORIES BELOW THIS LINE, PLEASE -->
 
| <!-- CATEGORIES BELOW THIS LINE, PLEASE -->
 
[[Category:Mbox and messagebox templates]]
 
[[Category:Mbox and messagebox templates]]
 
[[Category:File namespace templates|*]]
 
[[Category:File namespace templates|*]]
 
}}</includeonly>
 
}}</includeonly>

Please note that all contributions to Yugipedia are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 International License (see Yugipedia:Licensing for more details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)
Preview page with this template
Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above.

View this template

This page is a member of 1 hidden category: