Difference between revisions of "Template:Adminbars/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>MSGJ
(fix)
blackwiki>MSGJ
(bit simpler now)
Line 7: Line 7:
 
==Instructions==
 
==Instructions==
 
To create your own graph, follow these instructions:<br>
 
To create your own graph, follow these instructions:<br>
1. If you haven't already, create an admin stats subpage of the {{tlx|adminstats}} template for yourself. You can do this by adding {{tlx|adminstats|YOUR USERNAME}} to your userpage.</br>
+
1. Add {{tlx|adminstats|YOUR USERNAME|style=bars}} to your userpage.</br>
2. Wait for a bot to fill in your adminstats; it will create a page called [[Template:Adminstats/YOUR USERNAME]]. The page will look something like this:
+
2. Wait for a bot to fill in your adminstats.
<pre>{{Adminstats/Core
 
|edits=35175
 
|ed=36603
 
|created=2
 
|deleted=491
 
|restored=17
 
|blocked=79
 
|protected=45
 
|unprotected=3
 
|rights=1
 
|reblock=13
 
|modify=5
 
|style={{{style|}}}}}</pre>
 
3. Create a subpage of ''this'' template. The page title should be [[Template:adminbars/YOUR USERNAME]].</br>
 
4. In that subpage, paste the contents of your Template:Adminstats subpage. Replace the first line with <code><nowiki>{{adminbars/core</nowiki></code> and replace the last line with <code><nowiki>|user={{SUBPAGENAME}}}}</nowiki></code>. It should look like this:
 
<pre>{{adminbars/core
 
|edits=35175
 
|ed=36603
 
|created=2
 
|deleted=491
 
|restored=17
 
|blocked=79
 
|protected=45
 
|unprotected=3
 
|rights=1
 
|reblock=13
 
|modify=5
 
|user={{SUBPAGENAME}}}}</pre>
 
5. Save the page. You may now transclude that page to other pages (such as your userpage) by adding <code><nowiki>{{adminbars/YOUR USERNAME}}</nowiki></code>
 
  
 
===Optional parameters===
 
===Optional parameters===

Revision as of 15:12, 20 October 2011

This template by itself doesn't do anything. The core of this template is {{adminbars/core}}. Each user's version of it is made with {{adminbars/USER}}. It produces output like this:

Template:Adminbars/Rjanag

Instructions

To create your own graph, follow these instructions:
1. Add {{adminstats|YOUR USERNAME}} to your userpage.
2. Wait for a bot to fill in your adminstats.

Optional parameters

  • |width=: You may add |width= in the template (step 4) to specify the width at which your chart displays when it is transcluded. The default is 33em (1/3 of the page width). You may specify a width in em or px; if you want there to be no width specification, use |width=auto (in which case the chart will stretch to fill the width of the page).


See also