Difference between revisions of "User:PureMisery/Proposals"

From SacredWiki
Jump to navigation Jump to search
 
Line 25: Line 25:
 
I think it would be beneficial to use wikilinks. Internal links don't open new windows, the URLs are prettier and self-links appears as bold text.
 
I think it would be beneficial to use wikilinks. Internal links don't open new windows, the URLs are prettier and self-links appears as bold text.
  
== Table of contents ==
+
== Usage of TOC templates ==
 +
 
 +
The abomination below should be replaced with <code><nowiki>{{TOC right}}</nowiki></code>.
  
 
<pre>
 
<pre>
Line 34: Line 36:
 
</div>
 
</div>
 
</pre>
 
</pre>
 
The abomination above should be replaced with <code><nowiki>{{TOC right}}</nowiki></code>.
 
  
 
<code><nowiki>{{TOCright}}</nowiki></code> is too obsolete and should NOT be used. Thankfully it appears only on [[Special:WhatLinksHere/Template:TOCright|a few standard MediaWiki pages]].
 
<code><nowiki>{{TOCright}}</nowiki></code> is too obsolete and should NOT be used. Thankfully it appears only on [[Special:WhatLinksHere/Template:TOCright|a few standard MediaWiki pages]].
  
P. S. <code><nowiki>__TOC__</nowiki></code> isn't supposed to be placed in a table. Otherwise it get swollen due to the <code>border-spacing</code> table property and the <code>display: table-cell</code> property of the <code>.tocnumber</code>, <code>.toctext</code> classes.
+
By the way, <code><nowiki>__TOC__</nowiki></code> isn't supposed to be placed in a table. Otherwise it get swollen due to the <code>border-spacing</code> table property and the <code>display: table-cell</code> property of the <code>.tocnumber</code>, <code>.toctext</code> classes.

Latest revision as of 14:53, 12 October 2020

Improved Template:Languages

Comparison page

User:PureMisery/Template:Languages

Pros

  • Improved alignment and margins of the layout.
  • Optimized the CSS styles and the HTML output.
  • Usage of <bdi> tags prevents some hypothetical multilanguage problems.
  • Added additional default empty values for parameters.
  • Localizated the Language: string.

Cons

Additional testing should be performed.

Remarks

I don't understand the point of creating external links with uselang property. Since there is not enough localized pages, the mediawiki interface language just keeps changing back and forth to English.

I think it would be beneficial to use wikilinks. Internal links don't open new windows, the URLs are prettier and self-links appears as bold text.

Usage of TOC templates

The abomination below should be replaced with {{TOC right}}.

<div style="float:right;">
{|style="margin:0px 0px 5px 10px;"
|__TOC__
|}
</div>

{{TOCright}} is too obsolete and should NOT be used. Thankfully it appears only on a few standard MediaWiki pages.

By the way, __TOC__ isn't supposed to be placed in a table. Otherwise it get swollen due to the border-spacing table property and the display: table-cell property of the .tocnumber, .toctext classes.