Difference between revisions of "User:PureMisery/Proposals"
PureMisery (talk | contribs) (Created page with "== Table of contents == <pre> <div style="float:right;"> {|style="margin:0px 0px 5px 10px;" |__TOC__ |} </div> </pre> The abomination above should be replaced with <code><no...") |
PureMisery (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | == | + | {{TOC right}} |
+ | |||
+ | == Improved Template:Languages == | ||
+ | |||
+ | [[User:PureMisery/Test_multilanguage_page|Comparison page]] | ||
+ | |||
+ | [[User:PureMisery/Template:Languages]] | ||
+ | |||
+ | === Pros === | ||
+ | |||
+ | * Improved alignment and margins of the layout. | ||
+ | * Optimized the CSS styles and the HTML output. | ||
+ | * Usage of <code><nowiki><bdi></nowiki></code> tags prevents some hypothetical multilanguage problems. | ||
+ | * Added additional default empty values for parameters. | ||
+ | * Localizated the <code>Language:</code> string. | ||
+ | |||
+ | === Cons === | ||
+ | |||
+ | Additional testing should be performed. | ||
+ | |||
+ | === Remarks === | ||
+ | |||
+ | I don't understand the point of creating external links with <code>uselang</code> 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 <code><nowiki>{{TOC right}}</nowiki></code>. | ||
<pre> | <pre> | ||
Line 8: | Line 36: | ||
</div> | </div> | ||
</pre> | </pre> | ||
− | |||
− | |||
<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]]. | ||
− | + | 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
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.