Template:Distinguish/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Extended from 4 to 8 possible parameters. Added description parameter for each unnamed parameter.)
m (clean up, replaced: See Also → See also, {{Documentation subpage → {{Doc/subpage)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page. -->
<!-- Please place categories where indicated at the bottom of this page. -->
{{Inline note templates}}
{{Doc/subpage}}
This template allows you to easily notify users that they may have confused one thing with another. Accepts up to 8 inputs. Only one is enough though.
This template allows you to easily notify users that they may have confused one thing with another. Accepts up to 8 inputs. Only one is enough though.
{{Todo|Create a version without links added automatically, similar to [[Template:Main]].}}
__NOTOC__
__NOTOC__
== Usage ==
== Usage ==
Line 13: Line 16:
=== Examples ===
=== Examples ===
{| style="background:none"
{| style="background:none"
| <code><nowiki>{{distinguish|1}}</nowiki></code> || &rarr; || {{distinguish|1}}
| <code><nowiki>{{distinguish|1}}</nowiki></code> || || {{distinguish|1}}
|-
|-
| <code><nowiki>{{distinguish|1|desc1=text1}}</nowiki></code> || &rarr; || {{distinguish|1|desc1=text1}}
| <code><nowiki>{{distinguish|1|desc1=text1}}</nowiki></code> || || {{distinguish|1|desc1=text1}}
|-
|-
| <code><nowiki>{{distinguish|1|2}}</nowiki></code> || &rarr; || {{distinguish|1|2}}
| <code><nowiki>{{distinguish|1|2}}</nowiki></code> || || {{distinguish|1|2}}
|-
|-
| <code><nowiki>{{distinguish|1|2|3|4|5|6|7|8|desc5=text5}}</nowiki></code> || &rarr; || {{distinguish|1|2|3|4|5|6|7|8|desc5=text5}}
| <code><nowiki>{{distinguish|1|2|3|4|5|6|7|8|desc5=text5}}</nowiki></code> || || {{distinguish|1|2|3|4|5|6|7|8|desc5=text5}}
|}
|}
== See Also ==
== See also ==
* {{tl|confusion}}
* {{t|Confusion}}


<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Inline note templates|{{PAGENAME}}]][[Category:Notice templates|{{PAGENAME}}]]
 
}}</includeonly>
[[Category:Inline note templates|{{PAGENAME}}]]
[[Category:Notice templates|{{PAGENAME}}]]
}}{{clr}}</includeonly>

Latest revision as of 02:21, 12 January 2024

Inline note templates
Template Pages using it
28 August 2024
{{note}} 6,436
{{warning}} 1,253
{{bug}} 1,192
{{tip}} 1,516
{{todo}} 1,628
{{inline note}} 2,188
{{confirm}} 672
{{question}} 11
{{fix}} 170
{{important}} 459
{{clarify}} 169
{{elaborate}} 18
{{main}} 143
{{distinguish}} 85
{{workaround}} 122
{{seealso}} 145
{{when}} 1
{{where}} 0
{{which}} 2
{{why}} 38
{{idea}} 21
{{placementTip}} 13
{{codenote}} 21
{{altnames}} 35
{{deprecated}} 109
{{how}} 23
{{example}} 16
{{confusion}} 53
{{thanks}} 7
{{code Fix}} 9 + 7 (16)
{{vote}} 4
Edit-copy.png
This is a documentation subpage for Template:Distinguish.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template allows you to easily notify users that they may have confused one thing with another. Accepts up to 8 inputs. Only one is enough though.

Todo: Create a version without links added automatically, similar to Template:Main.

Usage

  • {{distinguish|<1>|<2>|...}}
  • {{distinguish|<1>|<2>|...|desc1=<text1>|desc2=<text2>|...}}

Parameters

  • {{{1}}} to {{{8}}} - The things that something should not be confused with.
  • {{{desc1}}} to {{{desc8}}} - Optional descriptions for {{{1}}} to {{{8}}}.

Examples

{{distinguish|1}}
Not to be confused with 1.
{{distinguish|1|desc1=text1}}
Not to be confused with 1 (text1).
{{distinguish|1|2}}
Not to be confused with 1 or 2.
{{distinguish|1|2|3|4|5|6|7|8|desc5=text5}}
Not to be confused with 1, 2, 3, 4, 5 (text5), 6, 7 or 8.

See also