User:PureMisery/Proposals

From SacredWiki
< User:PureMisery
Revision as of 10:53, 12 October 2020 by PureMisery (talk | contribs) (→‎Table of contents)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.