Difference between revisions of "Template:Look from/doc"

From blackwiki
Jump to navigation Jump to search
imported>16@r
m (+fr)
imported>16@r
(full rewrite)
Line 2: Line 2:
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
  
{{tl|{{PAGENAME}}}} ''explain what this template does; use it in a sentence''  
+
This template allows 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.
  
== Usage ==
+
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".
''Abstract usage of the template, one variable per row.''
 
<pre>
 
{{Lookfrom
 
  |variable1=data #REQUIRED
 
}}
 
</pre>
 
(Further params are ignored.)
 
<!-- explain what this template's parameters do -- if no params, delete the definition -->
 
  
 
== Example ==
 
== Example ==
 
{| class="wikitable"
 
{| class="wikitable"
 +
! Case
 
! Code
 
! Code
 
! Result
 
! Result
|- style="vertical-align:top;"
+
|-
| <pre>
+
| with parameter || <code><nowiki>{{Lookfrom|Alan}}</nowiki></code> || {{Lookfrom|Alan}}
{{Lookfrom|Pr}}
+
|-
</pre>
+
| no parameter  || <code><nowiki>{{Lookfrom}}</nowiki></code> || {{Lookfrom}}
||{{Lookfrom|Pr}}
 
 
|}
 
|}
<!-- customize if needed to illustrate parameter use -->
 
 
== See also ==
 
* <!-- links to similar of linked templates -->
 
  
 
  <includeonly>
 
  <includeonly>

Revision as of 18:18, 13 February 2008

Template:Template doc page viewed directly

This template allows to easily use Special:Prefixindex, which is a special page listing all Wikipedia's pages of a given namespace and beginning with a given prefix.

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".

Example

Case Code Result
with parameter {{Lookfrom|Alan}} All pages with titles beginning with Alan
no parameter {{Lookfrom}} All pages with titles beginning with Template:Look from/doc