Template:Look from/doc: Difference between revisions

Content deleted Content added
m Undid revision 470907026 by SIVASAKTHI JOTHIDALAYAM (talk): rv test edit.
duplicate navbox
 
(28 intermediate revisions by 22 users not shown)
Line 1:
{{Documentation subpage}}
{{High-use}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
{{redirect|{{tl|pref}}|the template that links to a tab in your user preferences|Template:Myprefs}}
This template allows editors to easily use [[Special:Prefixindex]], which is a [[Help:Special page|special page]] listing all Wikipedia's pages of a given namespace and beginning with a given prefix.
 
{{tsh|prefix|pref|search from}}
Using this template will generate a link to this special page listing all Wikipedia's articles beginning with the given parameter (or, if no parameter is given, the page of the name on which it is used) and will display the text "All pages beginning with".
Use this template to create a link to a list of all page names which ''begin'' with a given word or words.
 
'''Note:''' Use the template {{tl|in title}} instead if you wish to create a link to a list of all page names which ''contain'' a given word or words.
== Example ==
 
===Usage===
*<code><nowiki>{{</nowiki>Look from|''NAME''|''NAMESPACE''|''TEXT''}}</code>
 
All three parameters are optional.
 
If no parameters are given, the name of the tagged page is used.
 
If there is no second parameter, the [[Wikipedia:main namespace|main namespace]] is used.
 
The third parameter can be used for displaying another text than the default one
 
=== Example ===
{| class="wikitable"
! Case
Line 12 ⟶ 26:
! Result
|-
| withno parameter || {{tlxtnull|Lookfrom|Alan|ImageLook from}} || {{Lookfrom|Alan|Image}}
|-
| with a first parameter || {{tlxtnull|LookfromLook from|Alan}} || {{LookfromLook from|Alan}}
|-
| with a second parameter || {{tlxtnull|LookfromLook from|2{{=}}ImageAlan|File}} || {{LookfromLook from|Alan|2=ImageFile}}
|-
| with a third parameter || {{tnull|Look from|Alan|&#124;all the Alans}} || {{Look from|Alan||all the Alans}}
| no parameter || {{tlx|Lookfrom}} || {{Lookfrom}}
|}
 
{{internal search templates common doc|append=
==See also==
* [[toollabs:dispenser/cgi-bin/redlinks.py|Red link prefix index tool]] (non-wikimedia tool)}}
[[Template:Intitle]] (generates a list of pages with a given word anywhere in their title)<br />
<includeonly>{{sandbox other| |
[[Template:Prefixindex]], a synonym (redirects here).
 
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Disambiguation and redirection templates]]
[[Category:Internal linkSearch templates]]
[[Category:Templates using Toolforge]]}}</includeonly>
<!-- ADD INTERWIKIS BELOW THIS LINE -->
[[es:Plantilla:Lookfrom]]
[[fr:Modèle:Commence par]]
[[it:Template:Voci che iniziano per]]
[[ja:Template:Lookfrom]]
[[mk:Шаблон:Барајод]]
[[pl:Szablon:Nazwy od]]
[[pt:Predefinição:Lookfrom]]
[[ro:Format:Lookfrom]]
</includeonly>