Difference between revisions of "Template:Lared"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
m (Fix Linter errors using AutoEd)
imported>Jonesey95
(Undid revision 961485427 by Jonesey95 (talk). better)
 
Line 4: Line 4:
 
-===========================================================================
 
-===========================================================================
 
--
 
--
--></noinclude><span class="plainlinks">[[{{ucfirst:{{{1|Article}}}}}]] <code>(</code>{{#ifexist:{{{1|Article}}}|[{{fullurl:{{{1}}}|action=edit}} edit]<code>&#124;</code>[[Talk:{{{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]-->|redlink}}<code>)</code></span><noinclude>
+
--></noinclude><span class="plainlinks">[[{{ucfirst:{{{1|Article}}}}}]] <span style="font-family: monospace, monospace;">(</span>{{#ifexist:{{{1|Article}}}|[{{fullurl:{{{1}}}|action=edit}} edit]<span style="font-family: monospace, monospace;">&#124;</span>[[Talk:{{{1}}}|talk]]<span style="font-family: monospace, monospace;">&#124;</span>[{{fullurl:{{{1}}}|action=history}} history]<span style="font-family: monospace, monospace;">&#124;</span>[[Special:Whatlinkshere/{{{1}}}|links]]<!-- <span style="font-family: monospace, monospace;">&#124;</span>[{{fullurl:{{{1}}}|action=watch}} watch]<span style="font-family: monospace, monospace;">&#124;</span>[{{fullurl:Special:Log|page={{urlencode:{{{1}}}}}}} logs]-->|redlink}}<span style="font-family: monospace, monospace;">)</span></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:Pagelinks templates]]
 
[[Category:Pagelinks templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:13, 8 June 2020

Article (redlink)

Template documentation

The Template:Lared provides a link-menu, auto-hidden for a redlinked article, to show an extra-small set of links to an article, to be used up to 500 times per page.

Performance considerations

The Template:Lared 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, {Lared} has an include size of 660 bytes, or 2.1x smaller, almost two times smaller by omitting the rare options "watch" and "logs". So, {Lared} uses function {fullurl:} only 2 times, compared to {La} using {fullurl:} 5 times. When the article page does not exist, then {Lared} shows "(redlink)" with just 85 bytes (or 71 + 2 × name length). In many cases, the template {La} can be used, but in long lists of article names, then using {Lared} will generate a list that is over 2x times more compact, more condensed than with template {La}. When {La} can display 30 groups of items, then {Lared} could display over 60-495 similar groups, within the same template resources. However, {Lared} is limited to 500 total instances per page. 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