Difference between revisions of "Template:Bot/doc"

From blackwiki
Jump to navigation Jump to search
imported>Dispenser
m (Copied from Talk page)
imported>Dispenser
(Updated documentation)
Line 6: Line 6:
 
<!-- explain what this template does; use it in a sentence -->
 
<!-- explain what this template does; use it in a sentence -->
  
== Usage ==
+
== Parameters ==
<!-- Abstract usage of the template -->
+
; 1 : The first unnamed parameter specifies the operator of the bot.
&#123;&#123;{{PAGENAME}}|Username}}&#125;&#125;
+
; site : The two letter code for those operators that do not have an account on the English language Wikipedia.
&#123;&#123;{{PAGENAME}}|full=text}}&#125;&#125; &mdash; if for example username isn't on the english wikipedia
 
  
 
== Example ==
 
== Example ==
 
<!-- for the documentation don't subst the result -->
 
<!-- for the documentation don't subst the result -->
 
{| {{easytable}}
 
{| {{easytable}}
| '''Code'''
+
! Code  
| '''Result'''
+
! Result  
 
|-
 
|-
| valign="top" | {{tlp|{{PAGENAME}}|Pearle}}||
+
| valign="top" | <code>{{tlp|{{PAGENAME}}|John Smith}}</code>
{{msg:{{PAGENAME}}|Pearle}}
+
|
 +
{{msg:{{BASEPAGENAME}}|John Smith}}
 
|-
 
|-
| valign="top" | {{tlp|{{PAGENAME}}|<nowiki>full=[[User:Pearle]]</nowiki>}}||
+
| valign="top" | <code>{{tlp|{{PAGENAME}}|<nowiki>John Smith|site=en</nowiki>}}</code>
{{msg:{{PAGENAME}}|full=[[User:Pearle]]}}
+
|
 +
{{msg:{{BASEPAGENAME}}|John Smith|site=en}}
 
|}
 
|}
 
== See also ==
 
<!-- self-listing for quick access on edit history -->
 
 
* {{Lts|{{PAGENAME}}}}
 
* <!-- links to simlar of linked templates -->
 
 
  
 
<includeonly>
 
<includeonly>

Revision as of 15:35, 17 May 2007

Template:Template doc page viewed directly

{{bot/doc}} — An information box indication a user as a bot


Parameters

The first unnamed parameter specifies the operator of the bot.
site 
The two letter code for those operators that do not have an account on the English language Wikipedia.

Example

Code Result
{{Bot/doc|John Smith}}
{{Bot/doc|John Smith|site=en}}