Difference between revisions of "Template:Sp"

From Team Fortress Wiki
Jump to: navigation, search
(Update wording, incl. "Show preview" -> "Preview")
m
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude>[[File:Information.png|25px]] Please make use of the '''Preview''' button. It gives you a preview of the edit you are making, allowing you to perfect your changes before you save the page.</onlyinclude>
+
<includeonly>{{subst:void|<span style="font-size: large; color: red">[[Category:Pages with incorrectly transcluded templates]]'''This template should always be substituted. Please change <nowiki>{{sp}} to {{subst:sp}}</nowiki>'''</span>}}</includeonly>
 +
[[File:{{<includeonly>subst:</includeonly>#switch: {{{1|0}}}
 +
| 0 | #default = Pictogram info
 +
| 1 = Warning yellow
 +
| 2 = Warning red
 +
}}.png|25px|link=]] Please make use of the '''Show preview''' button. It gives you a preview of the edit you are making, allowing you to perfect your changes before you save the page. You can edit the whole article by clicking the edit button at the top of the page, which is preferable to editing multiple sections consecutively.<noinclude>
 +
{{Doc begin}}
 
== Usage ==
 
== Usage ==
<pre>
+
<nowiki>{{subst:sp}}</nowiki><br>
== Show Preview ==
+
* Takes 1 parameter, which represents the severity of the issue.
{{subst:sp}} ~~~~
+
**0 (or no parameter) will result in [[File:Pictogram info.png|25px]]
</pre>
+
**1 will result in [[File:Warning yellow.png|25px]]
=== Example ===
+
**2 will result in [[File:Warning red.png|25px]]
<pre>
+
[[Category:Help templates|Sp]]
== Show Preview ==
+
[[Category:Talk page warning templates|Sp]]</noinclude>
{{subst:sp}} ~~~~
 
</pre>
 
results in:
 
<div style="border:1px solid #aaa;background:#F2F2FC;width=100%;padding:0.5em">
 
== Show Preview ==
 
{{sp}} -- [[User:Example|Example]] 22:41, 20 March 2012 (UTC)
 
</div>
 
[[Category:Help templates|Sp]]</noinclude>
 

Latest revision as of 16:17, 27 June 2023

Pictogram info.png Please make use of the Show preview button. It gives you a preview of the edit you are making, allowing you to perfect your changes before you save the page. You can edit the whole article by clicking the edit button at the top of the page, which is preferable to editing multiple sections consecutively.

Documentation for Sp

Usage

{{subst:sp}}

  • Takes 1 parameter, which represents the severity of the issue.
    • 0 (or no parameter) will result in Pictogram info.png
    • 1 will result in Warning yellow.png
    • 2 will result in Warning red.png