Template:Lengthlink
Usage
The template {{lengthlink | title | class | length}} is used on WikiProject pages in order to enhance links to articles with an indication of the article's length. The template accepts three parameters, which are positional (not named parameters). The parameters are:
- title - the title of the page to link to
- class - an integer number between 0 and 10 (inclusive), used for the little bar graph shown next to the link
- length - the length of the page, number of characters. This is displayed in the link title which most browsers show on mouse-over.
A useful value for the class can be computed using the formula int(log($length/50.0)/log(2.0)), which gives the following intervals:
Class Length0 0..99 characters
1 100..199 characters
2 200..399 characters
3 400..799 characters
4 800..1599 characters
5 1600..3199 characters
6 3200..6399 characters
7 6400..12799 characters
8 12800..25599 characters
9 25600..51199 characters
10 51200 characters or more
Example: The page Dan Andersson is 4962 characters long and falls in size class 6.
The template is used thus: {{ lengthlink | Dan Andersson | 6 | 4962 }}
This will be displayed like this:
Dan Andersson
If you mouse-over the bar graph, a text is shown that explains the exact length.
BUGS: Length is not the same as quality. But since we don't know how to compute the quality of an article, the length can be a useful indicator in some situations. This template does not allow alternative link text (as in [[link | text]].
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.