https://wiki.xenproject.org/api.php?action=feedcontributions&user=Lars&feedformat=atomXen - User contributions [en]2024-03-28T12:04:17ZUser contributionsMediaWiki 1.31.3https://wiki.xenproject.org/index.php?title=Template:Tmbox/doc&diff=1483Template:Tmbox/doc2011-12-04T23:15:06Z<p>Lars: </p>
<hr />
<div>{{documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
{{mbox templates}}<br />
This is the {{tl|tmbox}}, or '''talk page message box''', meta-template. This template is called by other templates to give a consistent structure and appearance to boilerplate messages used on talk pages across the project. It ''may'' be called directly on a talk page in order to present a one-off message in the same format as boilerplate messages, but this is non-standard (if a message is important enough to be presented in this form, you should consider creating a separate template so that it is easily available to other editors). Tmbox offers several different colors for different purposes, provides default images if no image parameter is given, and has some other pleasant features.<br />
<br />
This template should not be used for WikiProject banners. Such banners have special programming constraints that merit their own meta-templates. See the "See also" section below for links.<br />
<br />
This template works similarly to {{tl|ambox}} and uses the same parameters.<br />
<br />
=== We are deploying! ===<br />
After discussions on the [[Template talk:Tmbox|talk page]] of this template and announcing it at several places for some time we are now deploying this template. Feel free to convert any message boxes used on talk pages to use this meta-template. If you find any tricky cases then list them on the talk page of this template and you'll get help.<br />
<br />
When this template is used to build talk page message boxes those boxes should contain explanatory texts just like before. (The same texts as before or new improved texts.) If there are more specific images in the boxes or you know a better image, then use them instead of the default images shown here.<br />
<br />
=== Suggested style standard ===<br />
The types of talkpage messageboxes follow the same naming convention as the boxes for all other namespaces, but the type of any particular talkpage messagebox may not be as obvious as in other namespaces. When deciding on the type to use for a talkpage messagebox, please consider the following guidelines:<br />
* '''speedy''' should ''only'' be used for [[:Category:Speedy deletion templates|speedy deletion templates]].<br />
* '''delete''' should ''only'' be used for templates relating to ''ongoing'' deletion discussions. Please do ''not'' use this type just to get a red border for a messagebox.<br />
* '''content''' and '''style''' should be used for warnings and alerts. Use '''content''' (which has an orange border) for more important and immediate alerts, and '''style''' (yellow border) for less important warnings. Messageboxes of these types should ideally be ''transitory'': they should not be expected to remain on a talkpage indefinitely. <br />
* '''move''' and '''protection''' should only be used for messageboxes relating to moves and merges, and page protection, respectively. <br />
* The '''notice''' type should be used for the majority of talkpage messageboxes; those that are intended to convey or summarise information. If a talkpage messagebox does not obviously fit into one of the other types, it is probably a notice type.<br />
<br />
=== Usage ===<br />
Simple usage example:<br />
<br />
<pre><br />
{{tmbox | text = Some text.}}<br />
</pre><br />
<br />
{{tmbox | text = Some text.}}<br />
<br />
Complex example:<br />
<br />
<pre><br />
{{tmbox<br />
| type = style<br />
| image = [[Image:Emblem-question-yellow.svg|40px]]<br />
| style = width: 400px; <br />
| textstyle = color: red; font-weight: bold; font-style: italic;<br />
| text = The message body text.<br />
}}<br />
</pre><br />
<br />
{{tmbox<br />
| type = style<br />
| image = [[Image:Emblem-question-yellow.png|40px]]<br />
| style = width: 400px; <br />
| textstyle = color: red; font-weight: bold; font-style: italic;<br />
| text = The message body text.<br />
}}<br />
<br />
=== Talk page message box types ===<br />
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type.<br />
<br />
{{tmbox<br />
| type = speedy<br />
| text = type=<u>speedy</u> – Speedy deletion templates.<br />
}}<br />
{{tmbox<br />
| type = delete<br />
| text = type=<u>delete</u> – Deletion templates.<br />
}}<br />
{{tmbox<br />
| type = content<br />
| text = type=<u>content</u> – Major warnings and problems.<br />
}}<br />
{{tmbox<br />
| type = style<br />
| text = type=<u>style</u> – Minor warnings and problems.<br />
}}<br />
{{tmbox<br />
| type = notice<br />
| text = type=<u>notice</u> – Notices and messages of any kind, both permanent and temporary.<br />
}}<br />
{{tmbox<br />
| type = move<br />
| text = type=<u>move</u> – Merge, split, rename and transwiki messages and proposals.<br />
}}<br />
{{tmbox<br />
| type = protection<br />
| text = type=<u>protection</u> – Protection templates.<br />
}}<br />
<br />
=== Special ===<br />
Some other parameter combinations.<br />
<br />
{{tmbox<br />
| text = No type and no image given ('''default''')<br />
}}<br />
{{tmbox<br />
| image = none<br />
| text = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.<br />
}}<br />
{{tmbox<br />
| image = [[Image:Gnome globe current event.png|42px]]<br />
| imageright = [[Image:Nuvola apps bookcase.png|40px]]<br />
| text = image = <nowiki>[[Image:Gnome globe current event.png|42px]]</nowiki> <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.png|40px]]</nowiki><br />
}}<br />
<br />
=== Parameters ===<br />
List of all parameters:<br />
<br />
<pre><br />
{{tmbox<br />
| type = speedy / delete / content / style / notice / move / protection<br />
| image = none / [[Image:Some image.svg|40px]]<br />
| imageright = [[Image:Some image.svg|40px]]<br />
| style = CSS values<br />
| textstyle = CSS values<br />
| text = The message body text. <br />
| small = {{{small|}}} / yes<br />
| smallimage = none / [[Image:Some image.svg|30px]]<br />
| smallimageright = none / [[Image:Some image.svg|30px]]<br />
| smalltext = A shorter message body text.<br />
}}<br />
</pre><br />
<br />
'''type'''<br />
:If no '''type''' parameter is given the template defaults to type '''notice'''. That means it gets a gray border.<br />
<br />
'''image'''<br />
:'''No parameter''' = If no '''image''' parameter is given the template uses a default image. Which default image it uses depends on the '''type''' parameter. <br />
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example: <br />
::<code><nowiki>image = [[Image:Crystal package settings.png|40px]]</nowiki></code><br />
:'''none''' = Means that no image is used.<br />
<br />
'''imageright'''<br />
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side.<br />
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example: <br />
::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code><br />
:'''Anything''' = Any other object that you want to show on the right side.<br />
<br />
'''style'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the entire message box table. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example:<br />
::<code>style = margin-bottom: 0.5em;</code><br />
<br />
'''textstyle'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the text cell. For example:<br />
::<code>textstyle = text-align: center;</code><br />
<br />
'''text'''<br />
:The message body text.<br />
<br />
==== The small parameters ====<br />
{{tmbox<br />
| small = yes<br />
| text = small = yes<br />
}}<br />
{{tmbox<br />
| type = style<br />
| small = yes<br />
| text = type = style <br> small = yes<br />
}}<br />
'''small'''<br />
:'''yes''' = Makes it a smaller right floating message box. This also makes the default images smaller. Note that any data fed to the '''smallimage''', '''smallimageright''' and '''smalltext''' parameters is only used if "small=yes". To make it so your template also understands the small parameter you can use this code:<br />
::<code><nowiki>small = {{{small|}}}</nowiki></code><br />
<br />
{{tmbox<br />
| small = yes<br />
| image = [[Image:Nuvola apps bookcase.png|40px]]<br />
| smallimage = [[Image:Nuvola apps bookcase.png|30px]]<br />
| text = <br />
small = yes <br> image = <nowiki>[[Image:Nuvola apps bookcase.png|40px]]</nowiki> <br> smallimage = <nowiki>[[Image:Nuvola apps bookcase.png|30px]]</nowiki><br />
}}<br />
'''smallimage'''<br />
:'''No parameter''' = If no '''smallimage''' parameter is given then this template falls back to use the '''image''' parameter. If the '''image''' parameter also is empty then a small default image is used.<br />
:'''An image''' = Should be an image with usual wiki notation. 30px width is usually about right. For example: <br />
::<code><nowiki>smallimage = [[Image:Crystal package settings.png|30px]]</nowiki></code><br />
:'''none''' = Means that no image is used. This overrides any image fed to '''image''', when "small=yes".<br />
<br />
{{tmbox<br />
| small = yes<br />
| imageright = [[Image:Nuvola apps bookcase.png|40px]]<br />
| text = <br />
small = yes <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.png|40px]]</nowiki><br />
}}<br />
{{tmbox<br />
| small = yes<br />
| imageright = [[Image:Nuvola apps bookcase.png|30px]]<br />
| smallimageright = none<br />
| text = <br />
small = yes <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.png|40px]]</nowiki> <br> smallimageright = none<br />
}}<br />
<br />
'''smallimageright'''<br />
:'''No parameter''' = If no '''smallimageright''' parameter is given then this template falls back to use the '''imageright''' parameter. If the '''imageright''' parameter also is empty then no image is shown on the right side.<br />
:'''An image''' = Should be an image with usual wiki notation. 30px width is usually about right. For example: <br />
::<code><nowiki>smallimageright = [[Image:Nuvola apps bookcase.png|30px]]</nowiki></code><br />
:'''Anything''' = Any other object that you want to show on the right side.<br />
:'''none''' = Means that no right side image is used. This overrides any image fed to '''imageright''', when "small=yes".<br />
<br />
'''smalltext'''<br />
:A shorter version of the message body text. If no '''smalltext''' parameter is given then this template falls back to use the '''text''' parameter.<br />
<br />
=== Technical details ===<br />
If you need to use special characters in the text parameter then you need to escape them like this: <br />
<br />
<pre><br />
{{tmbox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are. <br />
But here is a pipe {{!}} and two end braces &lt;nowiki>}}&lt;/nowiki>. <br />
And now a pipe and end braces &lt;nowiki>|}}&lt;/nowiki>.<br />
</div><br />
}}<br />
</pre><br />
<br />
{{tmbox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are. <br />
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. <br />
And now a pipe and end braces <nowiki>|}}</nowiki>.<br />
</div><br />
}}<br />
<br />
This template uses the tmbox CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.<br />
<br />
This template calls {{tl|tmbox/core}} which holds most of the code for {{tl|tmbox}}, while {{tl|tmbox}} itself does parameter preprocessing. <br />
<br />
Internally this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use [[mediawikiwiki:Help:ParserFunctions|parser functions]] and special characters in parameters. <br />
<br />
For more technical details see the [[Template talk:Tmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details.<br />
₡<br />
=== See also ===<br />
Similar templates: <br />
* {{tl|Notice}}<br />
{{Mbox templates see also}}<br />
<br />
Other pages:<br />
* [[Wikipedia:Talk page templates]] – The guideline specifying the styles for talk page message boxes.<br />
<br />
WikiProject banners:<br />
* {{tl|WikiProjectBannerShell}} and {{tl|WPBannerMeta}} – A system for collapsing, wrapping and creating WikiProject banners.<br />
* {{tl|WikiProjectBanners}} – Another system for collapsing WikiProject banners.<br />
<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
</includeonly></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Ombox/doc&diff=1482Template:Ombox/doc2011-12-04T23:14:23Z<p>Lars: </p>
<hr />
<div>{{documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
{{mbox templates}}<br />
This is the {{tl|ombox}} or '''other pages message box''' meta-template.<br />
<br />
It is used to build message box templates for pages of the types: User, Wikipedia, MediaWiki, Template, Help, Portal and any new future namespaces. That is, page types not covered by {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}} or {{tl|cmbox}}. Thus, it should ''not'' be used for boxes for articles, talk pages, image pages or category pages.<br />
<br />
This template works almost exactly like {{tl|ambox}} and uses the same parameters.<br />
<br />
=== We are deploying! ===<br />
After discussions on the [[Template talk:Ombox|talk page]] of this template and announcing it at several places for some time we are now deploying this template. Feel free to convert any message boxes used on "other pages" to use this meta-template. If you find any tricky cases then list them on the talk page of this template and you'll get help.<br />
<br />
When this template is used to build other pages message boxes those boxes should contain explanatory texts just like before. (The same texts as before or new improved texts.) If there are more specific images in the boxes or you know a better image, then use them instead of the default images shown here.<br />
<br />
=== Usage ===<br />
Simple usage example:<br />
<br />
<pre><br />
{{ombox | text = Some text.}}<br />
</pre><br />
<br />
{{ombox | text = Some text.}}<br />
{{clear}}<br />
<br />
Complex example:<br />
<br />
<pre><br />
{{ombox<br />
| type = style<br />
| image = [[Image:Emblem-question-yellow.png|40px]]<br />
| style = width: 400px; <br />
| textstyle = color: red; font-weight: bold; font-style: italic;<br />
| text = The message body text.<br />
}}<br />
</pre><br />
<br />
{{ombox<br />
| type = style<br />
| image = [[Image:Emblem-question-yellow.png|40px]]<br />
| style = width: 400px; <br />
| textstyle = color: red; font-weight: bold; font-style: italic;<br />
| text = The message body text.<br />
}}<br />
{{clear}}<br />
<br />
=== Other pages message box types ===<br />
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type.<br />
<br />
{{ombox<br />
| type = speedy<br />
| text = type=<u>speedy</u> – Speedy deletion templates.<br />
}}<br />
{{ombox<br />
| type = delete<br />
| text = type=<u>delete</u> – Deletion templates.<br />
}}<br />
{{ombox<br />
| type = content<br />
| text = type=<u>content</u> – Major warnings and problems, such as {{tl|high-risk}}.<br />
}}<br />
{{ombox<br />
| type = style<br />
| text = type=<u>style</u> – Minor warnings and problems. {{tl|intricate}} should perhaps use this type.<br />
}}<br />
{{ombox<br />
| type = notice<br />
| text = type=<u>notice</u> – Notices and messages of any kind, both permanent and temporary. Such as {{tl|guideline}} and {{tl|Wikipedia how to}}.<br />
}}<br />
{{ombox<br />
| type = move<br />
| text = type=<u>move</u> – Merge, split, rename and transwiki messages and proposals.<br />
}}<br />
{{ombox<br />
| type = protection<br />
| text = type=<u>protection</u> – Protection templates such as {{tl|pp-protected}} when shown on "other pages".<br />
}}<br />
<br />
=== Examples ===<br />
Some examples using the "notice" style:<br />
<br />
{{ombox<br />
| text = No type and no image given ('''default''')<br />
}}<br />
{{ombox<br />
| image = none<br />
| text = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.<br />
}}<br />
{{ombox<br />
| image = [[Image:Gnome globe current event.png|42px]]<br />
| imageright = [[Image:Nuvola apps bookcase.png|40px]]<br />
| text = image = <nowiki>[[Image:Gnome globe current event.png|42px]]</nowiki> <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.png|40px]]</nowiki><br />
}}<br />
<br />
{{ombox<br />
| type = notice<br />
| image = [[Image:Blue check.png|30px]]<br />
| imageright = {{shortcut|WP:SHORT}}<br />
| text = <br />
'''This page documents an English Wikipedia [[Wikipedia:Policies and guidelines|guideline]].''' It is a generally accepted standard that editors should follow, though it should be treated with [[Wikipedia:Use common sense|common sense]] and the [[Wikipedia:Ignore all rules|occasional exception]]. When editing this page, please ensure that your revision reflects [[Wikipedia:Consensus|consensus]]. When in doubt, discuss on the [[{{TALKPAGENAME}}|talk page]].<br />
}}<br />
{{ombox<br />
| type = notice<br />
| image = [[Image:Nutshell.png|30px]]<br />
| text = <br />
'''This page in a nutshell:''' This template is used to build message boxes for all pages that are ''not'' articles, talk pages, image pages or category pages.<br />
}}<br />
<br />
=== Parameters ===<br />
List of all parameters:<br />
<br />
<pre><br />
{{ombox<br />
| type = speedy / delete / content / style / notice / move / protection<br />
| image = none / [[Image:Some image.png|40px]]<br />
| imageright = [[Image:Some image.png|40px]]<br />
| style = CSS values<br />
| textstyle = CSS values<br />
| text = The message body text. <br />
| small = {{{small|}}} / yes<br />
| smallimage = none / [[Image:Some image.png|30px]]<br />
| smallimageright = none / [[Image:Some image.png|30px]]<br />
| smalltext = A shorter message body text.<br />
}}<br />
</pre><br />
<br />
'''type'''<br />
:If no '''type''' parameter is given the template defaults to type '''notice'''. That means it gets a gray border.<br />
<br />
'''image'''<br />
:'''No parameter''' = If no '''image''' parameter is given the template uses a default image. Which default image it uses depends on the '''type''' parameter. <br />
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example: <br />
::<code><nowiki>image = [[Image:Crystal package settings.png|40px]]</nowiki></code><br />
:'''none''' = Means that no image is used.<br />
<br />
'''imageright'''<br />
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side.<br />
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example: <br />
::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code><br />
:'''Anything''' = Any other object that you want to show on the right side.<br />
<br />
'''style'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the entire message box table. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example:<br />
::<code>style = margin-bottom: 0.5em;</code><br />
<br />
'''textstyle'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the text cell. For example:<br />
::<code>textstyle = text-align: center;</code><br />
<br />
'''text'''<br />
:The message body text.<br />
<br />
==== The small parameters ====<br />
{{ombox<br />
| small = yes<br />
| text = small = yes<br />
}}<br />
{{ombox<br />
| type = style<br />
| small = yes<br />
| text = type = style <br> small = yes<br />
}}<br />
'''small'''<br />
:'''yes''' = Makes it a smaller right floating message box. This also makes the default images smaller. Note that any data fed to the '''smallimage''', '''smallimageright''' and '''smalltext''' parameters is only used if "small=yes". To make it so your template also understands the small parameter you can use this code:<br />
::<code><nowiki>small = {{{small|}}}</nowiki></code><br />
<br />
{{ombox<br />
| small = yes<br />
| image = [[Image:Replacement filing cabinet.png|50px]]<br />
| smallimage = [[Image:Replacement filing cabinet.png|32px]]<br />
| text = <br />
small = yes <br> image = <nowiki>[[Image:Replacement filing cabinet.png|50px]]</nowiki> <br> smallimage = <nowiki>[[Image:Replacement filing cabinet.png|32px]]</nowiki><br />
}}<br />
'''smallimage'''<br />
:'''No parameter''' = If no '''smallimage''' parameter is given then this template falls back to use the '''image''' parameter. If the '''image''' parameter also is empty then a small default image is used.<br />
:'''An image''' = Should be an image with usual wiki notation. 30px width is usually about right. For example: <br />
::<code><nowiki>smallimage = [[Image:Replacement filing cabinet.png|30px]]</nowiki></code><br />
:'''none''' = Means that no image is used. This overrides any image fed to '''image''', when "small=yes".<br />
<br />
{{ombox<br />
| small = yes<br />
| imageright = [[Image:Nuvola apps bookcase.png|50px]]<br />
| smallimageright = none<br />
| text = <br />
small = yes <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.png|50px]]</nowiki> <br> smallimageright = none<br />
}}<br />
'''smallimageright'''<br />
:'''No parameter''' = If no '''smallimageright''' parameter is given then this template falls back to use the '''imageright''' parameter. If the '''imageright''' parameter also is empty then no image is shown on the right side.<br />
:'''An image''' = Should be an image with usual wiki notation. 30px width is usually about right. For example: <br />
::<code><nowiki>smallimageright = [[Image:Nuvola apps bookcase.png|30px]]</nowiki></code><br />
:'''Anything''' = Any other object that you want to show on the right side.<br />
:'''none''' = Means that no right side image is used. This overrides any image fed to '''imageright''', when "small=yes".<br />
<br />
'''smalltext'''<br />
:A shorter version of the message body text. If no '''smalltext''' parameter is given then this template falls back to use the '''text''' parameter.<br />
<br />
=== Technical details ===<br />
If you need to use special characters in the text parameter then you need to escape them like this: <br />
<br />
<pre><br />
{{ombox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are. <br />
But here is a pipe {{!}} and two end braces &lt;nowiki>}}&lt;/nowiki>. <br />
And now a pipe and end braces &lt;nowiki>|}}&lt;/nowiki>.<br />
</div><br />
}}<br />
</pre><br />
<br />
{{ombox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are. <br />
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. <br />
And now a pipe and end braces <nowiki>|}}</nowiki>.<br />
</div><br />
}}<br />
<br />
This template uses the ombox CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.<br />
<br />
This template calls {{tl|ombox/core}} which holds most of the code for {{tl|ombox}}, while {{tl|ombox}} itself does parameter preprocessing. <br />
<br />
Internally this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use [[mediawikiwiki:Help:ParserFunctions|parser functions]] and special characters in parameters. <br />
<br />
The default images for this meta-template are in png format instead of svg format. The main reason is that some older web browsers have trouble with the transparent background that MediaWiki renders for svg images. The png images here have hand optimised transparent background colour so they look good in all browsers. Note that svg icons only look somewhat bad in the old browsers, thus such hand optimisation is only worth the trouble for very widely used icons.<br />
<br />
For more technical details see the [[Template talk:Ombox|talk page]]. Since this template works almost exactly like {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}} and {{tl|cmbox}} their talk pages and related pages might also contain more details.<br />
<br />
=== See also ===<br />
{{Mbox templates see also}}<br />
<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
</includeonly></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Ambox/doc&diff=1481Template:Ambox/doc2011-12-04T23:12:46Z<p>Lars: </p>
<hr />
<div>{{Documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
{{mbox templates}}<br />
This is the {{tl|ambox}} or '''article message box''' meta-template.<br />
<br />
It is used to build ''article message box'' templates such as {{tl|wikify}}. It offers several different colours, uses default images if no image parameter is given and it has some other features.<br />
<br />
This meta-template uses the ambox CSS classes in [[MediaWiki:Common.css]]. The classes can also be used directly in a [[mediawikiwiki:Help:Table|wikitable]] if special functionality is needed. See the [[Wikipedia:Ambox CSS classes|how-to guide]] for that.<br />
<br />
=== Usage ===<br />
Simple usage example:<br />
<br />
<pre><br />
{{ambox | text = Some text.}}<br />
</pre><br />
<br />
{{ambox | text = Some text.}}<br />
<br />
Complex example:<br />
<br />
<pre><br />
{{ambox<br />
| subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly><br />
| type = style<br />
| small = left<br />
| image = [[File:Emblem-question-yellow.png|40px|alt=Question mark]]<br />
| smallimage = [[File:Emblem-question-yellow.png|20px|alt=Question mark]]<br />
| textstyle = color: red; font-weight: bold; font-style: italic;<br />
| text = Text for a big box, for the top of articles.<br />
| smalltext = Text for the top of article sections.<br />
| category = A name of a category to use for monthly categories<br />
| date = {{{date|}}}<br />
| all = A category which all articles will be placed in<br />
}}<br />
</pre><br />
<br />
{{ambox<br />
| type = style<br />
| small = left<br />
| image = [[File:Emblem-question-yellow.png|40px|alt=Question mark]]<br />
| smallimage = [[File:Emblem-question-yellow.png|20px|alt=Question mark]]<br />
| textstyle = color: red; font-weight: bold; font-style: italic;<br />
| text = Text for a big box, for the top of articles.<br />
| smalltext = Text for the top of article sections.<br />
}}<br />
<br />
But you are not really supposed to use red bold italic text.<br />
<br />
=== Article message box types ===<br />
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type.<br />
<br />
{{ambox<br />
| type = speedy<br />
| text = type=<u>speedy</u> – Speedy deletion issues, such as {{tl|db-g1}} and {{tl|db-g3}}.<br />
}}<br />
{{ambox<br />
| type = delete<br />
| text = type=<u>delete</u> – Deletion issues, such as {{tl|afd}} and {{tl|prod}}.<br />
}}<br />
{{ambox<br />
| type = content<br />
| text = type=<u>content</u> – Content issues, such as {{tl|POV}} and {{tl|globalize}}.<br />
}}<br />
{{ambox<br />
| type = style<br />
| text = type=<u>style</u> – Style issues, such as {{tl|cleanup}} and {{tl|wikify}}.<br />
}}<br />
{{ambox<br />
| type = notice<br />
| text = type=<u>notice</u> – Article notices, such as {{tl|current}} and {{tl|inuse}}.<br />
}}<br />
{{ambox<br />
| type = move<br />
| text = type=<u>move</u> – Merge, split and transwiki proposals, such as {{tl|split}} and {{tl|copy to wiktionary}}.<br />
}}<br />
{{ambox<br />
| type = protection<br />
| text = type=<u>protection</u> – Protection notices, such as {{tl|pp-vandalism}} and {{tl|pp-semi-protected}}.<br />
}}<br />
<br />
=== Other images ===<br />
The default images shown above are mostly for convenience. In many cases it is more appropriate to use more specific images. These examples use the '''image''' parameter to specify an image other than the default images.<br />
<br />
{{ambox<br />
| type = content<br />
| image = [[File:Unbalanced scales.png|40px|link=|alt=]]<br />
| text = type = content <br> image = <nowiki>[[File:Unbalanced scales.png|40px|link=|alt=]]</nowiki> <br> This image is often used for {{tl|POV}} and similar issues.<br />
}}<br />
{{ambox<br />
| type = style<br />
| image = [[File:Wikitext.png|50px|link=|alt=]]<br />
| text = type = style <br> image = <nowiki>[[File:Wikitext.png|50px|link=|alt=]]</nowiki> <br> This image is often used for {{tl|wikify}} etc.<br />
}}<br />
{{ambox<br />
| type = move<br />
| image = [[File:Merge-arrows.png|50px|link=|alt=]]<br />
| text = type = move <br> image = <nowiki>[[File:Merge-arrows.png|50px|link=|alt=]]</nowiki> <br> This image is used for {{tl|merge}} etc.<br />
}}<br />
<br />
=== More examples ===<br />
Some other parameter combinations.<br />
<br />
{{ambox<br />
| text = No type and no image given ('''default''')<br />
}}<br />
{{ambox<br />
| image = none<br />
| text = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.<br />
}}<br />
<br />
{{ambox<br />
| image = [[File:Gnome globe current event.png|42px|alt=Clock over a larger globe]]<br />
| imageright = [[File:Nuvola apps bookcase.png|40px|alt=Three stacked books]]<br />
| text = image = <nowiki>[[File:Gnome globe current event.png|42px|alt=Clock over a larger globe]]</nowiki> <br> imageright = <nowiki>[[File:Nuvola apps bookcase.png|40px|alt=Three stacked books]]</nowiki><br />
}}<br />
<br />
{{ambox<br />
| image = [[File:Gnome globe current event.png|42px|alt=Clock over a larger globe]]<br />
| imageright = [[File:Shuttle.png|20px|link=|alt=]]<br />
| text = '''This article or section documents a current [[spaceflight]].'''<br />
<br>Content may change as the mission progresses.<br />
}}<br />
<br />
=== Parameters ===<br />
List of all parameters:<br />
<br />
<pre><br />
{{ambox<br />
| name = Name of template without the Template: part<br />
| subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly><br />
| type = speedy / delete / content / style / notice / move / protection<br />
| image = none / [[File:...|40px|...]]<br />
| imageright = [[File:...|40px|...]]<br />
| class = A custom CSS class to apply to the box<br />
| style = CSS values<br />
| textstyle = CSS values<br />
| text = The message body text.<br />
| small = {{{small|}}} / left<br />
| smallimage = none / [[File:...|20px|...]]<br />
| smallimageright = none / [[File:...|20px|...]]<br />
| smalltext = A shorter message body text.<br />
| category = Prefix for monthly categories<br />
| preposition = Preposition between category name and month (defaults to "from")<br />
| date = {{{date|}}}<br />
| all = Category which all articles will be placed in, if any<br />
}}<br />
</pre><br />
<br />
'''subst'''<br />
This should be used in order to detect when the template has been incorrectly substituted. Such pages will be placed in [[:Category:Pages with incorrectly substituted templates]]<br />
<br />
'''type'''<br />
:If no '''type''' parameter is given the template defaults to type '''notice'''. That means it gets a blue side bar.<br />
<br />
'''image'''<br />
:'''No parameter''' = If no '''image''' parameter is given the template uses a default image. Which default image it uses depends on the '''type''' parameter.<br />
:'''An image''' = Should be an image with usual wiki notation. Widths of 40px - 50px are usually about right. (Images over 52 pixels wide will cause padding problems.)<br />
:: Often an icon is [[Wikipedia:Alternative text for images#Purely decorative images|purely decorative]] in the W3C sense that it repeats the text. To improve [[Wikipedia:Accessibility|accessibility]], it is desirable to not have it be announced by [[screen reader]]s, as well as to avoid it linking to an irrelevant page. If (and only if) the image license allows this, it can be marked with "{{para|link}}{{para|alt}}". For example:<br />
:::<code><nowiki>image = [[File:Unbalanced scales.png|40px|link=|alt=]]</nowiki></code><br />
:: Conversely, an icon that does not use "{{para|link}}{{para|alt}}", and which therefore is announced to visually impaired readers, should use an "{{para|alt|<var>[[Wikipedia:Alternative text for images|alt text]]</var>}}" parameter that describes the icon. With no {{para|link}} parameter (using the default link), the alt text should describe the icon's visual appearance. For example:<br />
:::<code><nowiki>image = [[File:Gnome globe current event.png|40px|alt=Clock over a larger globe]]</nowiki></code><br />
:: With a nonempty "{{para|link|<var>Page</var>}}" the alt text should describe the icon's function. For example:<br />
:::<code><nowiki>image = [[File:Purple question mark.png|40px|link=Special:Random|alt=Random article]]</nowiki></code><br />
:: An icon whose license requires attribution may have alt text, but ''must keep the default link''. Although public domain images do not require a link, many licenses do require one. Please see ''[[Wikipedia:Alternative text for images#Purely decorative images|Purely decorative images]]'' for more information about licensing.<br />
:'''none''' = Means that no image is used.<br />
:<s>'''blank'''</s> = This parameter is now deprecated. If you see it in use, change it to "image=none".<br />
<br />
'''imageright'''<br />
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side.<br />
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (Images over 52 pixels width will cause padding problems.) For example:<br />
::<code><nowiki>imageright = [[File:Nuvola apps bookcase.png|40px|alt=Three stacked books]]</nowiki></code><br />
:'''Anything''' = Any other object that you want to show on the right side.<br />
<br />
'''style'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the entire message box table. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example:<br />
::<code>style = margin-bottom: 0.5em;</code><br />
<br />
'''textstyle'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the text cell. For example:<br />
::<code>textstyle = text-align: center;</code><br />
<br />
'''text'''<br />
<br />
==== Categorisation parameters ====<br />
*'''category''' - prefix for monthly categories, e.g. ''Wikipedia articles needing style editing''<br />
*'''preposition''' - preposition between category name and month; the default is ''from''<br />
*'''date'''= {{{date|}}} - pass through the date parameter when using monthly cleanup categories<br />
*'''all''' - category which all articles will be placed in, e.g. ''All articles needing style editing''<br />
<br />
==== The small parameters ====<br />
The small article message boxes are meant for the top of sections. Normally they should only contain one or two lines of text.<br />
<br />
'''small'''<br />
:'''left''' = Makes it a smaller left aligned message box. This also makes the default images smaller. Note that any data fed to the '''smallimage''', '''smallimageright''' and '''smalltext''' parameters is only used if "small=left". To make it so your template also understands the small parameter you can use this code:<br />
::<code><nowiki>small = {{{small|}}}</nowiki></code><br />
{{ambox<br />
| small = left<br />
| text = small = left<br />
}}<br />
{{ambox<br />
| type = style<br />
| small = left<br />
| text = type = style <br> small = left<br />
}}<br />
:'''any other value, including blank and no parameter''' = Default-sized inlined message box. Ignores '''smallimage''', '''smallimageright''' and '''smalltext'''.<br />
'''smallimage'''<br />
:'''No parameter''' = If no '''smallimage''' parameter is given then this template falls back to use the '''image''' parameter. If the '''image''' parameter also is empty then a small default image is used.<br />
:'''An image''' = Should be an image with usual wiki notation. 20px width is usually about right for boxes with one line of text, while 25px width is usually about right for boxes with two lines of text. For example:<br />
::<code><nowiki>smallimage = [[File:Gnome globe current event.png|20px|alt=Clock over a larger globe]]</nowiki></code><br />
:'''none''' = Means that no image is used. This overrides any image fed to '''image''', when "small=left".<br />
{{ambox<br />
| small = left<br />
| image = [[File:Replacement filing cabinet.png|50px|link=|alt=]]<br />
| smallimage = [[File:Replacement filing cabinet.png|25px|link=|alt=]]<br />
| text =<br />
small = left <br> image = <nowiki>[[File:Replacement filing cabinet.png|50px|link=|alt=]]</nowiki> <br> smallimage = <nowiki>[[File:Replacement filing cabinet.png|25px|link=|alt=]]</nowiki><br />
}}<br />
<br />
'''smallimageright'''<br />
:'''No parameter''' = If no '''smallimageright''' parameter is given then this template falls back to use the '''imageright''' parameter. If the '''imageright''' parameter also is empty then no image is shown on the right side.<br />
:'''An image''' = Should be an image with usual wiki notation. 20px - 25px width is usually about right. For example:<br />
::<code><nowiki>smallimageright = [[File:Nuvola apps bookcase.png|20px|alt=Three stacked books]]</nowiki></code><br />
:'''Anything''' = Any other object that you want to show on the right side.<br />
:'''none''' = Means that no right side image is used. This overrides any image fed to '''imageright''', when "small=left".<br />
{{ambox<br />
| small = left<br />
| imageright = [[File:Gnome globe current event.png|50px|alt=Clock over a larger globe]]<br />
| smallimageright = none<br />
| text =<br />
small = left <br> imageright = <nowiki>[[File:Gnome globe current event.png|50px|alt=Clock over a larger globe]]</nowiki> <br> smallimageright = none<br />
}}<br />
<br />
'''smalltext'''<br />
:A shorter version of the message body text. If no '''smalltext''' parameter is given then this template falls back to use the '''text''' parameter.<br />
<br />
=== Technical details ===<br />
If you need to use special characters in the text parameter then you need to escape them like this:<br />
<br />
<pre><br />
{{ambox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are.<br />
But here is a pipe &amp;#124; and two end braces &lt;nowiki>}}&lt;/nowiki>.<br />
And now a pipe and end braces &lt;nowiki>|}}&lt;/nowiki>.<br />
</div><br />
}}<br />
</pre><br />
<br />
{{ambox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are.<br />
But here is a pipe &#124; and two end braces <nowiki>}}</nowiki>.<br />
And now a pipe and end braces <nowiki>|}}</nowiki>.<br />
</div><br />
}}<br />
<br />
The <code>&lt;div></code> tags that surround the text in the example above are usually not needed. But if the text contains line breaks then sometimes we get weird line spacing. This especially happens when using vertical dotted lists. Then use the div tags to fix that.<br />
<br />
This template uses CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.<br />
<br />
This template calls {{tl|ambox/core}} which holds most of the code for {{tl|ambox}}, while {{tl|ambox}} itself does parameter preprocessing.<br />
<br />
Internally this meta-template uses HTML markup instead of wikimarkup for the table code. That is the usual way we make meta-templates since wikimarkup has several drawbacks. For instance it makes it harder to use [[mediawikiwiki:Help:ParserFunctions|parser functions]] and some special characters in parameters.<br />
<br />
The default images for this meta-template are in png format instead of svg format. The main reason is that some older web browsers have trouble with the transparent background that MediaWiki renders for svg images. The png images here have hand optimised transparent background colour so they look good in all browsers. Note that svg icons only look somewhat bad in the old browsers, thus such hand optimisation is only worth the trouble for very widely used icons.<br />
<br />
For more technical details see the [[Template talk:Ambox|talk page]] and the "See also" links below. Since this template works almost exactly like {{tl|tmbox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details.<br />
<br />
=== See also ===<br />
{{Mbox templates see also}}<br />
<br />
Other pages:<br />
* [[Wikipedia:Ambox CSS classes]] – Describes how to use the ambox CSS classes directly in [[mediawikiwiki:Help:Table|wikitable]]s and [[HTML element#Tables|HTML tables]].<br />
* [[Wikipedia:Article message boxes]] – The style guideline for creating article message boxes.<br />
* [[Wikipedia talk:Article message boxes]] – For discussion about these matters.<br />
<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
<br />
</includeonly></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Nmbox/doc&diff=1480Template:Nmbox/doc2011-12-04T23:11:07Z<p>Lars: </p>
<hr />
<div><!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
{{mbox templates}}<br />
This is the {{tl|ambox}} or '''article message box''' meta-template.<br />
<br />
It is used to build ''article message box'' templates such as {{tl|wikify}}. It offers several different colours, uses default images if no image parameter is given and it has some other features.<br />
<br />
This meta-template uses the ambox CSS classes in [[MediaWiki:Common.css]]. The classes can also be used directly in a [[mediawikiwiki:Help:Table|wikitable]] if special functionality is needed. See the [[Wikipedia:Ambox CSS classes|how-to guide]] for that.<br />
<br />
=== Usage ===<br />
Simple usage example:<br />
<br />
<pre><br />
{{ambox | text = Some text.}}<br />
</pre><br />
<br />
{{ambox | text = Some text.}}<br />
<br />
Complex example:<br />
<br />
<pre><br />
{{ambox<br />
| subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly><br />
| type = style<br />
| small = left<br />
| image = [[File:Emblem-question-yellow.png|40px|alt=Question mark]]<br />
| smallimage = [[File:Emblem-question-yellow.png|20px|alt=Question mark]]<br />
| textstyle = color: red; font-weight: bold; font-style: italic;<br />
| text = Text for a big box, for the top of articles.<br />
| smalltext = Text for the top of article sections.<br />
| category = A name of a category to use for monthly categories<br />
| date = {{{date|}}}<br />
| all = A category which all articles will be placed in<br />
}}<br />
</pre><br />
<br />
{{ambox<br />
| type = style<br />
| small = left<br />
| image = [[File:Emblem-question-yellow.png|40px|alt=Question mark]]<br />
| smallimage = [[File:Emblem-question-yellow.png|20px|alt=Question mark]]<br />
| textstyle = color: red; font-weight: bold; font-style: italic;<br />
| text = Text for a big box, for the top of articles.<br />
| smalltext = Text for the top of article sections.<br />
}}<br />
<br />
But you are not really supposed to use red bold italic text.<br />
<br />
=== Article message box types ===<br />
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type.<br />
<br />
{{ambox<br />
| type = speedy<br />
| text = type=<u>speedy</u> – Speedy deletion issues, such as {{tl|db-g1}} and {{tl|db-g3}}.<br />
}}<br />
{{ambox<br />
| type = delete<br />
| text = type=<u>delete</u> – Deletion issues, such as {{tl|afd}} and {{tl|prod}}.<br />
}}<br />
{{ambox<br />
| type = content<br />
| text = type=<u>content</u> – Content issues, such as {{tl|POV}} and {{tl|globalize}}.<br />
}}<br />
{{ambox<br />
| type = style<br />
| text = type=<u>style</u> – Style issues, such as {{tl|cleanup}} and {{tl|wikify}}.<br />
}}<br />
{{ambox<br />
| type = notice<br />
| text = type=<u>notice</u> – Article notices, such as {{tl|current}} and {{tl|inuse}}.<br />
}}<br />
{{ambox<br />
| type = move<br />
| text = type=<u>move</u> – Merge, split and transwiki proposals, such as {{tl|split}} and {{tl|copy to wiktionary}}.<br />
}}<br />
{{ambox<br />
| type = protection<br />
| text = type=<u>protection</u> – Protection notices, such as {{tl|pp-vandalism}} and {{tl|pp-semi-protected}}.<br />
}}<br />
<br />
=== Other images ===<br />
The default images shown above are mostly for convenience. In many cases it is more appropriate to use more specific images. These examples use the '''image''' parameter to specify an image other than the default images.<br />
<br />
{{ambox<br />
| type = content<br />
| image = [[File:Unbalanced scales.png|40px|link=|alt=]]<br />
| text = type = content <br> image = <nowiki>[[File:Unbalanced scales.svg|40px|link=|alt=]]</nowiki> <br> This image is often used for {{tl|POV}} and similar issues.<br />
}}<br />
{{ambox<br />
| type = style<br />
| image = [[File:Wikitext.png|50px|link=|alt=]]<br />
| text = type = style <br> image = <nowiki>[[File:Wikitext.svg|50px|link=|alt=]]</nowiki> <br> This image is often used for {{tl|wikify}} etc.<br />
}}<br />
{{ambox<br />
| type = move<br />
| image = [[File:Merge-arrows.png|50px|link=|alt=]]<br />
| text = type = move <br> image = <nowiki>[[File:Merge-arrows.svg|50px|link=|alt=]]</nowiki> <br> This image is used for {{tl|merge}} etc.<br />
}}<br />
<br />
=== More examples ===<br />
Some other parameter combinations.<br />
<br />
{{ambox<br />
| text = No type and no image given ('''default''')<br />
}}<br />
{{ambox<br />
| image = none<br />
| text = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.<br />
}}<br />
<br />
{{ambox<br />
| image = [[File:Gnome globe current event.png|42px|alt=Clock over a larger globe]]<br />
| imageright = [[File:Nuvola apps bookcase.png|40px|alt=Three stacked books]]<br />
| text = image = <nowiki>[[File:Gnome globe current event.svg|42px|alt=Clock over a larger globe]]</nowiki> <br> imageright = <nowiki>[[File:Nuvola apps bookcase.svg|40px|alt=Three stacked books]]</nowiki><br />
}}<br />
<br />
{{ambox<br />
| image = [[File:Gnome globe current event.png|42px|alt=Clock over a larger globe]]<br />
| imageright = [[File:Shuttle.png|20px|link=|alt=]]<br />
| text = '''This article or section documents a current [[spaceflight]].'''<br />
<br>Content may change as the mission progresses.<br />
}}<br />
<br />
=== Parameters ===<br />
List of all parameters:<br />
<br />
<pre><br />
{{ambox<br />
| name = Name of template without the Template: part<br />
| subst = <includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly><br />
| type = speedy / delete / content / style / notice / move / protection<br />
| image = none / [[File:...|40px|...]]<br />
| imageright = [[File:...|40px|...]]<br />
| class = A custom CSS class to apply to the box<br />
| style = CSS values<br />
| textstyle = CSS values<br />
| text = The message body text.<br />
| small = {{{small|}}} / left<br />
| smallimage = none / [[File:...|20px|...]]<br />
| smallimageright = none / [[File:...|20px|...]]<br />
| smalltext = A shorter message body text.<br />
| category = Prefix for monthly categories<br />
| preposition = Preposition between category name and month (defaults to "from")<br />
| date = {{{date|}}}<br />
| all = Category which all articles will be placed in, if any<br />
}}<br />
</pre><br />
<br />
'''subst'''<br />
This should be used in order to detect when the template has been incorrectly substituted. Such pages will be placed in [[:Category:Pages with incorrectly substituted templates]]<br />
<br />
'''type'''<br />
:If no '''type''' parameter is given the template defaults to type '''notice'''. That means it gets a blue side bar.<br />
<br />
'''image'''<br />
:'''No parameter''' = If no '''image''' parameter is given the template uses a default image. Which default image it uses depends on the '''type''' parameter.<br />
:'''An image''' = Should be an image with usual wiki notation. Widths of 40px - 50px are usually about right. (Images over 52 pixels wide will cause padding problems.)<br />
:: Often an icon is [[Wikipedia:Alternative text for images#Purely decorative images|purely decorative]] in the W3C sense that it repeats the text. To improve [[Wikipedia:Accessibility|accessibility]], it is desirable to not have it be announced by [[screen reader]]s, as well as to avoid it linking to an irrelevant page. If (and only if) the image license allows this, it can be marked with "{{para|link}}{{para|alt}}". For example:<br />
:::<code><nowiki>image = [[File:Unbalanced scales.png|40px|link=|alt=]]</nowiki></code><br />
:: Conversely, an icon that does not use "{{para|link}}{{para|alt}}", and which therefore is announced to visually impaired readers, should use an "{{para|alt|<var>[[Wikipedia:Alternative text for images|alt text]]</var>}}" parameter that describes the icon. With no {{para|link}} parameter (using the default link), the alt text should describe the icon's visual appearance. For example:<br />
:::<code><nowiki>image = [[File:Gnome globe current event.png|40px|alt=Clock over a larger globe]]</nowiki></code><br />
:: With a nonempty "{{para|link|<var>Page</var>}}" the alt text should describe the icon's function. For example:<br />
:::<code><nowiki>image = [[File:Purple question mark.png|40px|link=Special:Random|alt=Random article]]</nowiki></code><br />
:: An icon whose license requires attribution may have alt text, but ''must keep the default link''. Although public domain images do not require a link, many licenses do require one. Please see ''[[Wikipedia:Alternative text for images#Purely decorative images|Purely decorative images]]'' for more information about licensing.<br />
:'''none''' = Means that no image is used.<br />
:<s>'''blank'''</s> = This parameter is now deprecated. If you see it in use, change it to "image=none".<br />
<br />
'''imageright'''<br />
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side.<br />
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (Images over 52 pixels width will cause padding problems.) For example:<br />
::<code><nowiki>imageright = [[File:Nuvola apps bookcase.png|40px|alt=Three stacked books]]</nowiki></code><br />
:'''Anything''' = Any other object that you want to show on the right side.<br />
<br />
'''style'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the entire message box table. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example:<br />
::<code>style = margin-bottom: 0.5em;</code><br />
<br />
'''textstyle'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the text cell. For example:<br />
::<code>textstyle = text-align: center;</code><br />
<br />
'''text'''<br />
<br />
==== Categorisation parameters ====<br />
*'''category''' - prefix for monthly categories, e.g. ''Wikipedia articles needing style editing''<br />
*'''preposition''' - preposition between category name and month; the default is ''from''<br />
*'''date'''= {{{date|}}} - pass through the date parameter when using monthly cleanup categories<br />
*'''all''' - category which all articles will be placed in, e.g. ''All articles needing style editing''<br />
<br />
==== The small parameters ====<br />
The small article message boxes are meant for the top of sections. Normally they should only contain one or two lines of text.<br />
<br />
'''small'''<br />
:'''left''' = Makes it a smaller left aligned message box. This also makes the default images smaller. Note that any data fed to the '''smallimage''', '''smallimageright''' and '''smalltext''' parameters is only used if "small=left". To make it so your template also understands the small parameter you can use this code:<br />
::<code><nowiki>small = {{{small|}}}</nowiki></code><br />
{{ambox<br />
| small = left<br />
| text = small = left<br />
}}<br />
{{ambox<br />
| type = style<br />
| small = left<br />
| text = type = style <br> small = left<br />
}}<br />
:'''any other value, including blank and no parameter''' = Default-sized inlined message box. Ignores '''smallimage''', '''smallimageright''' and '''smalltext'''.<br />
'''smallimage'''<br />
:'''No parameter''' = If no '''smallimage''' parameter is given then this template falls back to use the '''image''' parameter. If the '''image''' parameter also is empty then a small default image is used.<br />
:'''An image''' = Should be an image with usual wiki notation. 20px width is usually about right for boxes with one line of text, while 25px width is usually about right for boxes with two lines of text. For example:<br />
::<code><nowiki>smallimage = [[File:Gnome globe current event.png|20px|alt=Clock over a larger globe]]</nowiki></code><br />
:'''none''' = Means that no image is used. This overrides any image fed to '''image''', when "small=left".<br />
{{ambox<br />
| small = left<br />
| image = [[File:Replacement filing cabinet.png|50px|link=|alt=]]<br />
| smallimage = [[File:Replacement filing cabinet.png|25px|link=|alt=]]<br />
| text =<br />
small = left <br> image = <nowiki>[[File:Replacement filing cabinet.png|50px|link=|alt=]]</nowiki> <br> smallimage = <nowiki>[[File:Replacement filing cabinet.png|25px|link=|alt=]]</nowiki><br />
}}<br />
<br />
'''smallimageright'''<br />
:'''No parameter''' = If no '''smallimageright''' parameter is given then this template falls back to use the '''imageright''' parameter. If the '''imageright''' parameter also is empty then no image is shown on the right side.<br />
:'''An image''' = Should be an image with usual wiki notation. 20px - 25px width is usually about right. For example:<br />
::<code><nowiki>smallimageright = [[File:Nuvola apps bookcase.png|20px|alt=Three stacked books]]</nowiki></code><br />
:'''Anything''' = Any other object that you want to show on the right side.<br />
:'''none''' = Means that no right side image is used. This overrides any image fed to '''imageright''', when "small=left".<br />
{{ambox<br />
| small = left<br />
| imageright = [[File:Gnome globe current event.png|50px|alt=Clock over a larger globe]]<br />
| smallimageright = none<br />
| text =<br />
small = left <br> imageright = <nowiki>[[File:Gnome globe current event.png|50px|alt=Clock over a larger globe]]</nowiki> <br> smallimageright = none<br />
}}<br />
<br />
'''smalltext'''<br />
:A shorter version of the message body text. If no '''smalltext''' parameter is given then this template falls back to use the '''text''' parameter.<br />
<br />
=== Technical details ===<br />
If you need to use special characters in the text parameter then you need to escape them like this:<br />
<br />
<pre><br />
{{ambox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are.<br />
But here is a pipe &amp;#124; and two end braces &lt;nowiki>}}&lt;/nowiki>.<br />
And now a pipe and end braces &lt;nowiki>|}}&lt;/nowiki>.<br />
</div><br />
}}<br />
</pre><br />
<br />
{{ambox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are.<br />
But here is a pipe &#124; and two end braces <nowiki>}}</nowiki>.<br />
And now a pipe and end braces <nowiki>|}}</nowiki>.<br />
</div><br />
}}<br />
<br />
The <code>&lt;div></code> tags that surround the text in the example above are usually not needed. But if the text contains line breaks then sometimes we get weird line spacing. This especially happens when using vertical dotted lists. Then use the div tags to fix that.<br />
<br />
This template uses CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.<br />
<br />
This template calls {{tl|ambox/core}} which holds most of the code for {{tl|ambox}}, while {{tl|ambox}} itself does parameter preprocessing.<br />
<br />
Internally this meta-template uses HTML markup instead of wikimarkup for the table code. That is the usual way we make meta-templates since wikimarkup has several drawbacks. For instance it makes it harder to use [[mediawikiwiki:Help:ParserFunctions|parser functions]] and some special characters in parameters.<br />
<br />
The default images for this meta-template are in png format instead of svg format. The main reason is that some older web browsers have trouble with the transparent background that MediaWiki renders for svg images. The png images here have hand optimised transparent background colour so they look good in all browsers. Note that svg icons only look somewhat bad in the old browsers, thus such hand optimisation is only worth the trouble for very widely used icons.<br />
<br />
For more technical details see the [[Template talk:Ambox|talk page]] and the "See also" links below. Since this template works almost exactly like {{tl|tmbox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details.<br />
<br />
=== See also ===<br />
{{Mbox templates see also}}<br />
<br />
Other pages:<br />
* [[Wikipedia:Ambox CSS classes]] – Describes how to use the ambox CSS classes directly in [[mediawikiwik:Help:Table|wikitable]]s and [[HTML element#Tables|HTML tables]].<br />
* [[Wikipedia:Article message boxes]] – The style guideline for creating article message boxes.<br />
* [[Wikipedia talk:Article message boxes]] – For discussion about these matters.<br />
<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
</includeonly></div>Larshttps://wiki.xenproject.org/index.php?title=Template_talk:Tl-nav&diff=1479Template talk:Tl-nav2011-12-04T23:09:44Z<p>Lars: Created page with "<!-- -->"</p>
<hr />
<div><!-- --></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Dmbox/doc&diff=1478Template:Dmbox/doc2011-12-04T23:09:00Z<p>Lars: </p>
<hr />
<div>{{Documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
<br />
{{mbox templates}}<br />
This is the {{tl|dmbox}} or '''disambiguation footer message box''' meta-template.<br />
<br />
It is used to build disambiguation and [[Wikipedia:Disambiguation#Set index articles|set index article]] boxes, such as {{tl|disambig}} and {{tl|shipindex}}. <br />
<br />
This template works similarly to {{tl|ambox}} and mostly uses the same parameters. The main differences are that this box uses the disambig style and only has two "type" settings.<br />
<br />
=== Usage ===<br />
Simple usage example:<br />
<br />
<pre><br />
{{dmbox | text = Some text.}}<br />
</pre><br />
<br />
{{dmbox | text = Some text.}}<br />
<br />
<pre><br />
{{dmbox | type = setindex | text = Some text.}}<br />
</pre><br />
<br />
{{dmbox | type = setindex | text = Some text.}}<br />
<br />
<br />
Complex example:<br />
<br />
<pre><br />
{{dmbox<br />
| type = setindex<br />
| image = {{nowrap| [[Image:Schooner.png|30px]] [[Image:List gray.png|30px]] }}<br />
| textstyle = color: red; font-weight: bold; font-style: normal;<br />
| text = The message body text.<br />
}}<br />
</pre><br />
<br />
{{dmbox<br />
| type = setindex<br />
| image = {{nowrap| [[Image:Schooner.png|30px]] [[Image:List gray.png|30px]] }}<br />
| textstyle = color: red; font-weight: bold; font-style: normal;<br />
| text = The message body text.<br />
}}<br />
<br />
<br />
Some other parameter combinations:<br />
<br />
{{dmbox<br />
| text = No type and no image given ('''default''')<br />
}}<br />
{{dmbox<br />
| image = none<br />
| text = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.<br />
}}<br />
<br />
{{dmbox<br />
| type = setindex<br />
| imageright = [[Image:Schooner.png|33px]] <br />
| text = type = setindex <br> imageright = <nowiki>[[Image:Schooner.png|33px]]</nowiki><br />
}}<br />
<br />
{{dmbox<br />
| type = setindex<br />
| imageright = [[Image:Schooner.png|33px]]<br />
| text = <br />
This article includes a [[Wikipedia:WikiProject Ships/Guidelines#Index pages|list of ships]] with the same or similar names. If an [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|internal link]] for a specific ship referred you to this page, you may wish to change the link to point directly to the intended ship article, if one exists.<br />
}}<br />
<br />
=== Parameters ===<br />
List of all parameters:<br />
<br />
<pre><br />
{{dmbox<br />
| type = disambig / setindex<br />
| image = none / [[Image:Some image.png|40px]]<br />
| imageright = [[Image:Some image.png|40px]]<br />
| style = CSS values<br />
| textstyle = CSS values<br />
| text = The message body text. <br />
| nocat = {{{nocat|}}} / true<br />
}}<br />
</pre><br />
<br />
'''type'''<br />
:If no '''type''' parameter is given the template defaults to type '''disambig'''. <br />
:'''disambig''' = Makes it so the {{tl|disambig editintro}} is displayed when editing a page with this template on. (Means that this template internally sets the CSS id "disambigbox". The id is used by the javascript in [[MediaWiki:Common.js]] to determine if a page is a disambiguation page or not.) And adds [[:Category:All disambiguation pages]] and [[:Category:All article disambiguation pages]].<br />
<br />
:'''setindex''' = Does ''not'' trigger the {{tl|disambig editintro}} when editing a page. (Because this instead sets the CSS id "setindexbox".) And adds [[:Category:All set index articles]].<br />
<br />
'''nocat'''<br />
:'''true''' = Stops this template from categorizing. Useful for instance when only testing or demonstrating this template. Templates that use this template should forward '''nocat''', so they too understand nocat. So always add this: <br />
::<code><nowiki>nocat = {{{nocat|}}}</nowiki></code><br />
<br />
'''image'''<br />
:'''No parameter''' = If no '''image''' parameter is given, the template uses the default disambig or setindex image, depending on the '''type''' parameter.<br />
:'''An image''' = Should be an image with usual wiki notation. 30px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example: <br />
::<code><nowiki>image = [[Image:Schooner.png|30px]]</nowiki></code><br />
:'''none''' = Means that no image is used.<br />
<br />
'''imageright'''<br />
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side.<br />
:'''An image''' = Should be an image with usual wiki notation. 30px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example: <br />
::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code><br />
:'''Anything''' = Any other object that you want to show on the right side.<br />
<br />
'''style'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the entire message box table. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example:<br />
::<code>style = margin-bottom: 0.2em;</code><br />
<br />
'''textstyle'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the text cell. For example:<br />
::<code>textstyle = text-align: center;</code><br />
<br />
'''text'''<br />
:The message body text. This message box has ''italic'' text as default, thus no need to manually set that.<br />
<br />
=== Technical details ===<br />
This template currently uses hard coded styles and class names. Later it will only use CSS classes making it easier to skin. (In the meantime it can be skinned by using the "<code>!important</code>" keyword.)<br />
<br />
If you need to use special characters in the text parameter then you need to escape them like this: <br />
<br />
<pre><br />
{{dmbox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are. <br />
But here is a pipe {{!}} and two end braces &lt;nowiki>}}&lt;/nowiki>. <br />
And now a pipe and end braces &lt;nowiki>|}}&lt;/nowiki>.<br />
</div><br />
}}<br />
</pre><br />
<br />
{{dmbox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are. <br />
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. <br />
And now a pipe and end braces <nowiki>|}}</nowiki>.<br />
</div><br />
}}<br />
<br />
<br />
Internally, this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use [[mediawikiwiki:Help:ParserFunctions|parser functions]] and special characters in parameters. <br />
<br />
For more technical details see the [[Template talk:Dmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details.<br />
<br />
=== See also ===<br />
{{Mbox templates see also}}<br />
<br />
Other pages:<br />
<br />
* [[Wikipedia:Disambiguation]] – Also has a section explaining [[Wikipedia:Disambiguation#Set index articles|set index articles]].<br />
* [[Wikipedia:WikiProject Disambiguation]]<br />
* [[MediaWiki:Disambiguationspage]] – Should list all disambiguation message boxes, so that some automatic tools can know what pages are disambiguation pages. Now also has a separate list with all set index message boxes, so some tools can know what pages are set index articles.<br />
<br />
* {{tl|disambig}} – The generic disambiguation message box.<br />
* {{tl|SIA}} – The generic set index article message box.<br />
<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
</includeonly></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Dmbox/doc&diff=1477Template:Dmbox/doc2011-12-04T23:07:32Z<p>Lars: </p>
<hr />
<div>{{Documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
<br />
{{mbox templates}}<br />
This is the {{tl|dmbox}} or '''disambiguation footer message box''' meta-template.<br />
<br />
It is used to build disambiguation and [[Wikipedia:Disambiguation#Set index articles|set index article]] boxes, such as {{tl|disambig}} and {{tl|shipindex}}. <br />
<br />
This template works similarly to {{tl|ambox}} and mostly uses the same parameters. The main differences are that this box uses the disambig style and only has two "type" settings.<br />
<br />
=== Usage ===<br />
Simple usage example:<br />
<br />
<pre><br />
{{dmbox | text = Some text.}}<br />
</pre><br />
<br />
{{dmbox | text = Some text.}}<br />
<br />
<pre><br />
{{dmbox | type = setindex | text = Some text.}}<br />
</pre><br />
<br />
{{dmbox | type = setindex | text = Some text.}}<br />
<br />
<br />
Complex example:<br />
<br />
<pre><br />
{{dmbox<br />
| type = setindex<br />
| image = {{nowrap| [[Image:Schooner.png|30px]] [[Image:List gray.png|30px]] }}<br />
| textstyle = color: red; font-weight: bold; font-style: normal;<br />
| text = The message body text.<br />
}}<br />
</pre><br />
<br />
{{dmbox<br />
| type = setindex<br />
| image = {{nowrap| [[Image:Schooner.png|30px]] [[Image:List gray.png|30px]] }}<br />
| textstyle = color: red; font-weight: bold; font-style: normal;<br />
| text = The message body text.<br />
}}<br />
<br />
<br />
Some other parameter combinations:<br />
<br />
{{dmbox<br />
| text = No type and no image given ('''default''')<br />
}}<br />
{{dmbox<br />
| image = none<br />
| text = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.<br />
}}<br />
<br />
{{dmbox<br />
| type = setindex<br />
| imageright = [[Image:Schooner.png|33px]] <br />
| text = type = setindex <br> imageright = <nowiki>[[Image:Schooner.png|33px]]</nowiki><br />
}}<br />
<br />
{{dmbox<br />
| type = setindex<br />
| imageright = [[Image:Schooner.png|33px]]<br />
| text = <br />
This article includes a [[Wikipedia:WikiProject Ships/Guidelines#Index pages|list of ships]] with the same or similar names. If an [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|internal link]] for a specific ship referred you to this page, you may wish to change the link to point directly to the intended ship article, if one exists.<br />
}}<br />
<br />
=== Parameters ===<br />
List of all parameters:<br />
<br />
<pre><br />
{{dmbox<br />
| type = disambig / setindex<br />
| image = none / [[Image:Some image.png|40px]]<br />
| imageright = [[Image:Some image.png|40px]]<br />
| style = CSS values<br />
| textstyle = CSS values<br />
| text = The message body text. <br />
| nocat = {{{nocat|}}} / true<br />
}}<br />
</pre><br />
<br />
'''type'''<br />
:If no '''type''' parameter is given the template defaults to type '''disambig'''. <br />
:'''disambig''' = Makes it so the {{tl|disambig editintro}} is displayed when editing a page with this template on. (Means that this template internally sets the CSS id "disambigbox". The id is used by the javascript in [[MediaWiki:Common.js]] to determine if a page is a disambiguation page or not.) And adds [[:Category:All disambiguation pages]] and [[:Category:All article disambiguation pages]].<br />
<br />
:'''setindex''' = Does ''not'' trigger the {{tl|disambig editintro}} when editing a page. (Because this instead sets the CSS id "setindexbox".) And adds [[:Category:All set index articles]].<br />
<br />
'''nocat'''<br />
:'''true''' = Stops this template from categorizing. Useful for instance when only testing or demonstrating this template. Templates that use this template should forward '''nocat''', so they too understand nocat. So always add this: <br />
::<code><nowiki>nocat = {{{nocat|}}}</nowiki></code><br />
<br />
'''image'''<br />
:'''No parameter''' = If no '''image''' parameter is given, the template uses the default disambig or setindex image, depending on the '''type''' parameter.<br />
:'''An image''' = Should be an image with usual wiki notation. 30px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example: <br />
::<code><nowiki>image = [[Image:Schooner.png|30px]]</nowiki></code><br />
:'''none''' = Means that no image is used.<br />
<br />
'''imageright'''<br />
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side.<br />
:'''An image''' = Should be an image with usual wiki notation. 30px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example: <br />
::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code><br />
:'''Anything''' = Any other object that you want to show on the right side.<br />
<br />
'''style'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the entire message box table. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example:<br />
::<code>style = margin-bottom: 0.2em;</code><br />
<br />
'''textstyle'''<br />
:Optional [[wikipedia:Cascading Style Sheets|CSS]] values used by the text cell. For example:<br />
::<code>textstyle = text-align: center;</code><br />
<br />
'''text'''<br />
:The message body text. This message box has ''italic'' text as default, thus no need to manually set that.<br />
<br />
=== Technical details ===<br />
This template currently uses hard coded styles and class names. Later it will only use CSS classes making it easier to skin. (In the meantime it can be skinned by using the "<code>!important</code>" keyword.)<br />
<br />
If you need to use special characters in the text parameter then you need to escape them like this: <br />
<br />
<pre><br />
{{dmbox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are. <br />
But here is a pipe {{!}} and two end braces &lt;nowiki>}}&lt;/nowiki>. <br />
And now a pipe and end braces &lt;nowiki>|}}&lt;/nowiki>.<br />
</div><br />
}}<br />
</pre><br />
<br />
{{dmbox<br />
| text = <div><br />
Equal sign = and a start and end brace { } work fine as they are. <br />
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. <br />
And now a pipe and end braces <nowiki>|}}</nowiki>.<br />
</div><br />
}}<br />
<br />
<br />
Internally, this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use [[m:Help:ParserFunctions|parser functions]] and special characters in parameters. <br />
<br />
For more technical details see the [[Template talk:Dmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details.<br />
<br />
=== See also ===<br />
{{Mbox templates see also}}<br />
<br />
Other pages:<br />
<br />
* [[Wikipedia:Disambiguation]] – Also has a section explaining [[Wikipedia:Disambiguation#Set index articles|set index articles]].<br />
* [[Wikipedia:WikiProject Disambiguation]]<br />
* [[MediaWiki:Disambiguationspage]] – Should list all disambiguation message boxes, so that some automatic tools can know what pages are disambiguation pages. Now also has a separate list with all set index message boxes, so some tools can know what pages are set index articles.<br />
<br />
* {{tl|disambig}} – The generic disambiguation message box.<br />
* {{tl|SIA}} – The generic set index article message box.<br />
<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
</includeonly></div>Larshttps://wiki.xenproject.org/index.php?title=File:Mediawiki.png&diff=1476File:Mediawiki.png2011-12-04T23:02:33Z<p>Lars: </p>
<hr />
<div>== Licensing: ==<br />
{{PD}}</div>Larshttps://wiki.xenproject.org/index.php?title=File:MediaWiki.png&diff=1475File:MediaWiki.png2011-12-04T23:00:55Z<p>Lars: </p>
<hr />
<div>== Licensing: ==<br />
{{PD}}</div>Larshttps://wiki.xenproject.org/index.php?title=File:Wikiquote-logo-en.png&diff=1474File:Wikiquote-logo-en.png2011-12-04T22:59:03Z<p>Lars: </p>
<hr />
<div>== Licensing: ==<br />
{{PD}}</div>Larshttps://wiki.xenproject.org/index.php?title=File:Wikimedia-logo.png&diff=1473File:Wikimedia-logo.png2011-12-04T22:58:14Z<p>Lars: </p>
<hr />
<div>== Licensing: ==<br />
{{PD}}</div>Larshttps://wiki.xenproject.org/index.php?title=File:Padlock.png&diff=1472File:Padlock.png2011-12-04T22:58:00Z<p>Lars: </p>
<hr />
<div>== Licensing: ==<br />
{{PD}}</div>Larshttps://wiki.xenproject.org/index.php?title=File:Wikibooks-logo.png&diff=1471File:Wikibooks-logo.png2011-12-04T22:57:29Z<p>Lars: </p>
<hr />
<div>== Licensing: ==<br />
{{PD}}</div>Larshttps://wiki.xenproject.org/index.php?title=File:MediaWiki_logo_without_tagline.png&diff=1470File:MediaWiki logo without tagline.png2011-12-04T22:57:07Z<p>Lars: </p>
<hr />
<div>== Licensing: ==<br />
{{PD}}</div>Larshttps://wiki.xenproject.org/index.php?title=File:Commons-logo.png&diff=1469File:Commons-logo.png2011-12-04T22:56:41Z<p>Lars: </p>
<hr />
<div>== Licensing: ==<br />
{{PD}}</div>Larshttps://wiki.xenproject.org/index.php?title=Template:Key_press/doc&diff=1468Template:Key press/doc2011-12-04T22:54:50Z<p>Lars: </p>
<hr />
<div>{{Documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --><br />
__NOTOC__<br />
<br />
This is the {{tl|key press}} template, which can be used to illustrate keystrokes. Typographically it works best with examples that are separated from the normal flow of text, e.g. in table cells. It can also be used in lists (as in this page), but it may be a good idea to add an empty line between each list item, so the key borders won't overlap each other.<br />
<br />
Example:<br />
:<code><nowiki>{{key press|A}}</nowiki></code> produces {{key press|A}}<br />
<br />
=== Keystroke combinations ===<br />
<br />
To illustrate keystroke combinations, just use extra parameters:<br />
:<code><nowiki>{{key press|Alt|P}}</nowiki></code> produces {{key press|Alt|P}}<br />
<br />
:<code><nowiki>{{key press|Ctrl|Alt|Del}}</nowiki></code> produces {{key press|Ctrl|Alt|Del}}<br />
<br />
This template currently handles up to 5 key name parameters. If it gets too many key name parameters it reports the page into [[:Category:Wikipedia keypress template parameter needs fixing]]. This means we can easily find those pages and fix them, or we can discover if we need to make this template take more parameters.<br />
<br />
When you feed several key names to this template, it adds a "+" with no spaces around. This means it won't line wrap. But when you show key combinations for instance in a table then that might cause too wide items. Then instead manually build the key combination with spaces around the "+" so it can line wrap. Like this:<br />
<br />
:<code><nowiki>{{key press|Ctrl}} + {{key press|Alt}} + {{key press|Del}}</nowiki></code> produces {{key press|Ctrl}} + {{key press|Alt}} + {{key press|Del}}<br />
<br />
On the other hand, to illustrate Windows [[Alt code]]s you might want to use separate templates with no intervening punctuation or space. In most Windows systems in North America and Western Europe, for example, the [[plus-minus sign]] (±) can be entered by holding down the Alt key while typing <code>0177</code> (with the [[numeric keypad]]). This could be illustrated like this:<br />
<br />
:<code><nowiki>{{key press|Alt|0}}{{key press|1}}{{key press|7}}{{key press|7}}</nowiki></code> produces {{key press|Alt|0}}{{key press|1}}{{key press|7}}{{key press|7}}<br />
<br />
=== Wikilinks ===<br />
<br />
If there is an article about the key you can [[WP:wikilink|wikilink]] the key's name like any other wiki text. Like this:<br />
:<code><nowiki>{{key press|[[Alt key|Alt]]}}</nowiki></code> produces {{key press|[[Alt key|Alt]]}}<br />
<br />
If you are wikilinking the keys, please ensure that you are piping to the correct page (e.g. <code><nowiki>[[Control key|Ctrl]]</nowiki></code> instead of <code><nowiki>[[Ctrl]]</nowiki></code>, which leads to a [[WP:Disambiguation page|disambiguation page]]).<br />
<br />
=== Wiki characters ===<br />
<br />
Some wiki markup character, like the [[pipe symbol]], the [[semicolon]] and the [[equals sign]], need to be entered using the {{tl|!}}, {{tl|;}} and {{tl|{{=}}}} templates:<br />
<br />
:<code><nowiki>{{key press|{{!}}}}</nowiki></tt> produces {{key press|{{!}}}}<br />
<br />
:<code><nowiki>{{key press|{{;}}}}</nowiki></tt> produces {{key press|{{;}}}}<br />
<br />
:<code><nowiki>{{key press|{{=}}}}</nowiki></tt> produces {{key press|{{=}}}}<br />
<br />
However, if the characters are marked as wikilinks, they can be entered as such:<br />
<br />
:<code><nowiki>{{key press|[[|]]}}</nowiki></code> produces {{key press|[[|]]}}<br />
<br />
:<code><nowiki>{{key press|[[;]]}}</nowiki></code> produces {{key press|[[;]]}}<br />
<br />
:<code><nowiki>{{key press|[[=]]}}</nowiki></code> produces {{key press|[[=]]}}<br />
<br />
If you don't want to mark the characters as links, <code><nowiki>{{key press|&lt;nowiki>|&lt;/nowiki>}}</nowiki></code> is also an option.<br />
<br />
=== Key symbols ===<br />
<br />
Some key names have a fitting unicode character. This template automatically adds such "icons" to the following key names:<br />
<br />
:<code><nowiki>{{key press|Caps Lock}}</nowiki></code> produces {{key press|Caps Lock}}<br />
<br />
:<code><nowiki>{{key press|Shift}}</nowiki></code> produces {{key press|Shift}}<br />
<br />
:<code><nowiki>{{key press|Enter}}</nowiki></code> produces {{key press|Enter}}<br />
<br />
:<code><nowiki>{{key press|Tab}}</nowiki></code> produces {{key press|Tab}}<br />
<br />
:<code><nowiki>{{key press|Backspace}}</nowiki></code> produces {{key press|Backspace}}<br />
<br />
:<code><nowiki>{{key press|Cmd}}</nowiki></code> produces {{key press|Cmd}}<br />
<br />
:<code><nowiki>{{key press|Opt}}</nowiki></code> produces {{key press|Opt}}<br />
<br />
:<code><nowiki>{{key press|Up}}</nowiki></code> produces {{key press|Up}}<br />
<br />
:<code><nowiki>{{key press|Down}}</nowiki></code> produces {{key press|Down}}<br />
<br />
:<code><nowiki>{{key press|Left}}</nowiki></code> produces {{key press|Left}}<br />
<br />
:<code><nowiki>{{key press|Right}}</nowiki></code> produces {{key press|Right}}<br />
<br />
<br />
There are no characters for the [[Windows key]] and [[Menu key]]. Besides, the Windows logo is [[trademark]]ed. So this template shows approximate characters for them in the following way:<br />
<br />
:<code><nowiki>{{key press|Win}}</nowiki></code> produces {{key press|Win}}<br />
<br />
:<code><nowiki>{{key press|Menu}}</nowiki></code> produces {{key press|Menu}}<br />
{{clear}}<br />
<br />
=== Technical details ===<br />
<br />
This template calls {{tl|key press/core}}, which holds the code that otherwise would be repeated several times in {{tl|key press}}, thus simplifying the code.<br />
<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
</includeonly></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Pp-protected&diff=1467Template:Pp-protected2011-12-04T22:46:31Z<p>Lars: Created page with "<includeonly>{{pp-meta |type={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}} |semi |autoconfirmed=semi |administrator |full |sysop=full |#default=full<!--fal…"</p>
<hr />
<div><includeonly>{{pp-meta<br />
|type={{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}<br />
|semi<br />
|autoconfirmed=semi<br />
|administrator<br />
|full<br />
|sysop=full<br />
|#default=full<!--fallback value-->}}<br />
|small={{{small|}}}<br />
|demospace={{{demospace|}}}<br />
|demolevel={{{demolevel|undefined}}}<br />
|expiry={{{expiry|}}}<br />
|dispute=no<br />
|reason={{#if:{{{reason|}}}|&#32;because {{lcfirst:{{{reason|}}}}}}}<br />
|categories={{{categories|<br />
{{#switch:{{{demolevel|{{PROTECTIONLEVEL:edit}}}}}<br />
|semi<br />
|autoconfirmed={{#switch: {{{demospace|{{NAMESPACE}}}}}<br />
| {{ns:2}}<br />
| {{ns:3}} = [[Category:Wikipedia semi-protected user and user talk pages|{{PAGENAME}}]]<br />
| {{ns:6}} = [[Category:Semi-protected images|{{PAGENAME}}]]<br />
| {{ns:4}}<br />
| {{ns:12}} = [[Category:Semi-protected project pages|{{PAGENAME}}]]<br />
| {{ns:100}} = [[Category:Semi-protected portals|{{PAGENAME}}]]<br />
| {{ns:10}} = [[Category:Wikipedia semi-protected templates|{{PAGENAME}}]]<br />
| {{ns:14}} = [[Category:Wikipedia semi-protected categories|{{PAGENAME}}]]<br />
| #default = {{talk other|[[Category:Semi-protected talk pages|{{PAGENAME}}]]|[[Category:Wikipedia semi-protected pages|{{PAGENAME}}]]}}}}<br />
|administrator<br />
|full<br />
|sysop={{#switch: {{{demospace|{{NAMESPACE}}}}}<br />
| {{ns:2}}<br />
| {{ns:3}} = [[Category:Wikipedia protected user and user talk pages|{{PAGENAME}}]]<br />
| {{ns:6}} = [[Category:Protected images|{{PAGENAME}}]]<br />
| {{ns:4}}<br />
| {{ns:12}} = [[Category:Protected project pages|{{PAGENAME}}]]<br />
| {{ns:10}} = [[Category:Wikipedia protected templates|{{PAGENAME}}]]<br />
| {{ns:14}} = [[Category:Wikipedia protected categories|{{PAGENAME}}]]<br />
| #default = {{talk other|[[Category:Protected talk pages]]|[[Category:Wikipedia protected pages|{{PAGENAME}}]]}}}}}}}}}}}</includeonly><noinclude><br />
{{pp-protected|demospace=main|categories=no|reason=[[Lorem ipsum|Lorem ipsum dolor sit amet]]}}<br />
<br />
{{template doc}}<br />
<!-- Add categories and inter-wikis to the /doc subpage, not here! --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Pgn/core&diff=1466Template:Pgn/core2011-12-04T22:45:02Z<p>Lars: Created page with "{{#if:{{{namespace|}}} | {{#if:{{{1|}}} | {{{namespace|}}}: <!--Other parts of the pagename will follow--> | {{{namespace|}}} <!--Only show namespace--> }} }}{{#switch…"</p>
<hr />
<div>{{#if:{{{namespace|}}}<br />
| {{#if:{{{1|}}}<br />
| {{{namespace|}}}: <!--Other parts of the pagename will follow--><br />
| {{{namespace|}}} <!--Only show namespace--><br />
}}<br />
}}{{#switch: {{{1|}}}<br />
| fullbasepage <!--Namespace already added--><br />
| basepage = {{BASEPAGENAME:Template:{{{pagename|}}}}}<br />
| subpage = {{SUBPAGENAME:Template:{{{pagename|}}}}}<br />
| fullpage <!--Namespace already added--><br />
| page = {{{pagename|}}}<br />
| .. = <!--Relative path "../"--><br />
{{#ifeq: {{{2|}}} | .. <!--If two levels "../.." --><br />
| {{BASEPAGENAME:Template:{{BASEPAGENAME:Template:{{{pagename|}}}}}}}{{<br />
#if:{{{3|}}}<br />
| /{{{3|}}} <!--Whitespace already stripped in main template--><br />
}}<br />
| {{BASEPAGENAME:Template:{{{pagename|}}}}}{{<br />
#if:{{{2|}}}<br />
| /{{{2|}}}<br />
}}<br />
}}<br />
| fullrootpage <!-- Namespace already added --><br />
| rootpage <!-- rootpage = page1 --><br />
| page1 = {{#titleparts: {{{pagename|}}} | 1 | 1 }}<br />
<!--Handle page2-4 for {{{1|}} here, to avoid prefixing "/" --><br />
| page2 = {{#titleparts: {{{pagename|}}} | 1 | 2 }}<br />
| page3 = {{#titleparts: {{{pagename|}}} | 1 | 3 }}<br />
| page4 = {{#titleparts: {{{pagename|}}} | 1 | 4 }}<br />
}}{{#switch: page2 <!--"{{{1|}}} = page2" already checked above--><br />
| {{{2|}}} = {{#if:{{#titleparts: {{{pagename|}}} | 1 | 2 }}<br />
| / <!--If a page2 in pagename, prefix "/"--><br />
}}{{#titleparts: {{{pagename|}}} | 1 | 2 }}<br />
}}{{#switch: page3<br />
| {{{2|}}}<br />
| {{{3|}}} = {{#if:{{#titleparts: {{{pagename|}}} | 1 | 3 }}<br />
| /<br />
}}{{#titleparts: {{{pagename|}}} | 1 | 3 }}<br />
}}{{#switch: page4<br />
| {{{2|}}}<br />
| {{{3|}}}<br />
| {{{4|}}} = {{#if:{{#titleparts: {{{pagename|}}} | 1 | 4 }}<br />
| /<br />
}}{{#titleparts: {{{pagename|}}} | 1 | 4 }}<br />
}}<noinclude><br />
<br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Pgn&diff=1465Template:Pgn2011-12-04T22:44:35Z<p>Lars: Created page with "{{pgn/core | pagename = {{#if: {{{page|}}} | {{PAGENAME: {{{page|}}} }} | {{PAGENAME}} }} | namespace = <!-- Empty if no namespace selected, or if main space --> {{#…"</p>
<hr />
<div>{{pgn/core<br />
| pagename = <br />
{{#if: {{{page|}}}<br />
| {{PAGENAME: {{{page|}}} }}<br />
| {{PAGENAME}}<br />
}}<br />
| namespace = <!-- Empty if no namespace selected, or if main space --><br />
{{#if: {{{page|}}}<br />
| {{#switch: {{{1|}}}<br />
| fullpage<br />
| fullbasepage<br />
| fullrootpage<br />
| ns = {{NAMESPACE: {{{page|}}} }}<br />
| ss = {{SUBJECTSPACE: {{{page|}}} }}<br />
| ts = {{TALKSPACE: {{{page|}}} }}<br />
}}<br />
| {{#switch: {{{1|}}}<br />
| fullpage<br />
| fullbasepage<br />
| fullrootpage<br />
| ns = {{NAMESPACE}}<br />
| ss = {{SUBJECTSPACE}}<br />
| ts = {{TALKSPACE}}<br />
}}<br />
}}<br />
<!-- See to that the rest of the parameters always start from 1.<br />
And the feeding as "2=" strips surrounding whitespace. --><br />
| 1 = {{#switch:{{{1|}}}|ns|ss|ts = {{{2|}}} | #default = {{{1|}}} }}<br />
| 2 = {{#switch:{{{1|}}}|ns|ss|ts = {{{3|}}} | #default = {{{2|}}} }}<br />
| 3 = {{#switch:{{{1|}}}|ns|ss|ts = {{{4|}}} | #default = {{{3|}}} }}<br />
| 4 = {{#switch:{{{1|}}}|ns|ss|ts = {{{5|}}} | #default = {{{4|}}} }}<br />
}}<noinclude><br />
<br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Unicode&diff=1464Template:Unicode2011-12-04T22:42:34Z<p>Lars: Created page with "<span class="Unicode">{{{1}}}</span><noinclude> {{documentation}} </noinclude>"</p>
<hr />
<div><span class="Unicode">{{{1}}}</span><noinclude><br />
{{documentation}}<br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:;&diff=1463Template:;2011-12-04T22:41:39Z<p>Lars: Created page with "&#59;<noinclude> {{Documentation}} <!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude>"</p>
<hr />
<div>&#59;<noinclude><br />
<br />
{{Documentation}}<br />
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Border-radius&diff=1462Template:Border-radius2011-12-04T22:37:36Z<p>Lars: Created page with "<includeonly>-moz-border-radius: {{{1|8px}}}; -webkit-border-radius: {{{1|8px}}}; border-radius: {{{1|8px}}};</includeonly><noinclude> <!-- ADD CATEGORIES AND INTERWIKIS TO THE …"</p>
<hr />
<div><includeonly>-moz-border-radius: {{{1|8px}}}; -webkit-border-radius: {{{1|8px}}}; border-radius: {{{1|8px}}};</includeonly><noinclude><br />
<br />
<!-- ADD CATEGORIES AND INTERWIKIS TO THE /doc PAGE, NOT HERE, THANKS --><br />
{{documentation}}<br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Key_press/core&diff=1461Template:Key press/core2011-12-04T22:36:51Z<p>Lars: Created page with "<kbd class="keyboard-key" style="border: 1px solid; border-color: #ddd #bbb #bbb #ddd; border-bottom-width: 2px; {{border-radius|3px}} background-color: {{{2|#f9f9f9}}}; padding:…"</p>
<hr />
<div><kbd class="keyboard-key" style="border: 1px solid; border-color: #ddd #bbb #bbb #ddd; border-bottom-width: 2px; {{border-radius|3px}} background-color: {{{2|#f9f9f9}}}; padding: 1px 3px; font-family: inherit; font-size: 0.85em; white-space: nowrap;">{{#switch:{{lc:{{{1}}}}}<br />
| caps lock = {{Unicode|⇪}} Caps Lock<br />
| [[caps lock]] = {{Unicode|⇪}} [[Caps Lock]]<br />
| shift = {{Unicode|⇧}} Shift<br />
| [[shift key|shift]] = {{Unicode|⇧}} [[Shift key|Shift]]<br />
| enter = {{Unicode|↵}} Enter <br />
| [[enter key|enter]] = {{Unicode|↵}} [[Enter key|Enter]]<br />
| cmd = {{Unicode|⌘}} Cmd<br />
| [[cmd key|cmd]]<br />
| [[command key|cmd]] = {{Unicode|⌘}} [[Command key|Cmd]]<br />
| opt = {{Unicode|⌥}} Opt<br />
| [[opt key|opt]]<br />
| [[option key|opt]] = {{Unicode|⌥}} [[Option key|Opt]]<br />
| tab = Tab {{Unicode|⇆}}<br />
| [[tab key|tab]] = [[Tab key|Tab]] {{Unicode|⇆}}<br />
| backspace = ← Backspace<br />
| [[backspace]] = ← [[Backspace]]<br />
| win = {{Unicode|⊞}} Win<br />
| [[win key|win]]<br />
| [[windows key|win]] = {{Unicode|⊞}} [[Windows key|Win]]<br />
| menu = {{Unicode|≣}} Menu<br />
| [[menu key|menu]] = {{Unicode|≣}} [[Menu key|Menu]]<br />
| up = ↑<br />
| [[arrow keys|up]] = [[Arrow keys|↑]]<br />
| down = ↓<br />
| [[arrow keys|down]] = [[Arrow keys|↓]]<br />
| left = ←<br />
| [[arrow keys|left]] = [[Arrow keys|←]]<br />
| right = →<br />
| [[arrow keys|right]]= [[Arrow keys|→]]<br />
| * = <nowiki>*</nowiki><br />
| # = <nowiki>#</nowiki><br />
| [[#]] = [[Number sign|#]]<br />
| : = <nowiki>:</nowiki><br />
| [[:]] = [[Colon (punctuation)|:]]<br />
| [[|]] = [[Pipe symbol|{{!}}]]<br />
<br />
| #default = {{{1}}}<br />
}}</kbd><noinclude><br />
<br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Key_press/doc&diff=1460Template:Key press/doc2011-12-04T22:36:26Z<p>Lars: Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --> __NOTOC__ This is the {{tl|key press}} template, which can be used to illustr…"</p>
<hr />
<div>{{Documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. --><br />
__NOTOC__<br />
<br />
This is the {{tl|key press}} template, which can be used to illustrate keystrokes. Typographically it works best with examples that are separated from the normal flow of text, e.g. in table cells. It can also be used in lists (as in this page), but it may be a good idea to add an empty line between each list item, so the key borders won't overlap each other.<br />
<br />
Example:<br />
:<code><nowiki>{{key press|A}}</nowiki></code> produces {{key press|A}}<br />
<br />
=== Keystroke combinations ===<br />
<br />
To illustrate keystroke combinations, just use extra parameters:<br />
:<code><nowiki>{{key press|Alt|P}}</nowiki></code> produces {{key press|Alt|P}}<br />
<br />
:<code><nowiki>{{key press|Ctrl|Alt|Del}}</nowiki></code> produces {{key press|Ctrl|Alt|Del}}<br />
<br />
This template currently handles up to 5 key name parameters. If it gets too many key name parameters it reports the page into [[:Category:Wikipedia keypress template parameter needs fixing]]. This means we can easily find those pages and fix them, or we can discover if we need to make this template take more parameters.<br />
<br />
When you feed several key names to this template, it adds a "+" with no spaces around. This means it won't line wrap. But when you show key combinations for instance in a table then that might cause too wide items. Then instead manually build the key combination with spaces around the "+" so it can line wrap. Like this:<br />
<br />
:<code><nowiki>{{key press|Ctrl}} + {{key press|Alt}} + {{key press|Del}}</nowiki></code> produces {{key press|Ctrl}} + {{key press|Alt}} + {{key press|Del}}<br />
<br />
On the other hand, to illustrate Windows [[Alt code]]s you might want to use separate templates with no intervening punctuation or space. In most Windows systems in North America and Western Europe, for example, the [[plus-minus sign]] (±) can be entered by holding down the Alt key while typing <code>0177</code> (with the [[numeric keypad]]). This could be illustrated like this:<br />
<br />
:<code><nowiki>{{key press|Alt|0}}{{key press|1}}{{key press|7}}{{key press|7}}</nowiki></code> produces {{key press|Alt|0}}{{key press|1}}{{key press|7}}{{key press|7}}<br />
<br />
=== Wikilinks ===<br />
<br />
If there is an article about the key you can [[WP:wikilink|wikilink]] the key's name like any other wiki text. Like this:<br />
:<code><nowiki>{{key press|[[Alt key|Alt]]}}</nowiki></code> produces {{key press|[[Alt key|Alt]]}}<br />
<br />
If you are wikilinking the keys, please ensure that you are piping to the correct page (e.g. <code><nowiki>[[Control key|Ctrl]]</nowiki></code> instead of <code><nowiki>[[Ctrl]]</nowiki></code>, which leads to a [[WP:Disambiguation page|disambiguation page]]).<br />
<br />
=== Wiki characters ===<br />
<br />
Some wiki markup character, like the [[pipe symbol]], the [[semicolon]] and the [[equals sign]], need to be entered using the {{tl|!}}, {{tl|;}} and {{tl|{{=}}}} templates:<br />
<br />
:<code><nowiki>{{key press|{{!}}}}</nowiki></tt> produces {{key press|{{!}}}}<br />
<br />
:<code><nowiki>{{key press|{{;}}}}</nowiki></tt> produces {{key press|{{;}}}}<br />
<br />
:<code><nowiki>{{key press|{{=}}}}</nowiki></tt> produces {{key press|{{=}}}}<br />
<br />
However, if the characters are marked as wikilinks, they can be entered as such:<br />
<br />
:<code><nowiki>{{key press|[[|]]}}</nowiki></code> produces {{key press|[[|]]}}<br />
<br />
:<code><nowiki>{{key press|[[;]]}}</nowiki></code> produces {{key press|[[;]]}}<br />
<br />
:<code><nowiki>{{key press|[[=]]}}</nowiki></code> produces {{key press|[[=]]}}<br />
<br />
If you don't want to mark the characters as links, <code><nowiki>{{key press|&lt;nowiki>|&lt;/nowiki>}}</nowiki></code> is also an option.<br />
<br />
=== Key symbols ===<br />
<br />
Some key names have a fitting unicode character. This template automatically adds such "icons" to the following key names:<br />
<br />
:<code><nowiki>{{key press|Caps Lock}}</nowiki></code> produces {{key press|Caps Lock}}<br />
<br />
:<code><nowiki>{{key press|Shift}}</nowiki></code> produces {{key press|Shift}}<br />
<br />
:<code><nowiki>{{key press|Enter}}</nowiki></code> produces {{key press|Enter}}<br />
<br />
:<code><nowiki>{{key press|Tab}}</nowiki></code> produces {{key press|Tab}}<br />
<br />
:<code><nowiki>{{key press|Backspace}}</nowiki></code> produces {{key press|Backspace}}<br />
<br />
:<code><nowiki>{{key press|Cmd}}</nowiki></code> produces {{key press|Cmd}}<br />
<br />
:<code><nowiki>{{key press|Opt}}</nowiki></code> produces {{key press|Opt}}<br />
<br />
:<code><nowiki>{{key press|Up}}</nowiki></code> produces {{key press|Up}}<br />
<br />
:<code><nowiki>{{key press|Down}}</nowiki></code> produces {{key press|Down}}<br />
<br />
:<code><nowiki>{{key press|Left}}</nowiki></code> produces {{key press|Left}}<br />
<br />
:<code><nowiki>{{key press|Right}}</nowiki></code> produces {{key press|Right}}<br />
<br />
[[File:AltGr Win Menu Ctrl key.jpg|thumb|200px|Windows key and Menu key]]<br />
[[File:Ctl wndws alt.jpg|thumb|200px|Old-style Windows key]]<br />
<br />
There are no characters for the [[Windows key]] and [[Menu key]]. Besides, the Windows logo is [[trademark]]ed. So this template shows approximate characters for them in the following way:<br />
<br />
:<code><nowiki>{{key press|Win}}</nowiki></code> produces {{key press|Win}}<br />
<br />
:<code><nowiki>{{key press|Menu}}</nowiki></code> produces {{key press|Menu}}<br />
{{clear}}<br />
<br />
=== Technical details ===<br />
<br />
This template calls {{tl|key press/core}}, which holds the code that otherwise would be repeated several times in {{tl|key press}}, thus simplifying the code.<br />
<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
</includeonly></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Key_press&diff=1459Template:Key press2011-12-04T22:34:54Z<p>Lars: Created page with "{{key press/core|{{{1}}}}}<!-- -->{{#if:{{{2|}}}|+{{key press/core|{{{2}}}}}}}<!-- -->{{#if:{{{3|}}}|+{{key press/core|{{{3}}}}}}}<!-- -->{{#if:{{{4|}}}|+{{key press/core|{{{4}}}…"</p>
<hr />
<div>{{key press/core|{{{1}}}}}<!--<br />
-->{{#if:{{{2|}}}|+{{key press/core|{{{2}}}}}}}<!--<br />
-->{{#if:{{{3|}}}|+{{key press/core|{{{3}}}}}}}<!--<br />
-->{{#if:{{{4|}}}|+{{key press/core|{{{4}}}}}}}<!--<br />
-->{{#if:{{{5|}}}|+{{key press/core|{{{5}}}}}}}<!--<br />
-->{{#if:{{{6|}}}|[[Category:Wikipedia keypress template parameter needs fixing]]}}<noinclude><br />
<br />
{{documentation}}<br />
<!-- ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Xpd/code&diff=1458Template:Xpd/code2011-12-04T22:33:28Z<p>Lars: Created page with "{{#switch:p{{{1}}}q|p q=&s|p q=&nl|p*q=&*|p#q=&#|p:q=&:|{{{1}}}}}<noinclude> {{documentation}} </noinclude>"</p>
<hr />
<div>{{#switch:p{{{1}}}q|p q=&s|p<br />
q=&nl|p*q=&*|p#q=&#|p:q=&:|{{{1}}}}}<noinclude><br />
{{documentation}}<br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Xpd&diff=1457Template:Xpd2011-12-04T22:32:11Z<p>Lars: Created page with "<noinclude>{{documentation}}</noinclude><includeonly>{&#123;<code>{{{1}}}{{#if:{{{1n|}}}|</code>{&#123;<code>{{{1n}}}</code>&#125;}<code>}}{{{1a|}}}{{#ifeq:{{{4|+}}}|{{{4|-}}}|<b…"</p>
<hr />
<div><noinclude>{{documentation}}</noinclude><includeonly>{&#123;<code>{{{1}}}{{#if:{{{1n|}}}|</code>{&#123;<code>{{{1n}}}</code>&#125;}<code>}}{{{1a|}}}{{#ifeq:{{{4|+}}}|{{{4|-}}}|<b>&#124;</b>{{{2|}}}<b>&#124;</b>{{{3|}}}<b>&#124;</b>{{{4|}}}|{{#ifeq:{{{3|-}}}|{{{3|+}}}|<b>&#124;</b>{{{2|}}}<b>&#124;</b>{{{3|}}}|{{#ifeq:{{{2|-}}}|{{{2|+}}}|<b>&#124;</b>{{{2|}}}|}}}}}}</code>&#125;} {{{s|gives}}} {{#ifeq:{{{4|-}}}|{{{4|+}}}|{{{{{1{{{{{1n|ns:0}}}}}{{{1a|}}}}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{#ifeq:{{{3|-}}}|{{{3|+}}}|{{{{{1}}}{{{{{1n|ns:0}}}}}{{{1a|}}}|{{{2|}}}|{{{3|}}}}}|{{#ifeq:{{{2|-}}}|{{{2|+}}}|{{{{{1}}}{{{{{1n|ns:0}}}}}{{{1a|}}}|{{{2|}}}}}|{{{{{1}}}{{{{{1n|ns:0}}}}}{{{1a|}}}}}}}}}}}</includeonly></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Template&diff=1456Template:Template2011-12-04T22:30:45Z<p>Lars: Created page with "{{{{{1}}}}}<noinclude> {{Documentation}} </noinclude>"</p>
<hr />
<div>{{[[Template:{{{1}}}|{{{1}}}]]}}<noinclude><br />
<br />
{{Documentation}}<br />
<br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Clarify&diff=1455Template:Clarify2011-12-04T22:29:39Z<p>Lars: Created page with "{{ {{{|safesubst:}}}ifsubst |<includeonly>{{subst:Unsubst|Clarify| reason|{{{reason|¬}}}| pre-text|{{{pre-text|¬}}}| post-text|{{{post-text|¬}}}| date|{{{date|{{subst:CURRENTM…"</p>
<hr />
<div>{{ {{{|safesubst:}}}ifsubst |<includeonly>{{subst:Unsubst|Clarify| reason|{{{reason|¬}}}| pre-text|{{{pre-text|¬}}}| post-text|{{{post-text|¬}}}| date|{{{date|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}} }}</includeonly>|<br />
<br />
{{Fix<br />
|link=Wikipedia:Please clarify<br />
|text=clarification needed<br />
|title=The text in the vicinity of this tag needs clarification or removal of jargon<br />
|date={{{date|}}}<br />
|pre-text={{{pre-text|}}}<br />
|post-text={{{post-text|}}}<br />
|cat-date=Category:Wikipedia articles needing clarification<br />
}}<br />
<br />
}}<noinclude><br />
{{Documentation}}<br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:IPA&diff=1454Template:IPA2011-12-04T22:28:11Z<p>Lars: Created page with "<span title="Representation in the International Phonetic Alphabet (IPA)" class="IPA">{{{1}}}</span><noinclude> {{documentation}} </noinclude>"</p>
<hr />
<div><span title="Representation in the International Phonetic Alphabet (IPA)" class="IPA">{{{1}}}</span><noinclude><br />
{{documentation}}<br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:%C2%B7&diff=1453Template:·2011-12-04T22:27:08Z<p>Lars: Created page with "&nbsp;<span style="font-weight:bold;">&middot;</span>&#32;<noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude>"</p>
<hr />
<div>&nbsp;<span style="font-weight:bold;">&middot;</span>&#32;<noinclude><br />
<br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:%5C&diff=1452Template:\2011-12-04T22:25:19Z<p>Lars: Created page with "&nbsp;/&#32;<noinclude> {{Documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude>"</p>
<hr />
<div>&nbsp;/&#32;<noinclude><br />
<br />
{{Documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Tld&diff=1451Template:Tld2011-12-04T22:23:07Z<p>Lars: Created page with "{{#ifeq:{{{allowlinebreak|}}}|yes||<span style="white-space:nowrap;">}}<tt>&#123;&#123;{{#if:{{{1|}}}|{{{1}}}| tld&#124;...}}<!-- -->{{#ifeq:{{{2|x}}}|{{{2|}}}| &#124;{{{2}}} | }…"</p>
<hr />
<div>{{#ifeq:{{{allowlinebreak|}}}|yes||<span style="white-space:nowrap;">}}<tt>&#123;&#123;{{#if:{{{1|}}}|{{{1}}}| tld&#124;...}}<!--<br />
-->{{#ifeq:{{{2|x}}}|{{{2|}}}| &#124;{{{2}}} | }}<!--<br />
-->{{#ifeq:{{{3|x}}}|{{{3|}}}| &#124;{{{3}}} | }}<!--<br />
-->{{#ifeq:{{{4|x}}}|{{{4|}}}| &#124;{{{4}}} | }}<!--<br />
-->{{#ifeq:{{{5|x}}}|{{{5|}}}| &#124;{{{5}}} | }}<!--<br />
-->{{#ifeq:{{{6|x}}}|{{{6|}}}| &#124;{{{6}}} | }}<!--<br />
-->{{#ifeq:{{{7|x}}}|{{{7|}}}| &#124;{{{7}}} | }}<!--<br />
-->{{#ifeq:{{{8|x}}}|{{{8|}}}| &#124;{{{8}}} | }}<!--<br />
-->{{#ifeq:{{{9|x}}}|{{{9|}}}| &#124;{{{9}}} | }}<!--<br />
-->&#125;&#125;</tt>{{#ifeq:{{{allowlinebreak|}}}|yes||</span>}}<noinclude><br />
{{Documentation|Template:Tlc/doc}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Void&diff=1450Template:Void2011-12-04T22:20:58Z<p>Lars: Created page with "<noinclude>{{documentation}}</noinclude>"</p>
<hr />
<div><noinclude>{{documentation}}</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:1x&diff=1449Template:1x2011-12-04T22:20:25Z<p>Lars: Created page with "{{{1}}}<noinclude>{{PAGENAME}}</noinclude>"</p>
<hr />
<div>{{{1}}}<noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Xpd/url&diff=1448Template:Xpd/url2011-12-04T22:19:24Z<p>Lars: Created page with "{{#switch:p{{{1}}}q|p *q|p **q|p ***q|p #q|p ##q|p ###q|p :q|p ::q|p :::q=%0d}}{{#switch:{{{1}}}|&p=%7c|&e=%3d|&s=+|&nl=%0d|&*=%2a|&#=%23|&:=%3a|{{urlencode:{{{1}}}}}}}<noinclude…"</p>
<hr />
<div>{{#switch:p{{{1}}}q|p<br />
*q|p<br />
**q|p<br />
***q|p<br />
#q|p<br />
##q|p<br />
###q|p<br />
:q|p<br />
::q|p<br />
:::q=%0d}}{{#switch:{{{1}}}|&p=%7c|&e=%3d|&s=+|&nl=%0d|&*=%2a|&#=%23|&:=%3a|{{urlencode:{{{1}}}}}}}<noinclude>{{documentation}}</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Xpd/w&diff=1447Template:Xpd/w2011-12-04T22:18:54Z<p>Lars: Created page with "{{#switch:p{{{1}}}q|p *q|p **q|p ***q|p #q|p ##q|p ###q|p :q|p ::q|p :::q=<br>}}{{#switch:{{{1}}}|{=&#123;|&p=&#124;|}=&#125;|&e=&#61;|&nl=<br>|&*=<nowiki/>*|&#=<nowiki/>#|&:=<no…"</p>
<hr />
<div>{{#switch:p{{{1}}}q|p<br />
*q|p<br />
**q|p<br />
***q|p<br />
#q|p<br />
##q|p<br />
###q|p<br />
:q|p<br />
::q|p<br />
:::q=<br>}}{{#switch:{{{1}}}|{=&#123;|&p=&#124;|}=&#125;|&e=&#61;|&nl=<br>|&*=<nowiki/>*|&#=<nowiki/>#|&:=<nowiki/>:}}{{ {{#switch:{{{1}}}|{|&p|}|&e|&s|&nl|&*|&#|&:|*|**|***|#|##|###|:|::|:::|;=void|1x}}|{{#tag:nowiki|{{{1}}}}}}}{{#switch:{{{1}}}|*=<nowiki>*</nowiki>|**=<nowiki>**</nowiki>|***=<nowiki>***</nowiki>|#=<nowiki>#</nowiki>|##=<nowiki>##</nowiki>|###=<nowiki>###</nowiki>|:=<nowiki>:</nowiki>|::=<nowiki>::</nowiki>|:::=<nowiki>:::</nowiki>|;=<nowiki>;</nowiki>}}{{ {{#switch:{{{1}}}|&s=1x|void}}|&nbsp;}}{{#ifeq:{{{1}}}|&|amp;}}<noinclude>{{documentation}}</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Xpda&diff=1446Template:Xpda2011-12-04T22:18:00Z<p>Lars: Created page with "<code>{{xpd/w{{#if:{{{l1|}}}|l}}|{{{1|}}}}}{{xpd/w{{#if:{{{l2|}}}|l}}|{{{2|}}}}}{{xpd/w{{#if:{{{l3|}}}|l}}|{{{3|}}}}}{{xpd/w{{#if:{{{l4|}}}|l}}|{{{4|}}}}}{{xpd/w{{#if:{{{l5|}}}|l…"</p>
<hr />
<div><code>{{xpd/w{{#if:{{{l1|}}}|l}}|{{{1|}}}}}{{xpd/w{{#if:{{{l2|}}}|l}}|{{{2|}}}}}{{xpd/w{{#if:{{{l3|}}}|l}}|{{{3|}}}}}{{xpd/w{{#if:{{{l4|}}}|l}}|{{{4|}}}}}{{xpd/w{{#if:{{{l5|}}}|l}}|{{{5|}}}}}{{xpd/w{{#if:{{{l6|}}}|l}}|{{{6|}}}}}{{xpd/w{{#if:{{{l7|}}}|l}}|{{{7|}}}}}{{xpd/w{{#if:{{{l8|}}}|l}}|{{{8|}}}}}{{xpd/w{{#if:{{{l9|}}}|l}}|{{{9|}}}}}{{xpd/w{{#if:{{{l10|}}}|l}}|{{{10|}}}}}{{xpd/w{{#if:{{{l11|}}}|l}}|{{{11|}}}}}{{xpd/w{{#if:{{{l12|}}}|l}}|{{{12|}}}}}{{xpd/w{{#if:{{{l13|}}}|l}}|{{{13|}}}}}{{xpd/w{{#if:{{{l14|}}}|l}}|{{{14|}}}}}{{xpd/w{{#if:{{{l15|}}}|l}}|{{{15|}}}}}{{xpd/w{{#if:{{{l16|}}}|l}}|{{{16|}}}}}{{xpd/w{{#if:{{{l17|}}}|l}}|{{{17|}}}}}{{xpd/w{{#if:{{{l18|}}}|l}}|{{{18|}}}}}{{xpd/w{{#if:{{{l19|}}}|l}}|{{{19|}}}}}{{xpd/w{{#if:{{{l20|}}}|l}}|{{{20|}}}}}{{xpd/w{{#if:{{{l21|}}}|l}}|{{{21|}}}}}{{xpd/w{{#if:{{{l22|}}}|l}}|{{{22|}}}}}{{xpd/w{{#if:{{{l23|}}}|l}}|{{{23|}}}}}{{xpd/w{{#if:{{{l24|}}}|l}}|{{{24|}}}}}{{xpd/w{{#if:{{{l25|}}}|l}}|{{{25|}}}}}{{xpd/w{{#if:{{{l26|}}}|l}}|{{{26|}}}}}{{xpd/w{{#if:{{{l27|}}}|l}}|{{{27|}}}}}{{xpd/w{{#if:{{{l28|}}}|l}}|{{{28|}}}}}{{xpd/w{{#if:{{{l29|}}}|l}}|{{{29|}}}}}{{xpd/w{{#if:{{{l30|}}}|l}}|{{{30|}}}}}{{xpd/w{{#if:{{{l31|}}}|l}}|{{{31|}}}}}{{xpd/w{{#if:{{{l32|}}}|l}}|{{{32|}}}}}</code> {{{gives|}}} {{{result}}} [{{fullurl:special:ExpandTemplates|input={{xpd/url|{{{1|}}}}}{{xpd/url|{{{2|}}}}}{{xpd/url|{{{3|}}}}}{{xpd/url|{{{4|}}}}}{{xpd/url|{{{5|}}}}}{{xpd/url|{{{6|}}}}}{{xpd/url|{{{7|}}}}}{{xpd/url|{{{8|}}}}}{{xpd/url|{{{9|}}}}}{{xpd/url|{{{10|}}}}}{{xpd/url|{{{11|}}}}}{{xpd/url|{{{12|}}}}}{{xpd/url|{{{13|}}}}}{{xpd/url|{{{14|}}}}}{{xpd/url|{{{15|}}}}}{{xpd/url|{{{16|}}}}}{{xpd/url|{{{17|}}}}}{{xpd/url|{{{18|}}}}}{{xpd/url|{{{19|}}}}}{{xpd/url|{{{20|}}}}}{{xpd/url|{{{21|}}}}}{{xpd/url|{{{22|}}}}}{{xpd/url|{{{23|}}}}}{{xpd/url|{{{24|}}}}}{{xpd/url|{{{25|}}}}}{{xpd/url|{{{26|}}}}}{{xpd/url|{{{27|}}}}}{{xpd/url|{{{28|}}}}}{{xpd/url|{{{29|}}}}}{{xpd/url|{{{30|}}}}}{{xpd/url|{{{31|}}}}}{{xpd/url|{{{32|}}}}}&removecomments=true}}]<noinclude>{{documentation}}</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Xpdop3c&diff=1445Template:Xpdop3c2011-12-04T22:16:43Z<p>Lars: Created page with "{{xpda|p=op3c|l4={{{l|}}}|result={{{gives|gives}}} {{{d|"}}}{{{{{1}}}|{{{2|}}}{{{3|}}}{{{4|}}}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}{{{11|}}}{{{12|}}}{{{13|}}}{{{14|…"</p>
<hr />
<div>{{xpda|p=op3c|l4={{{l|}}}|result={{{gives|gives}}} {{{d|"}}}{{{{{1}}}|{{{2|}}}{{{3|}}}{{{4|}}}}}{{{5|}}}{{{6|}}}{{{7|}}}{{{8|}}}{{{9|}}}{{{10|}}}{{{11|}}}{{{12|}}}{{{13|}}}{{{14|}}}{{{15|}}}{{{d|"}}}|{{{d|"}}}|{|{|{{{1}}}|&p|{{xpd/code|{{{2|}}}}}|{{xpd/code|{{{3|}}}}}|{{xpd/code|{{{4|}}}}}|}|}|{{xpd/code|{{{5|}}}}}|{{xpd/code|{{{6|}}}}}|{{xpd/code|{{{7|}}}}}|{{xpd/code|{{{8|}}}}}|{{xpd/code|{{{9|}}}}}|{{xpd/code|{{{10|}}}}}|{{xpd/code|{{{11|}}}}}|{{xpd/code|{{{12|}}}}}|{{xpd/code|{{{13|}}}}}|{{xpd/code|{{{14|}}}}}|{{xpd/code|{{{15|}}}}}|{{{d|"}}}}}<noinclude>{{documentation}}</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Tim&diff=1444Template:Tim2011-12-04T22:15:12Z<p>Lars: </p>
<hr />
<div>[[Template:{{ucfirst:{{{1|{{PAGENAME}}}}}}}]]<noinclude><br />
<br />
This template produces a link to a template.<br />
<br />
Example: {{documentation|tim|tc}}<br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Tim&diff=1443Template:Tim2011-12-04T22:10:57Z<p>Lars: Created page with "{{PAGENAME}}}}} (backlinks, [{{fullurl:mediawikiwiki:Template:{{{1|{{PAGENAME}}}}}|actio…"</p>
<hr />
<div>[[m:Template:{{{1|{{PAGENAME}}}}}]] ([[mediawikiwiki:Special:Whatlinkshere/Template:{{{1|{{PAGENAME}}}}}|backlinks]], [{{fullurl:mediawikiwiki:Template:{{{1|{{PAGENAME}}}}}|action=edit}} edit])<noinclude><br />
{{pp-template|small=yes}}<br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Quotation/doc&diff=1442Template:Quotation/doc2011-12-04T22:07:09Z<p>Lars: Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> ==Usage== * '''You should not put quotation marks around the quote.''' …"</p>
<hr />
<div>{{Documentation subpage}}<br />
<!--<br />
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE<br />
--><br />
<br />
==Usage==<br />
<br />
* '''You should not put quotation marks around the quote.'''<br />
<br />
<br />
*<big><nowiki>{{Quotation|quoted material|Author|Title|Publication}}</nowiki></big><br />
{{Quotation|quoted material|Author|Title|Publication}}<br />
<br />
*<big><nowiki>{{Quotation|quoted material|Author||skip italics to use '' '' for italics}}</nowiki></big><br />
{{Quotation|quoted material|Author||skip italics to use '''<nowiki>'' ''</nowiki>''' for italics}}<br />
<br />
*<big><nowiki>{{Quotation|quoted material|Author|Title|}}</nowiki></big><br />
{{Quotation|quoted material|Author|Title|}}<br />
<br />
<br />
*<big><nowiki>{{Quotation|quoted material}}</nowiki></big><br />
{{Quotation|quoted material}}<br />
<br />
===The equal sign (=)===<br />
If any of the parameters include an equal sign, this will make the template not recognize the parameter properly. To fix this the parameter needs to be prefixed with "1=", "2=", etc., depending on which parameter this applies to.<br />
<br />
==See also==<br />
<br />
{{Quotation templates see also}}<br />
<br />
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
<br />
</includeonly></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Quotation&diff=1441Template:Quotation2011-12-04T22:06:16Z<p>Lars: Created page with "<blockquote class="toccolours" style="float:none; padding: 10px 15px 10px 15px; display:table;"> {{{1<noinclude>|&nbsp;&nbsp;{{Lorem}}</noinclude>}}} {{#if:{{{2|<noinclude>x</no…"</p>
<hr />
<div><blockquote class="toccolours" style="float:none; padding: 10px 15px 10px 15px; display:table;"> {{{1<noinclude>|&nbsp;&nbsp;{{Lorem}}</noinclude>}}}<br />
<br />
{{#if:{{{2|<noinclude>x</noinclude>}}}<br />
|<p style="text-align: right;"> — <cite>{{{2}}}{{#if:{{{3|<noinclude>x</noinclude>}}}<br />
|, ''{{{3}}}''<br />
}}{{#if:{{{4|<noinclude>x</noinclude>}}}<br />
|, {{{4}}}<br />
}}</cite></p><br />
}}</blockquote><noinclude><br />
<br />
{{Documentation}}[[Category:Templates]]<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Shortcut&diff=1440Template:Shortcut2011-12-04T22:03:53Z<p>Lars: Created page with "<!-- Putting anchors on page: --><div style="position: relative; top: -3em;">{{#if:{{{1|}}}|<span id="{{{1|}}}"></span> }}{{#if:{{{2|}}}|<span id="{{{2|}}}"></span> }}{{#if:{{{3|…"</p>
<hr />
<div><!--<br />
Putting anchors on page:<br />
--><div style="position: relative; top: -3em;">{{#if:{{{1|}}}|<span id="{{{1|}}}"></span> }}{{#if:{{{2|}}}|<span id="{{{2|}}}"></span> }}{{#if:{{{3|}}}|<span id="{{{3|}}}"></span> }}{{#if:{{{4|}}}|<span id="{{{4|}}}"></span> }}{{#if:{{{5|}}}|<span id="{{{5|}}}"></span> }}</div><br />
<table class="shortcutbox noprint" style="float: right; border: 1px solid #aaa; background: #fff; margin: .3em .3em .3em 1em; padding: 3px; text-align: center;"><tr><th style="border: none; background: transparent;"><!--<br />
Adding the shortcut links:<br />
--><small>[[Wikipedia:Shortcut|Shortcut{{#if:{{{2|}}}|s}}]]: {{#if:{{{1|}}}|<br> [[{{{1}}}]] }}{{#if:{{{2|}}}|<br> [[{{{2}}}]] }}{{#if:{{{3|}}}|<br> [[{{{3}}}]] }}{{#if:{{{4|}}}|<br> [[{{{4}}}]] }}{{#if:{{{5|}}}|<br> [[{{{5}}}]] }}</small></th></tr></table><!--<br />
Reporting if the first parameter is not a valid non-bracketed shortcut name:<br />
-->{{#if:{{{1|}}}<br />
| {{#ifexist:{{{1|}}}<br />
| <br />
| [[Category:Wikipedia shortcut box first parameter needs fixing|{{PAGENAME}}]]<br />
}}<br />
}}<noinclude><br />
{{Documentation}}[[Category:Templates]]<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Interwikitmp-grp/core&diff=1439Template:Interwikitmp-grp/core2011-12-04T22:02:17Z<p>Lars: Created page with "<noinclude>{| class="plainlinks mbox-small" style="border:1px solid #aaa; background-color:#f9f9f9;" </noinclude>|- | class="mbox-image" | 25x25px | class="mbox-…"</p>
<hr />
<div><noinclude>{| class="plainlinks mbox-small" style="border:1px solid #aaa; background-color:#f9f9f9;"<br />
</noinclude>|-<br />
| class="mbox-image" | [[File:{{{4}}}|25x25px]]<br />
| class="mbox-text" | [[{{{1}}}:Template:{{{2}}}|{{{3}}}]]<noinclude><br />
|}</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Safesubst:&diff=1438Template:Safesubst:2011-12-04T21:58:50Z<p>Lars: Created page with "safesubst:"</p>
<hr />
<div>safesubst:</div>Larshttps://wiki.xenproject.org/index.php?title=Template:Category_handler/doc&diff=1437Template:Category handler/doc2011-12-04T21:56:35Z<p>Lars: Created page with "{{documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This is the {{tl|category handler}} meta-template. It helps other templates t…"</p>
<hr />
<div>{{documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
<br />
This is the {{tl|category handler}} meta-template.<br />
<br />
It helps other templates to automate both categorization and [[Wikipedia:Category suppression|category suppression]]. <br />
<br />
Already when used with its default settings this template prevents auto-categorization in some namespaces and on some pages where we usually don't want categorization. Thus even the most basic usage like "<code><nowiki>{{category handler|[[Category:Somecat]]}}</nowiki></code>" sees to that templates don't auto-categorize in the wrong places.<br />
<br />
This template makes it easy to choose in what namespaces a template should and should not categorize. And it makes it easy to use different categories in different namespaces. And this template uses a central blacklist where we can add pages and page types where templates should not auto-categorize.<br />
<br />
=== When not to use this template ===<br />
<br />
If a template only needs to categorize in one of the namespaces main (articles), file (images) or category, then using this template is overkill. Then instead use one of {{tl|main other}}, {{tl|file other}}, or {{tl|category other}}. But if your template needs to categorize in any other namespace, then we recommend you use this template, since it provides proper category suppression and makes it easy to select how to categorize in the different namespaces.<br />
<br />
=== Namespaces ===<br />
<br />
This template detects and groups all the different [[Wikipedia:Namespace|namespaces]] used on Wikipedia into several types. These types are used as parameter names in this template.<br />
<br />
:'''main''' = Main/article space, as in normal Wikipedia articles.<br />
:'''talk''' = Any talk space, such as page names that start with "Talk:", "User talk:", "File talk:" and so on.<br />
:'''user, wikipedia, file, mediawiki, template, help, category, portal''' and '''book''' = The other namespaces except the talk pages.<br />
:'''other''' = Any namespaces that were not specified as a parameter to the template. See examples below.<br />
<br />
=== Basic usage ===<br />
<br />
This template takes two or more parameters. Here's an example with the full template code for an article message box:<br />
<br />
<pre><br />
{{ambox<br />
| text = This is a box used in articles.<br />
}}{{category handler<br />
| [[Category:Somecat]]<br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
}}<noinclude><br />
<br />
{{documentation}}<br />
<!--Add categories and interwikis to the /doc subpage--><br />
</noinclude><br />
</pre><br />
<br />
The above example uses the default settings for {{tlf|category handler}}. That means the box will categorize on pages in the following namespaces: <br />
:'''main''', '''file''', '''help''', '''category''', '''portal''' and '''book'''<br />
But it will ''not'' categorize in the following namespaces:<br />
:'''talk''', '''user''', '''wikipedia''', '''mediawiki''' and '''template'''<br />
<br />
And it will ''not'' categorize on blacklisted pages. (See section [[#Blacklist|blacklist]] below.)<br />
<br />
The reason this template does not categorize in some of the namespaces is that in those namespaces most templates are just demonstrated or listed, not used. Thus most templates should not categorize in those namespaces. <br />
<br />
Any template that is meant for one or more of the namespaces where this template categorizes can use the basic syntax as shown above.<br />
<br />
=== Advanced usage ===<br />
<br />
This template takes one or more parameters named after the different page types as listed in section [[#Namespaces|namespaces]] above. By using those parameters you can specify exactly in which namespaces your template should categorize. Like this:<br />
<br />
<pre><br />
{{mbox<br />
| text = This is a box for articles and talk pages.<br />
}}{{category handler<br />
| main = [[Category:Somecat1]] <!--Categorize in main (article) space--><br />
| talk = [[Category:Somecat2]] <!--Categorize in talk space--><br />
| nocat = {{{nocat|}}} <!--So "nocat=true" works--><br />
}}<br />
</pre><br />
<br />
The above box will only categorize in main and talk space. But it will not categorize on /archive pages since they are blacklisted. (See section [[#Blacklist|blacklist]] below.) And if you need to demonstrate (discuss) that box on a talkpage, then you can feed "<code>nocat=true</code>" to prevent that template from categorizing. (See section [[#Nocat|nocat]] below.) Like this:<br />
<br />
<pre><br />
== My new template ==<br />
Hey guys, have you seen my new template?<br />
{{mytemp|nocat=true}}<br />
Nice, isn't it?<br />
--~~~~<br />
</pre><br />
<br />
Sometimes we want to use the same category in several namespaces, then do like this:<br />
<br />
<pre><br />
{{mbox<br />
| text = This is a box used in several namespaces.<br />
}}{{category handler<br />
| main = [[Category:Somecat1]]<br />
| 1 = [[Category:Somecat2]] <!--For help and user space--><br />
| help = 1<br />
| user = 1<br />
| talk = <!--No categories on talk pages--><br />
| other = [[Category:Somecat3]] <!--For all other namespaces--><br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
}}<br />
</pre><br />
<br />
In the above example we use a numbered parameter to feed one of the categories, and then we tell this template to use that numbered parameter for both the help and user space.<br />
<br />
This template understands the numbered parameters 1 to 10.<br />
<br />
The '''other''' parameter defines what should be used in the remaining namespaces that have not explicitly been fed data.<br />
<br />
Note the empty but defined '''talk''' parameter. That stops this template from showing what has been fed to the '''other''' parameter, when in talk space.<br />
<br />
This template also has a parameter called '''all'''. It works like this:<br />
<br />
<pre><br />
{{mbox<br />
| text = This is a box used in all namespaces.<br />
}}{{category handler<br />
| all = [[Category:Somecat1]] <!--Categorize in all namespaces--><br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
}}<br />
</pre><br />
<br />
The above example will categorize in all namespaces, but not on blacklisted pages. If you want to demonstrate that box on a page, then use "<code>nocat=true</code>" to prevent the template from categorizing. <br />
<br />
We suggest avoiding the '''all''' parameter, since templates should preferably only categorize in the namespaces they need to.<br />
<br />
The all parameter can also be combined with the rest of the parameters. Like this:<br />
<br />
<pre><br />
{{mbox<br />
| text = This is a box used in all namespaces.<br />
}}{{category handler<br />
| all = [[Category:Somecat1]] <!--Categorize in all namespaces--><br />
| main = [[Category:Somecat2]] <!--And add this in main space--><br />
| other = [[Category:Somecat3]] <!--And add this in all other namespaces--><br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
}}<br />
</pre><br />
<br />
If the above box is placed on an article, then it will add the categories "Somecat1" and "Somecat2". But on all other types of pages it will instead add "Somecat1" and "Somecat3". As the example shows, the all parameter works independently of the rest of the parameters.<br />
<br />
=== Subpages ===<br />
<br />
This template understands the '''subpage''' parameter. Like this:<br />
<br />
<pre><br />
{{category handler<br />
| subpage = no <!--Don't categorize on subpages--><br />
| wikipedia = [[Category:Somecat]]<br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
}}<br />
</pre><br />
<br />
If "<code>subpage=no</code>" then this template will ''not'' categorize on subpages. For the rare occasion you ''only'' want to categorize on subpages, then use "<code>subpage=only</code>". If '''subpage''' is empty or undefined then this template categorizes both on basepages and on subpages.<br />
<br />
=== Blacklist ===<br />
<br />
This template has a blacklist of the pages and page types where templates should not auto-categorize. Thus templates that use this meta-template will for instance not categorize on /archive pages and on the subpages of [[Wikipedia:Template messages]].<br />
<br />
If you want a template to categorize on a blacklisted page, then feed "<code><nowiki>nocat = false</nowiki></code>" to the template when you place it on the page, thus skipping the blacklist check. Note that this template only categorizes if it has data for the namespace. For instance, if the basic syntax is used (see [[#Basic usage|basic usage]] above), then even if you set "<code>nocat = false</code>" the template will not categorize on a talk page, since it has no data for talk pages. But it has data for help space, so on a blacklisted help page it will categorize.<br />
<br />
The blacklist is in the sub-template {{tl|category handler/blacklist}}. To see or update the blacklist, go there.<br />
<br />
=== The "nocat" parameter ===<br />
<br />
This template understands the '''nocat''' parameter:<br />
<br />
* If "<code>nocat = true</code>" then this template does ''not'' categorize. <br />
* If '''nocat''' is empty or undefined then this template categorizes as usual. <br />
* If "<code>nocat = false</code>" this template categorizes even when on blacklisted pages. (See section [[#Blacklist|blacklist]] above.)<br />
<br />
Templates that use {{tlf|category handler}} should forward '''nocat''', so they too understand '''nocat'''. The code "<code><nowiki>nocat = {{{nocat|}}}</nowiki></code>" shown in the examples on this page does that.<br />
<br />
=== The "categories" parameter ===<br />
<br />
For backwards compatibility this template also understands the '''categories''' parameter. It works the same as '''nocat'''. Like this:<br />
<br />
* If "<code>categories = no</code>" then this template does ''not'' categorize. <br />
* If '''categories''' is empty or undefined then this template categorizes as usual. <br />
* If "<code>categories = yes</code>" this template categorizes even when on blacklisted pages.<br />
<br />
When adding this template to a template that already uses the "<code>categories = no</code>" logic, then you can do like this to not break any existing usage:<br />
<br />
<pre><br />
{{category handler<br />
| [[Category:Somecat]]<br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
| categories = {{{categories|}}} <!--So "categories=no" works--><br />
}}<br />
</pre><br />
<br />
=== The "category2" parameter ===<br />
<br />
For backwards compatibility this template kind of supports the old "category =" parameter. But the parameter name "category" is already used in this template to feed category data for when in category space. So instead this template uses '''category2''' for the usage similar to '''nocat'''. Like this:<br />
<br />
* If "<code>category2 =</code>" (empty but defined), or "<code>category2 = no</code>", or if '''category2''' is fed any other data (except as described in the next two points), then this template does ''not'' categorize.<br />
* If '''category2''' is undefined or if "<code>category2 = ¬</code>", then this template categorizes as usual.<br />
* If "<code>category2 = yes</code>" this template categorizes even when on blacklisted pages.<br />
<br />
When adding this template to a template that already uses the "<code>category =</code>" logic, then you can do like this to not break any existing usage:<br />
<br />
<pre><br />
{{category handler<br />
| [[Category:Somecat]]<br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
| category2 = {{{category|¬}}} <!--So "category =" works--><br />
}}<br />
</pre><br />
<br />
Note that the "<code>¬</code>" is necessary, it helps this template to detect if the '''category''' parameter is defined but empty, or undefined.<br />
<br />
=== Categories and text ===<br />
<br />
Besides from categories, you can feed anything else to this template, for instance some text. Like this:<br />
<br />
<pre><br />
{{tmbox<br />
| text = This is a talk page message box.<br />
}}{{category handler<br />
| talk = [[Category:Somecat]]<br />
| other = :::::This template should only be used on talk pages.<br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
}}<br />
</pre><br />
<br />
When the template above is shown on anything else than a talk page, it will look like this (note the text below the box):<br />
<br />
{{tmbox<br />
| text = This is a talk page message box.<br />
| nocat = true <!--So this box doesn't add "Category:Talk message boxes"--><br />
}}{{category handler<br />
| talk = [[Category:Somecat]]<br />
| other = :::::This template should only be used on talk pages.<br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
}}<br />
<br />
That text will not show on blacklisted pages, so don't use this method to show any important information. Feeding "<code>nocat = true</code>" to the template hides the text, just as it suppresses any categories.<br />
<br />
=== The "page" parameter ===<br />
<br />
For testing and demonstration purposes this template can take a parameter named '''page'''. Like this:<br />
<br />
<pre><br />
{{category handler<br />
| main = Category:Some cat<br />
| talk = Category:Talk cat<br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
| page = User talk:Example<br />
}}<br />
</pre><br />
<br />
In the above code we on purpose left out the brackets around the category names so we see the output on the page. No matter on what kind of page the code above is used it will return this:<br />
<br />
:{{category handler<br />
| main = Category:Some cat<br />
| talk = Category:Talk cat<br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
| page = User talk:Example<br />
}}<br />
<br />
The '''page''' parameter makes this template behave exactly as if on that page. Even the blacklist works. The pagename doesn't have to be an existing page.<br />
<br />
If the '''page''' parameter is empty or undefined, the name of the current page determines the result.<br />
<br />
You can make it so your template also understands the '''page''' parameter. That means you can test how your template will categorize on different pages, without having to actually edit those pages. Then do like this:<br />
<br />
<pre><br />
{{category handler<br />
| main = Category:Some cat<br />
| talk = Category:Talk cat<br />
| nocat = {{{nocat|}}} <!--So "nocat=true/false" works--><br />
| page = {{{page|}}} <!--For testing--><br />
}}<br />
</pre><br />
<br />
=== Parameters ===<br />
<br />
List of all parameters:<br />
<br />
<pre><br />
{{category handler<br />
| [[Category:Somecat]]<br />
| subpage = no / only<br />
| 1 =<br />
...<br />
| 10 =<br />
| all = [[Category:Somecat]] / Text<br />
| main = 1 / ... / 10 / [[Category:Somecat]] / Text<br />
...<br />
| other = 1 / ... / 10 / [[Category:Somecat]] / Text<br />
<br />
| nocat = {{{nocat|}}} / true / false<br />
| categories = {{{categories|}}} / no / yes<br />
| category2 = {{{category|¬}}} / 'empty' / no / 'not defined' / ¬ / yes<br />
<br />
| page = {{{page|}}} / User:Example<br />
}}<br />
</pre><br />
<br />
Note that empty values to the "main" ... "other" parameters have special meaning (see examples above). The "all" parameter doesn't understand numbered parameters, since there should never be a need for that.<br />
<br />
=== Technical details ===<br />
<br />
The centralised category suppression blacklist is in the sub-template {{tl|category handler/blacklist}}. To see or update the blacklist, go there.<br />
<br />
For its internal parameter processing, this template uses the sub-template {{tl|category handler/numbered}}.<br />
<br />
For more technical details see the [[Template talk:Category handler|talk page]].<br />
<br />
=== See also ===<br />
<br />
* [[Wikipedia:Category suppression]] – The how-to guide.<br />
* [[Wikipedia:WikiProject Category Suppression]] – The WikiProject.<br />
* [[Wikipedia:Namespace]] – Lists all the namespaces.<br />
<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
</includeonly></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Category_handler&diff=1436Template:Category handler2011-12-04T21:55:58Z<p>Lars: Created page with "{{#if: {{#ifeq: {{lc: {{{nocat|}}} }} | true | dontcat <!--"nocat=true", don't categorize--> }}{{#ifeq: {{lc: {{{categories|}}} }} | no | dontcat }}{{#switch: {{lc: …"</p>
<hr />
<div>{{#if:<br />
{{#ifeq: {{lc: {{{nocat|}}} }} | true<br />
| dontcat <!--"nocat=true", don't categorize--><br />
}}{{#ifeq: {{lc: {{{categories|}}} }} | no<br />
| dontcat<br />
}}{{#switch: {{lc: {{{category2|¬}}} }}<br />
| yes<br />
| ¬ = <!--Not defined--><br />
| #default = dontcat <!--"category2 = no/'defined but empty'/'anything'"--><br />
}}{{#switch: {{lc: {{{subpage|}}} }}<br />
| no = <br />
{{basepage subpage<br />
| <br />
| dontcat <!--"subpage=no" and on a subpage--><br />
| page = {{{page|}}} <!--For testing--><br />
}}<br />
| only = <br />
{{basepage subpage<br />
| dontcat <!--"subpage=only" and not on a subpage--><br />
| page = {{{page|}}} <!--For testing--><br />
}}<br />
}}<br />
<br />
| <!--Don't categorise (result was "dontcat" or "dontcatdontcat" and so on)--><br />
| <!--Check blacklist--><br />
{{#switch:<br />
{{#ifeq: {{lc: {{{nocat|}}} }} | false<br />
| <!--"nocat=false", skip blacklist check--><br />
| {{#ifeq: {{lc: {{{categories|}}} }} | yes<br />
| <!--Skip blacklist check--><br />
| {{#ifeq: {{lc: {{{category2|}}} }} | yes<br />
| <!--Skip blacklist check--><br />
| {{category handler/blacklist| page = {{{page|}}} }} <!--Check blacklist--><br />
}}<br />
}}<br />
}}<br />
| hide = <!--Blacklist returned "hide", don't categorize--><br />
| #default = <br />
<!--Check if any namespace parameter is defined--><br />
{{#ifeq: h0#384!5nea+w9 | {{{all| {{{main| {{{talk| {{{user| {{{wikipedia| {{{file| {{{mediawiki| {{{template| {{{help| {{{category| {{{portal| {{{book| {{{other| h0#384!5nea+w9 }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}} }}}<br />
| <!--No namespace parameters fed, basic usage--><br />
{{namespace detect<br />
| main = {{{1|}}}<br />
| file = {{{1|}}}<br />
| help = {{{1|}}}<br />
| category = {{{1|}}}<br />
| portal = {{{1|}}}<br />
| book = {{{1|}}}<br />
| page = {{{page|}}} <!--For testing and demonstration--><br />
}}<br />
| <!--Namespace parameters fed, advanced usage.<br />
If "data" is a number, return the corresponding <br />
numbered parameter, else return "data". --><br />
{{{all|}}}{{category handler/numbered<br />
| 1 = {{{1|}}}<br />
| 2 = {{{2|}}}<br />
| 3 = {{{3|}}}<br />
| 4 = {{{4|}}}<br />
| 5 = {{{5|}}}<br />
| 6 = {{{6|}}}<br />
| 7 = {{{7|}}}<br />
| 8 = {{{8|}}}<br />
| 9 = {{{9|}}}<br />
| 10 = {{{10|}}}<br />
| data = <br />
<!--Check what namespace, and return the data for it.<br />
Respecting empty parameters on purpose. --><br />
{{namespace detect<br />
| main = {{{main| {{{other|}}} }}}<br />
| talk = {{{talk| {{{other|}}} }}}<br />
| user = {{{user| {{{other|}}} }}}<br />
| wikipedia = {{{wikipedia| {{{project| {{{other|}}} }}} }}}<br />
| file = {{{file| {{{image| {{{other|}}} }}} }}}<br />
| mediawiki = {{{mediawiki| {{{other|}}} }}}<br />
| template = {{{template| {{{other|}}} }}}<br />
| help = {{{help| {{{other|}}} }}}<br />
| category = {{{category| {{{other|}}} }}}<br />
| portal = {{{portal| {{{other|}}} }}}<br />
| book = {{{book| {{{other|}}} }}}<br />
| other = {{{other|}}} <!--Namespace special or a new namespace--><br />
| page = {{{page|}}} <!--For testing and demonstration--><br />
}}<br />
}}<br />
}}<br />
}}<br />
}}<noinclude><br />
{{documentation}}<br />
<!-- Add categories and interwikis to the /doc subpage, not here! --><br />
</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Tiw&diff=1435Template:Tiw2011-12-04T21:53:25Z<p>Lars: Created page with "{{#if: {{{2|}}} | :{{{1}}}:Template:{{{2}}} (backlinks, [{{fullurl:{{{1}}}:Template:{{{2}}}|action=edit}} edit]) | [[Templ…"</p>
<hr />
<div>{{#if: {{{2|}}} | [[:{{{1}}}:Template:{{{2}}}]] ([[:{{{1}}}:Special:Whatlinkshere/Template:{{{2}}}|backlinks]], [{{fullurl:{{{1}}}:Template:{{{2}}}|action=edit}} edit]) | [[Template:{{{1|{{PAGENAME}}}}}]] ([[Special:Whatlinkshere/Template:{{{1|{{PAGENAME}}}}}|backlinks]], [{{fullurl:w:Template:{{{1|{{PAGENAME}}}}}|action=edit}} edit]) }}<noinclude>{{documentation}}</noinclude></div>Larshttps://wiki.xenproject.org/index.php?title=Template:Td/doc&diff=1434Template:Td/doc2011-12-04T21:49:50Z<p>Lars: Created page with "{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This is the {{tl|td}} template. It is used to insert an empty, 1px wide, tabl…"</p>
<hr />
<div>{{Documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
<br />
This is the {{tl|td}} template.<br />
<br />
It is used to insert an empty, 1px wide, table cell into an HTML table or wikitable. It can be used whenever an empty cell is required to balance a table, for instance when hardcoding mbox templates.<br />
<br />
This template takes no parameters.<br />
<br />
=== Technical details ===<br />
<br />
Most browsers are not so picky about balancing the table. However some are. For instance in Safari you can get partly missing left or right border of the table if some table rows do not contain the right number of table cells.<br />
<br />
=== See also ===<br />
<br />
<includeonly><br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
</includeonly></div>Lars