Difference between revisions of "Template:Lared"
Jump to navigation
Jump to search
imported>Wikid77 (revised doc-page to state 20 versus 40-480 within same template resources.) |
imported>Wikid77 (improved to show page name & span-tag outside {#ifexist}, as shorter & when redlinked) |
||
Line 4: | Line 4: | ||
-=========================================================================== | -=========================================================================== | ||
-- | -- | ||
− | --></noinclude> | + | --></noinclude><span class="plainlinks">[[{{ucfirst:{{{1|Article}}}}}]] <tt>(</tt>{{#ifexist:{{{1|Articleccc}}}|[{{fullurl:{{{1}}}|action=edit}} edit]<tt>|</tt>[[Talk:{{{1}}}|talk]]<tt>|</tt>[{{fullurl:{{{1}}}|action=history}} history]<tt>|</tt>[[Special:Whatlinkshere/{{{1}}}|links]]<!-- <tt>|</tt>[{{fullurl:{{{1}}}|action=watch}} watch]<tt>|</tt>[{{fullurl:Special:Log|page={{urlencode:{{{1}}}}}}} logs]-->|redlink}}<tt>)</tt></span><noinclude> |
− | + | <!-- | |
{{documentation|content= | {{documentation|content= | ||
Line 11: | Line 11: | ||
; Performance considerations | ; 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 1341 bytes, due to invoking [[Template:Lx]]. In comparison, {Lared} has an include size of 724 bytes, or 1.85x 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 | + | 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 1341 bytes, due to invoking [[Template:Lx]]. In comparison, {Lared} has an include size of 724 bytes, or 1.85x 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 28 bytes. 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 20 groups of items, then {Lared} could display over 40-480 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 | ; See also |
Revision as of 14:14, 12 October 2012
Article (redlink)