Difference between revisions of "Template:Hatnote templates documentation"

From blackwiki
Jump to navigation Jump to search
test>Persian Poet Gal
m (Reverted 1 edit by 71.103.99.231 identified as vandalism to last revision by ReyBrujo. using TW)
Line 11: Line 11:
 
----
 
----
 
---><div class="messagebox" style="padding:1em;"><div style="float: right; padding: 0 1em;">{{tnavbar|otheruses templates}}</div>
 
---><div class="messagebox" style="padding:1em;"><div style="float: right; padding: 0 1em;">{{tnavbar|otheruses templates}}</div>
== Otheruses templates ==
 
To discuss these templates as a whole, please see [[Wikipedia talk:Disambiguation]]  If you wish to discuss general wordings, rather than the wording or formatting of this specific template, don't post here, or else what you say will probably go unnoticed.
 
 
For a summary page on how to use these templates, see [[Wikipedia:Otheruses templates (example usage)]].
 
 
=== Generic ===
 
* <code>{{[[Template:Dablink|Dablink]]|TEXT}}</code>: {{dablink|TEXT}}
 
::For example, <nowiki>{{dablink|For other senses of this term, see [[etc...]]}}</nowiki>. This template is adaptable, but fails to standardize [[Wikipedia:hatnotes|hatnotes]].
 
*<code>{{[[Template:Selfref|Selfref]]|TEXT}}</code>: {{Selfref|TEXT}}
 
::(Similar to [[Template:Dablink|Dablink]], but used for messages that wouldn't make sense on mirrors of Wikipedia, such as a link in the main article namespace that links to one in the Wikipedia namespace. ''See [[Wikipedia:Avoid self-references]] for more details''.)
 
 
=== Otheruses ===
 
''Note: All of these templates are special cases of {{[[Template:Otheruses4|Otheruses4]]}}''
 
* <code>{{[[Template:Otheruses|otheruses]]}}</code> (disambiguous): {{otheruses}}
 
* <code>{{[[Template:Otheruses1|otheruses1]]|USE}}</code> (disambiguous): {{otheruses1|USE}}
 
* <code>{{[[Template:This|This]]|USE|PAGE}}</code>: {{this|USE|PAGE}}
 
* <code>{{[[Template:Otheruses2|otheruses2]]|PAGE}}</code> (disambiguous): {{otheruses2|PAGE}}
 
* <code>{{[[Template:Otheruses3|otheruses3]]|PAGE}}</code>: {{otheruses3|PAGE}}
 
* <code>{{[[Template:Otheruses4|otheruses4]]|USE1}}</code> (disambiguous): {{otheruses4|USE1}}
 
* <code>{{[[Template:Otheruses4|otheruses4]]|USE1|USE2}}</code>: {{otheruses4|USE1|USE2}}
 
* <code>{{[[Template:Otheruses4|otheruses4]]|USE1|USE2|PAGE2}}</code>: {{otheruses4|USE1|USE2|PAGE2}}
 
* <code>{{[[Template:About|About]]||USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}} </code> (alias and empty first param):
 
:{{About||USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}}
 
* <code>{{[[Template:otheruses4|otheruses4]]|USE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}} </code> (fully specified):
 
:{{otheruses4|USE1|USE2|PAGE2|USE3|PAGE3|USE4|PAGE4|USE5|PAGE5}}
 
* <code>{{[[Template:Otheruses5|otheruses5]]}}</code>: {{otheruses5}} (this is for when there are both a singular and plural disambiguation page; only works when the plural is formed simply by adding "s" at the end.)
 
* <code>{{[[Template:Otheruses6|otheruses6]]|PAGE1|PAGE2}}</code>: {{otheruses6|PAGE1|PAGE2}} (for when there are two disambiguation pages, such as noun and adjective, or singular and irregular plural; there are only two parameters, at least one is required)
 
 
==== Other people ====
 
* <code>{{[[Template:Otherpersons|otherpersons]]}}</code> (disambiguous): {{Otherpersons}}
 
* <code>{{[[Template:Otherpersons|otherpersons]]|USE}}</code> (disambiguous): {{Otherpersons|USE}}
 
* <code>{{[[Template:Otherpersons|otherpersons]]|USE|PAGE}}</code>: {{Otherpersons|USE|PAGE}}
 
* <code>{{[[Template:Otherpeople2|otherpeople2]]|PAGE}}</code>: {{Otherpeople2|PAGE}}
 
* <code>{{[[Template:Otherpeople3|otherpeople3]]|USE1|USE2}}</code>: {{Otherpeople3|USE1|USE2}}
 
* <code>{{[[Template:Otherpeople4|otherpeople4]]|USE1|USE2|PAGE}}</code>: {{Otherpeople4|USE1|USE2|PAGE}}
 
 
==== Other places ====
 
*{{tl|Otherplaces}}, analogous to {{tl|Otheruses}}
 
{{Otherplaces}}
 
*{{tl|Otherplaces2}}, analogous to {{tl|Otheruses2}}
 
{{Otherplaces2|DifferentArticleName}}
 
*{{tl|Otherplaces3}}, analogous to {{tl|Otheruses3}}
 
{{Otherplaces3|DifferentArticleName}}
 
 
==== Otherhurricaneuses ====
 
: For articles on [[storm]]s.
 
* <code>{{[[Template:Otherhurricaneuses|otherhurricaneuses]]}}</code> (disambiguous): {{Otherhurricaneuses}}
 
* <code>{{[[Template:Otherhurricaneuses|otherhurricaneuses]]|DISAMBIG}}</code>: {{Otherhurricaneuses|DISAMBIG}}
 
* <code>{{[[Template:Otherhurricaneuses|otherhurricaneuses]]|DISAMBIG|THIS}}</code>: {{Otherhurricaneuses|DISAMBIG|THIS}}
 
* <code>{{[[Template:Otherhurricaneuses3|otherhurricaneuses3]]|USE1|USE2|MAIN}}</code>: {{Otherhurricaneuses3|USE1|USE2|MAIN}}
 
 
=== For (other topic) ===
 
Note: {{tl|otheruses4}} ({{tl|about}} is a convenient redirect) can often be used instead of {{tl|for}}; you just have to add an empty first parameter (e.g. <code>{{[[Template:For|For]]|OTHER TOPIC|PAGE}}</code> becomes <code>{{[[Template:About|About]]||OTHER TOPIC|PAGE}}</code>
 
* <code>{{[[Template:For|For]]}}</code> (disambiguous): {{for}}
 
* <code>{{[[Template:For|For]]|OTHER TOPIC}}</code> (disambiguous): {{for|OTHER TOPIC}}
 
* <code>{{[[Template:For|For]]|OTHER TOPIC|PAGE}}</code>: {{for|OTHER TOPIC|PAGE}}
 
* <code>{{[[Template:For|For]]|OTHER TOPIC|PAGE1|PAGE2}}</code>: {{for|OTHER TOPIC|PAGE1|PAGE2}}
 
* <code>{{[[Template:For2|For2]]|OTHER TOPIC|<nowiki>LINK TO [[PAGE1]] AND [[PAGE2]]</nowiki>}}</code>: {{for2|OTHER TOPIC|LINK TO [[PAGE1]] AND [[PAGE2]]}}
 
 
==== Otherusesof (topic) ====
 
* <code>{{[[Template:Otherusesof|otherusesof]]}} (disambiguous)</code>: {{otherusesof}}
 
* <code>{{[[Template:Otherusesof|otherusesof]]|TOPIC}}</code>: {{otherusesof|TOPIC}}
 
* <code>{{[[Template:Otherusesof|otherusesof]]|TOPIC|PAGE}}</code>: {{otherusesof|TOPIC|PAGE}}
 
 
=== Redirect ===
 
 
 
* <code>{{[[Template:Redirectstohere|Redirectstohere]]|REDIRECT notice}}</code> (To Document dependent link[s], Template also has a hidden mode, (Set "|hide=true") which enables it to document a section title is a redirect page target section, and so should not be changed.); Some examples: {{1}}{{Redirectstohere|REDIRECT}}, {{1}}{{Redirectstohere|REDIRECT|Another name|A Foreign name}} {{1}}&mdash; with a little care, bolding the titled redirects can substitute for awkward phrases involving multiple name forms of the main article title; particularly those of  the "also known as varieties"...{{1}}{{Redirectstohere|'''Gustavus II Adolf'''|'''Gustav Adolphus II'''|'''Gustavus Vasa II of Sweden'''}}{{2}}
 
* <code>{{[[Template:Redirect|Redirect]]|REDIRECT}}</code> (disambiguous): {{Redirect|REDIRECT}}
 
* <code>{{[[Template:Redirect|Redirect]]|REDIRECT||PAGE}}</code>: {{Redirect|REDIRECT||PAGE}}
 
* <code>{{[[Template:Redirect|Redirect]]|REDIRECT|USE|PAGE}}</code>: {{Redirect|REDIRECT|USE|PAGE}}
 
* <code>{{[[Template:Redirect2|Redirect2]]|REDIRECT1|REDIRECT2}}</code> (disambiguous): {{Redirect2|REDIRECT1|REDIRECT2}}
 
* <code>{{[[Template:Redirect3|Redirect3]]|REDIRECT|TEXT}}</code>: {{Redirect3|REDIRECT|TEXT}}
 
* <code>{{[[Template:Redirect4|Redirect4]]|REDIRECT1|REDIRECT2}}</code> (disambiguous): {{Redirect4|REDIRECT1|REDIRECT2}}
 
* <code>{{[[Template:Redirect6|Redirect6]]|REDIRECT|USE1|PAGE1|USE2|PAGE2}}</code>: {{Redirect6|REDIRECT|USE1|PAGE1|USE2|PAGE2}}
 
* <code>{{[[Template:Redirect6|Redirect6]]|REDIRECT|USE1|PAGE1||}}</code>
 
{{Redirect6|REDIRECT|USE1|PAGE1||}}
 
 
=== "Not to be confused with"... ===
 
* <code>{{[[Template:Distinguish|Distinguish]]|PAGE}}</code>: {{Distinguish|PAGE}}
 
* <code>{{[[Template:Distinguish2|Distinguish2]]|TEXT}}</code>: {{Distinguish2|TEXT}}
 
 
=== Notes ===
 
'''Do not use [[Wikipedia:Template substitution|subst:]] with these templates''', as that will prevent:
 
#propagating changes as the template is modified; and
 
#the ''[[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|What links here]]'' (WLH) listing.
 
 
 
'''DO NOT EDIT THESE TEMPLATES UNLESS YOU KNOW WHAT YOU ARE DOING'''
 
 
These templates may be used in thousands of articles, and changing the syntax could therefore break thousands of articles.  If you wish to edit a disambiguation template first ask yourself:
 
# Is there already another template that will do this job?  We have lots of disambiguation templates already, see [[:Category:Disambiguation and redirection templates]].
 
# Do I really need a template for this?  Will it ever get used on any other articles, or should I just use {{tl|dablink}} instead?
 
# Do I know what will happen if I change the parameters around?  Will it break existing uses of the template, and if so, can I fix them all?
 
<div style="text-align: right"><small>(This box appears in [[Special:Whatlinkshere/Template:Otheruses templates|several articles in Template talk and Wikipedia namespaces]].)</small></div>
 
</div><includeonly></includeonly><noinclude>
 
<!-- Only transcluded documentation belongs here. -->
 
{{clear}}{{{{FULLPAGENAME}}/doc}}
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 

Revision as of 00:53, 1 April 2008

Edit-paste.svg
This is template documentation box for all of the Otheruses templates.

Such templates are not necessarily intended to be viewed directly. If they use variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.