Template talk:Indent
From Wikisource
[edit] Spacing
Maybe something like this can be used as the default result in the switch if the template is used with other values than 0 - 15:
<span style="margin-left:{{#expr:{{{1|}}}-1}}em;"> </span>
I am not sure if this is correct use of HTML, but the result looks good in the browser I use. --82.212.68.183 09:54, 26 April 2006 (UTC)
- Although that would work, it depends on browsers having CSS support, so it would fail for older or very basic browsers. The current method is more universal because it depends on an HTML entity which is very widely supported. // [admin] Pathoschild (talk/map) 14:12, 26 April 2006 (UTC)
-
- If a browser is old enough to not support CSS, it might not recognize " " either (or the user might not have the character in their font). On my browser here at work, for example (IE5 on Win2K), I see a bunch of boxes (missing characters) instead of whitespace. Surely the nonbreaking space, which more browsers recognize (especially if " " is used), would be preferable to the em-space. - dcljr 19:34, 18 May 2006 (UTC)
-
-
- I'm going to have to agree— for whatever reason, I'm seeing the square characters in place of the em-spaces while using IE6 SP2 and Maxthon. – Quoth 17:36, 15 June 2006 (UTC)
-
-
-
-
- And here at home, my Firefox (1.5.0 for Linux) isn't even showing " " as a space at all: two characters separated by an em-space ( ) are just as close together as two characters with nothing between them ()! (The first pair of parentheses in the previous sentence contains an " ".) Also, multiple nonbreaking spaces in a row are being shown on my browser as being the same width as a single one. This is ridiculous... - dcljr 06:28, 3 July 2006 (UTC)
-
-
- Illustration of some things discussed above, plus some other stuff
- |–| en-dash
- |—| em-dash
- | | regular space
- | | nonbreaking space
- | | em-space
- | | en-space
- | | thin space
- || no space
- | | 2 nonbreaking spaces
- | | 2 em-spaces
- | | regular space followed by nonbreaking space
- |—| em-dash
- |–| en-dash
- dcljr 06:28, 3 July 2006 (UTC)
- The issue is moot at this point. The template existed as a workaround to a problem that existed at the time: wikiML indentation has very odd linespacing, while HTML indentation is ugly and unreadable. Both of these have been corrected by the new <poem> tag. This template should be orphaned and deleted; PoemFormatting should help quite a bit. I'll do so over the next few days. // [admin] Pathoschild (talk/map) 06:39, 3 July 2006 (UTC)
- BTW, I've verified it's not just my browser: a bare-bones HTML page I contructed elsewhere shows multiple nonbreaking spaces as multiple spaces. There's something different about the HTML being generated here by MediaWiki. - dcljr 06:46, 3 July 2006 (UTC)
Nonbreaking spaces are not working on this page below my earlier message. I used pre formatting for my code example. And the pre tags break the :s, in the rendered HTML they are replaced by ordinary spaces. (bugzilla:5569) /82.212.68.183 07:49, 3 July 2006 (UTC)
[edit] Deprecated
The deprecation note has a link to Help:Editing poetry. I assume that means that the poem tag should be used for poetry. But the template is used on pages that does not contain poetry, is that usage also deprecated? Examples of usage is Criminal Code Act 1995 (Australia)/Chapter 1, Gettysburg Address, The Doctrine and Covenants/Section 127 and on many templates. If those pages uses the template incorrectly it can be replaced in different ways:
- In Criminal Code Act 1995 (Australia)/Chapter 1 I don't think that the indentation has to be nonbreaking spaces, colons (:) can be used for indentation.
- In Gettysburg Address only one line is indented and so indentation can easily be done manually.
- In The Doctrine and Covenants/Section 127 it seems that the template is used only to get line brakes, so the br-tag can be used.
- All the templates that use this template use Template:I. Shouldn't that template also be deprecated? (Template names that are so short are not really useful since they does not say anything about their purpose. A longer, more descriptive name (like Template:Indent) is better.)
/81.229.40.182 08:03, 29 August 2006 (UTC)
New indent templates (i2 and i5) has been added to Wikisource. Does that mean that this template is not deprecated any more? /130.237.205.231 12:40, 9 February 2007 (UTC)
- No; those have been deleted. <poem> can be used with any text, although it is primarily intended for poetry. —{admin} Pathoschild 05:27:06, 26 February 2007 (UTC)
[edit] Suggest use of : colon instead of indent template
I'd like to suggest using colon instead of indent template as follows 1 colon= 1 space, 2 colons= 2 spaces, 3 colons= 3 spaces, 4 colons= 4 spaces etc. This is what I'm doing on Criminal Code Act 1995 (Australia) and its sub-pages. Kathleen.wright5 09:24, 13 July 2008 (UTC)
No, using a colon moves the left-margin, rather than providing an indent. These are different things. Check it out:
Colon:
- slaiubg aeilrubh a;rguhawogha goihae rgoiaerh ga;oergj seo;rgj a;ogjia ;rogij ae;rgija er;giojae rg;oaiergj ;aeorigj ae;ogji a;erogija e;rogjia e;rogijae; rgioaje ;giojae; rgoaierg ;oaerigja;eogja e;rogjie aro;gija er;gojiae rg;oerij g;oaerigj a;eroj ae;rogj ae;orgjiae;ogji ae;rogjiae;ogji ae;rogji ae;ori gjaeo;rgji aeo;gj ea;ogji ae;rogjiae;ogi jae;ogji aeo;gjiae;rogjiae;rogijae;rgji ae;ogij aero;gijae giorje rg;oeiaj g;aeorgj e;aro
Indent:
Hesperian 23:27, 29 July 2008 (UTC)