Difference between revisions of "Template:La/x"

From blackwiki
Jump to navigation Jump to search
imported>Wikid77
(removed rare option "watch" to cut another 20% of {fullurl} usage, now ~63% smaller & 2x faster than {La}; +categ.)
imported>Wikid77
(add top-bar comments; expanded doc-text with "Performance considerations" to note {La/x} is 2.7x almost 3x smaller than {La} for long lists.)
Line 1: Line 1:
<span id="{{anchorencode:{{{1}}}}}"></span><span class="plainlinks">[[{{ucfirst:{{{1|Article}}}}}]] <tt>(</tt>[{{fullurl:{{{1}}}|action=edit}} edit]<tt>&#124;</tt>[[Talk:{{{1}}}|talk]]<tt>&#124;</tt>[{{fullurl:{{{1}}}|action=history}} history]<tt>&#124;</tt>[[Special:Whatlinkshere/{{{1}}}|links]]<!-- <tt>&#124;</tt>[{{fullurl:{{{1}}}|action=watch}} watch]<tt>&#124;</tt>[{{fullurl:Special:Log|page={{urlencode:{{{1}}}}}}} logs]--><tt>)</tt></span><noinclude>
+
<noinclude><!--
 +
-===========================================================================
 +
-  La/x - Show article links as extra-fast, extra-small version of {La}
 +
-===========================================================================
 +
--
 +
--></noinclude><span id="{{anchorencode:{{{1}}}}}"></span><span class="plainlinks">[[{{ucfirst:{{{1|Article}}}}}]] <tt>(</tt>[{{fullurl:{{{1}}}|action=edit}} edit]<tt>&#124;</tt>[[Talk:{{{1}}}|talk]]<tt>&#124;</tt>[{{fullurl:{{{1}}}|action=history}} history]<tt>&#124;</tt>[[Special:Whatlinkshere/{{{1}}}|links]]<!-- <tt>&#124;</tt>[{{fullurl:{{{1}}}|action=watch}} watch]<tt>&#124;</tt>[{{fullurl:Special:Log|page={{urlencode:{{{1}}}}}}} logs]-- ><tt>)</tt></span><noinclude>
 +
<!--
 
{{documentation|content=
 
{{documentation|content=
  
 
The '''[[Template:La/x]]''' provides an extra-fast, extra-small set of links to an article, to be used thousands of times with minimal overhead.
 
The '''[[Template:La/x]]''' provides an extra-fast, extra-small set of links to an article, to be used thousands of times with minimal overhead.
 +
 +
; Performance considerations
 +
The Template:La/x was designed, in October 2012, to be much shorter and faster than [[Template:La]], which had a post-expand include size of 1341 bytes, due to invoking [[Template:Lx]]. In comparison, {La/x} has an include size of 496 bytes, or 2.7x, almost three times smaller by omitting rare options "watch" and "logs". So, {La/x} uses function {fullurl:} only 2 times, compared to {La} using {fullurl:} 5 times. In many cases, the template {La} can be used, but in long lists of article names, then using {La/x} will generate a list that is almost 3 times more compact, more condensed than with template {La}. When {La} can display 50 groups of items, then {La/x} could display 135 similar groups, within the same template resources.
  
 
; See also
 
; See also

Revision as of 05:40, 11 October 2012

Article ([{{fullurl:{{{1}}}|action=edit}} edit]|[[Talk:{{{1}}}|talk]]|[{{fullurl:{{{1}}}|action=history}} history]|[[Special:Whatlinkshere/{{{1}}}|links]]