Template:Notice/doc: Difference between revisions
Content added Content deleted
(More or less finished the new documentation.) |
(Trying code tags instead of pre tags around the code examples.) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} |
{{Documentation subpage}} |
||
⚫ | |||
<!-- |
|||
⚫ | |||
--> |
|||
This is the {{tl|notice}} message box. |
This is the {{tl|notice}} message box. |
||
Line 16: | Line 14: | ||
This is how this box looks on article (main space) pages. Here is a code example: |
This is how this box looks on article (main space) pages. Here is a code example: |
||
⚫ | |||
<pre> |
|||
⚫ | |||
</pre> |
|||
Which renders like this: |
Which renders like this: |
||
Line 27: | Line 23: | ||
An optional '''header''' text can be added. Like this: |
An optional '''header''' text can be added. Like this: |
||
⚫ | |||
<pre> |
|||
⚫ | |||
</pre> |
|||
Which renders like this: |
Which renders like this: |
||
Line 42: | Line 36: | ||
This is how this box looks on any talk page. That is, pages that start with "Talk:", "User talk:", "Image talk:" and so on. Here's the basic box again: |
This is how this box looks on any talk page. That is, pages that start with "Talk:", "User talk:", "Image talk:" and so on. Here's the basic box again: |
||
⚫ | |||
<pre> |
|||
⚫ | |||
</pre> |
|||
Which renders like this: |
Which renders like this: |
||
Line 52: | Line 44: | ||
The '''header''' parameter works on talk pages too. But there is one parameter that only works on talk pages, the '''small''' parameter. Like this: |
The '''header''' parameter works on talk pages too. But there is one parameter that only works on talk pages, the '''small''' parameter. Like this: |
||
⚫ | |||
<pre> |
|||
⚫ | |||
</pre> |
|||
{{notice|demospace=talk|small=yes|header=Header text|Include text here.}} |
{{notice|demospace=talk|small=yes|header=Header text|Include text here.}} |
||
Line 62: | Line 52: | ||
Let's try the '''image''' parameter too. Like this: |
Let's try the '''image''' parameter too. Like this: |
||
⚫ | |||
<pre> |
|||
⚫ | |||
|header=Header text|Include text here.}} |
|||
</pre> |
|||
{{notice|demospace=talk|small=yes|image=Stop hand nuvola.svg|header=Header text|Include text here.}} |
{{notice|demospace=talk|small=yes|image=Stop hand nuvola.svg|header=Header text|Include text here.}} |
||
Line 73: | Line 60: | ||
This is how this box looks on all other pages, such as pages that start with "User:", "Image:", "Wikipedia:" and so on. |
This is how this box looks on all other pages, such as pages that start with "User:", "Image:", "Wikipedia:" and so on. |
||
⚫ | |||
<pre> |
|||
⚫ | |||
</pre> |
|||
Which renders like this: |
Which renders like this: |
||
Line 83: | Line 68: | ||
The box can also take an '''image''' parameter. Like this: |
The box can also take an '''image''' parameter. Like this: |
||
⚫ | |||
<pre> |
|||
⚫ | |||
</pre> |
|||
{{Notice|image=Stop hand nuvola.svg|Include text here.}} |
{{Notice|image=Stop hand nuvola.svg|Include text here.}} |