Usor:DeirdreAnne/html

E Wikisource
Jump to navigation Jump to search

HTML is important to proper control of formats. Templates often incorporate deprecated HTML and templates are not easily portable interwiki for users working in multiple subdomains. For example, if a bi-lingual work is transcribed at en.ws and later the non-english pages are to be moved to their proper subdomain, templates may not function. Additionally, works transcribed in two different subdomains may have alternating pages formatted differently do to templates not existing or having different code on the different subdomains. Most importantly, when working in other language subdomains, the template is often difficult to find. The correct template may not exist, may not be interwiki language linked, or may behave differently and average users may not be able to sort out the problem. On the other hand, templates are simple to use and take up a lot less space than html. They make it easier to read a page in edit mode and make coding html and css more intuitive and easier to break into.

I suggest that wherever html can be use reasonably simply, and without dependence on subdomain specific common.css (otherwise the cross-domain portability is lost), it should be used. For this reason, I am collecting below some of the basic codes to use and their variations:

center[recensere]

<div style="text-align:center"> text </div> :not equivalent to {{center}} which contains class="tiInherit" and places the divs on different lines causing padding the centered text vertically.

small caps[recensere]

<div sytle="font-variant:small-caps"> text </div> :generally equivalent to {{smallcaps}} but nesting the div within a template will fail.

horizontal rule[recensere]

a short thick black line: <hr style="margin:auto; background-color:#000; color:#000; width:3em; height:5px">

Superscript[recensere]

Hello<span style="vertical-align:super;font-size:x-small;">to</span> produces: Helloto

Subscript[recensere]

Hello<span style="vertical-align:sub;font-size:x-small;">to</span> produces: Helloto

Italics[recensere]

(for use when there are line breaks such as in a poem, such that ''foo'' is ineffective or inefficient): <div style="font-style:italic">quas interdum consului, maxime de formis nominum, quamquam etiam in illis valde variantur.—In commentario critico, ne inutili onere laboraret, paucas scripturas vel scripturarum correctiones, quas prorsus nullius momenti esse mihi persuasum erat, quamquam diligenter enotatas habeo, consulto omisi.

In orthographia A sequor, si nihil aliud adnotatur. Libelli inscriptionem et capitum. numeros addidi</div>

produces:

quas interdum consului, maxime de formis nominum, quamquam etiam in illis valde variantur.—In commentario critico, ne inutili onere laboraret, paucas scripturas vel scripturarum correctiones, quas prorsus nullius momenti esse mihi persuasum erat, quamquam diligenter enotatas habeo, consulto omisi. In orthographia A sequor, si nihil aliud adnotatur. Libelli inscriptionem et capitum. numeros addidi.

Bold[recensere]

(as for italics) <div style="font-weight:bold">Foo</div>

Foo

References[recensere]

</references>