Difference between revisions of "Template:La/x"

From blackwiki
Jump to navigation Jump to search
imported>MusikAnimal
m (Protected "Template:La/x": Highly visible template; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
imported>Jonesey95
m (Fix Linter errors using AutoEd)
Line 4: Line 4:
 
-===========================================================================
 
-===========================================================================
 
--
 
--
--></noinclude><span class="plainlinks">[[{{ucfirst:{{{1|Article}}}}}]] <tt>(</tt>[{{fullurl:{{{1}}}|action=edit}} edit]<tt>&#124;</tt>[[{{TALKPAGENAME:{{{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><span class="plainlinks">[[{{ucfirst:{{{1|Article}}}}}]] <code>(</code>[{{fullurl:{{{1}}}|action=edit}} edit]<code>&#124;</code>[[{{TALKPAGENAME:{{{1}}}}}|talk]]<code>&#124;</code>[{{fullurl:{{{1}}}|action=history}} history]<code>&#124;</code>[[Special:Whatlinkshere/{{{1}}}|links]]<!-- <code>&#124;</code>[{{fullurl:{{{1}}}|action=watch}} watch]<code>&#124;</code>[{{fullurl:Special:Log|page={{urlencode:{{{1}}}}}}} logs]--><code>)</code></span><noinclude>
  
 
{{documentation|content=
 
{{documentation|content=
Line 15: Line 15:
 
; See also
 
; See also
 
* [[Template:La]] - typical template for showing links to an article page
 
* [[Template:La]] - typical template for showing links to an article page
<br>
+
<br />
 
}}
 
}}
  
 
[[Category:Internal link templates]]
 
[[Category:Internal link templates]]
 
</noinclude>
 
</noinclude>

Revision as of 19:09, 8 June 2020

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

Template documentation

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 1410 bytes, due to invoking Template:Lx. In comparison, {La/x} has an include size of 423 bytes, or 3.3x smaller, over three times smaller by omitting the 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 over 3 times more compact, more condensed than with template {La}. When {La} can display 50 groups of items, then {La/x} could display 167 similar groups, within the same template resources. The size limitations of {La} had exceeded the post-expand include size when used hundreds of times in page "WP:Copyright problems" which could not display the final 20-30 days of articles in the backlog list.

See also
  • Template:La - typical template for showing links to an article page