Template:Confusion: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (typo)
(Added documentation from Template:Note. Put example in a table. Hope I did that grammar right.)
Line 1: Line 1:
<noinclude>{{lang|Template:Confusion}}</noinclude>
{{lang|Template:Confusion}}
<div><strong style="color:#f0f000;display:table-cell;padding-left:1em;white-space:nowrap;">[[File:Warning.png|link=]]&nbsp;Risk of confusion:&nbsp;</strong><span style="display:table-cell;">
<onlyinclude><includeonly><div><strong style="color:#f0f000; display:table-cell; padding-left:1em; white-space:nowrap;">[[File:Warning.png|link=]]&nbsp;<!--
-->Risk of confusion<!--
-->:&nbsp;</strong><span style="display:table-cell;">
<!-- Should make it that this is only visible in pages that use this template, rather right here right now -->
<!-- Should make it that this is only visible in pages that use this template, rather right here right now -->
<includeonly>{{#if:{{{1|}}}|{{{1}}}|''Something's confusing about this, but the editor forgot to add something in here. Silly them...''}}</includeonly></span></div>
{{#if:{{{1|}}}|{{{1}}}|''Something's confusing about this, but the editor forgot to add something in here. Silly them...''}}</span></div>
<noinclude>
</includeonly></onlyinclude>
==Documentation==
 
This template is intended for when two or more entities have very similar, or even exactly same names. One such example is [[Weapon_molotov]], some games it can be found in are {{csgo}}, {{l4d}} or {{l4d2}}, yet are ''not'' the same entity and act differently.
This template, just like {{tl|distinguish}}, is intended for when two or more entities have very similar, or even identical names. One such example is [[weapon_molotov]], some games it can be found in are {{csgo}}, {{l4d}} or {{l4d2}}, yet they are ''not'' the same entity and act differently.


To start using this template, refer to this example:
To start using this template, refer to this example:
<pre>{{Confusion|Hey! {{l4d}} with {{l4d2}} looks confusing to me! Don't judge!}}</pre>
{| style=background:none
Shows as this: {{Confusion|Hey! {{l4d}} with {{l4d2}} looks confusing to me! Don't judge!}}
| <code><nowiki>{{Confusion|Hey! {{l4d}} with {{l4d2}} looks confusing to me! Don't judge!}}</nowiki></code>
| &rarr;
| {{Confusion|Hey! {{l4d}} with {{l4d2}} looks confusing to me! Don't judge!}}
|}
Simple and self-explanatory, isn't it?<br>
Simple and self-explanatory, isn't it?<br>
However, remember to never fill the parameter blank like this, or you'll get a surprise..
However, remember to never fill the parameter blank, or you'll get a surprise..
<pre>{{Confusion|}}</pre>


[[Category:Inline note templates|{{PAGENAME}}]]
{{documentation|Template:Note/doc}}
[[Category:Notice templates|{{PAGENAME}}]]
</noinclude>

Revision as of 04:45, 13 December 2021


This template, just like {{distinguish}}, is intended for when two or more entities have very similar, or even identical names. One such example is weapon_molotov, some games it can be found in are Counter-Strike: Global Offensive, Left 4 Dead or Left 4 Dead 2, yet they are not the same entity and act differently.

To start using this template, refer to this example:

{{Confusion|Hey! {{l4d}} with {{l4d2}} looks confusing to me! Don't judge!}}
Warning.png Risk of confusion:  Hey! Left 4 Dead with Left 4 Dead 2 looks confusing to me! Don't judge!

Simple and self-explanatory, isn't it?
However, remember to never fill the parameter blank, or you'll get a surprise..

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [create]
Icon-translate.png Available doc translations
Info.png
The Template:Confusion/doc documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
Template:Confusion/doc