Jump to content

Template:Notice/doc: Difference between revisions

Trying code tags instead of pre tags around the code examples.
(More or less finished the new documentation.)
(Trying code tags instead of pre tags around the code examples.)
Line 1:
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!--
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
-->
 
This is the {{tl|notice}} message box.
Line 16 ⟶ 14:
This is how this box looks on article (main space) pages. Here is a code example:
 
:<code><nowiki>{{notice|Include text here.}}</nowiki></code>
<pre>
{{notice|Include text here.}}
</pre>
 
Which renders like this:
Line 27 ⟶ 23:
An optional '''header''' text can be added. Like this:
 
:<code><nowiki>{{notice|header=Header text|Include text here.}}</nowiki></code>
<pre>
{{notice|header=Header text|Include text here.}}
</pre>
 
Which renders like this:
Line 42 ⟶ 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:
 
:<code><nowiki>{{notice|Include text here.}}</nowiki></code>
<pre>
{{notice|Include text here.}}
</pre>
 
Which renders like this:
Line 52 ⟶ 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:
 
:<code><nowiki>{{notice|small=yes|header=Header text|Include text here.}}</nowiki></code>
<pre>
{{notice|small=yes|header=Header text|Include text here.}}
</pre>
 
{{notice|demospace=talk|small=yes|header=Header text|Include text here.}}
Line 62 ⟶ 52:
Let's try the '''image''' parameter too. Like this:
 
:<code><nowiki>{{notice|demospace=talk|small=yes|image=Stop hand nuvola.svg|header=Header text|Include text here.}}</nowiki></code>
<pre>
{{notice|demospace=talk|small=yes|image=Stop hand nuvola.svg
|header=Header text|Include text here.}}
</pre>
 
{{notice|demospace=talk|small=yes|image=Stop hand nuvola.svg|header=Header text|Include text here.}}
Line 73 ⟶ 60:
This is how this box looks on all other pages, such as pages that start with "User:", "Image:", "Wikipedia:" and so on.
 
:<code><nowiki>{{notice|Include text here.}}</nowiki></code>
<pre>
{{notice|Include text here.}}
</pre>
 
Which renders like this:
Line 83 ⟶ 68:
The box can also take an '''image''' parameter. Like this:
 
:<code><nowiki>{{Notice|image=Stop hand nuvola.svg|Include text here.}}</nowiki></code>
<pre>
{{Notice|image=Stop hand nuvola.svg|Include text here.}}
</pre>
 
{{Notice|image=Stop hand nuvola.svg|Include text here.}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.