Template:Useful redirect/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>{{Doc/subpage}}</noinclude>
<noinclude>{{Doc/subpage}}</noinclude>
Created to mark redirects that somehow improve the interaction with the wiki.
Created to mark redirects that somehow improve the interaction with the wiki.
== Usage ==
{{Template usage example|inline}}


== Translations ==
== Translations ==
Line 10: Line 13:
! Description
! Description
! Example
! Example
! Preview
! style="width:40%" | Preview
|-
|-
| align="center" | No Parameters
| style="text-align:center" | No Parameters
| List generic reasons
| List generic reasons.
| {{CodeBlock|<nowiki>{{Useful redirect}}</nowiki>}}
| style="background-color:#1f1f1f" | <pre style="margin:0">{{Useful redirect}}</pre>
| {{Capsule|{{Useful redirect}}}}
| style="background-color:#262626" | {{Useful redirect}}
|-
|-
| align="center" | {{param|1}}
| style="text-align:center" | <code>{{param|1}}</code>
| Define specific reason
| Define specific reason.
| {{CodeBlock|<nowiki>{{Useful redirect|Common abbreviation }}</nowiki>}}
| style="background-color:#1f1f1f" | <pre style="margin:0">| Common abbreviation.
| {{Capsule|{{Useful redirect|Common abbreviation }}}}
 
| 1 = Common abbreviation.</pre>
| style="background-color:#262626" | {{Useful redirect|Common abbreviation.}}
|}
|}


== Included Subpages ==
== Components ==
Below are the subpages that are used by this template for better code readability or something else.
Below are the subpages that are used by this template for better code readability or something else.
* {{Code|[[/strings|Strings]]}} - Translatable strings and strings to include in the template.
* [[/strings|strings]] - Translatable strings and strings to include in the template.
 
__NOTOC__
{{Doc/Sandbox other|
{{Doc/Sandbox other|
[[Category:Templates]]
[[Category:Templates]]
}}
}}

Latest revision as of 00:48, 27 September 2025

Edit-copy.png
This is a documentation subpage for Template:Useful redirect.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Created to mark redirects that somehow improve the interaction with the wiki.

Usage

This template is usually written in a single line. To use it, insert {{Useful redirect}} into the desired page and specify the parameters to the right of the template name in the following format: {{Useful redirect|parameter 1 = value|parameter 2 = value}}.

Translations

The used strings are on strings subpage. Please follow the format to add translations for them.

Parameters and Examples

Parameter Description Example Preview
No Parameters List generic reasons.
{{Useful redirect}}
This redirect is marked as something valuable, due to any number of reasons, such as:
Creating shortcuts that are easier to type or remember, redirecting users who make common typos when using the search box, entities with different name that works identically such as keyframe_rope/move_rope, avoiding browsers such as Firefox which may load pages that end with / instead of the actual page (Half-Life 2/ instead of Half-Life 2), and/or something else. Please don't delete this redirect if it's still useful.
{{{1}}} Define specific reason.
| Common abbreviation.

| 1 = Common abbreviation.
This redirect is marked as something valuable for the following reason(s):
Common abbreviation.

Components

Below are the subpages that are used by this template for better code readability or something else.

  • strings - Translatable strings and strings to include in the template.