Jump to content

Template talk:Left margin

Page contents not supported in other languages.
Add topic
From Wikisource
Latest comment: 5 years ago by Dick Bos in topic Left margin vs. Left

Issues with Parser?

[edit]

I just wanted to point out a couple issues I've come across while trying to use this template. First, note below that I have five examples of nearly the same code, labeled 1 through 5. Some don't appear. 3 and 4 not only don't appear, but there are no closing div tags so you get nested margins. It seems that the equals sign in defining the parameter of the link is messing with the template. It seems to be a parser bug as the code is completely correct. For now, I'll get around this by using CSS directly. Examples with code are below.

1. French title, without using the template, with a link.

Gatti, sur les Préjugés qui s'opposent au progrès et a la perfection de l'inoculation. p. 88.

2. French title, using the template, but without a link.

Gatti, sur les Préjugés qui s'opposent au progrès et a la perfection de l'inoculation. p. 88.

3. French title, using the template, with a link.

4. One word title, using the template, with a link

Gatti, test. p. 88.

5. French title, using the template, with a link that has the parameter (id=HIggjtyUwKkC) removed.

6.French title, using the template, with a link that has the parameter definition (=HIggjtyUwKkC) removed.

1. French title, without using the template, with a link.

Gatti, [https://books.google.com/books?id=HIggjtyUwKkC sur les Préjugés qui s'opposent au progrès et a la perfection de l'inoculation]. p. 88.

2. French title, using the template, but without a link.

{{Left margin|1em|Gatti, sur les Préjugés qui s'opposent au progrès et a la perfection de l'inoculation. p. 88.}}

3. French title, using the template, with a link.

{{Left margin|1em|Gatti, [https://books.google.com/books?id=HIggjtyUwKkC sur les Préjugés qui s'opposent au progrès et a la perfection de l'inoculation]. p. 88.}}

4. One word title, using the template, with a link

{{Left margin|1em|Gatti, [https://books.google.com/books?id=HIggjtyUwKkC test]. p. 88.}}

5. French title, using the template, with a link that has the parameter (id=HIggjtyUwKkC) removed.

{{Left margin|1em|Gatti, [https://books.google.com/books? sur les Préjugés qui s'opposent au progrès et a la perfection de l'inoculation]. p. 88.}}

6.French title, using the template, with a link that has the parameter definition (=HIggjtyUwKkC) removed.

{{Left margin|1em|Gatti, [https://books.google.com/books?id sur les Préjugés qui s'opposent au progrès et a la perfection de l'inoculation]. p. 88.}}

The Haz talk 19:02, 8 February 2015 (UTC)Reply

Shrink wrapping

[edit]

Does it make sense to add "display: inline-block;" to the style so that the div "shrink-wraps" and then templates like {{center}} will work within the div, rather than across the whole page:

<nowiki>
<div style="margin-left:4em; display: inline-block;">
{{c|Title}}
dsdfsfdsdfsfdfsv sfs fs fssdfsfsf fsdfsdf<br/>
sfsdfsv sfs fs fssdfsfsf fsdfsdf
</div>

Title

dsdfsfdsdfsfdfsv sfs fs fssdfsfsf fsdfsdf
sfsdfsv sfs fs fssdfsfsf fsdfsdf

Currently the title ends up in the middle of the whole page, miles from the contents, unless it's very long. Inductiveloadtalk/contribs 17:39, 20 November 2017 (UTC)Reply

Categories for left margin?

[edit]

@Hesperian: Can you tell me why we have the two tracking categories? Are they still useful for us? — billinghurst sDrewth 21:42, 17 July 2019 (UTC)Reply

G'day mate. No idea, sorry. They were introduced by @ShakespeareFan00 with no edit summary in this diff. Hesperian 00:14, 18 July 2019 (UTC)Reply
These were added as tracking categories so that I had some idea of how many pages needed to be re-examined if the template was updated to have simplified logic, when eliminating Linter flagged concerns. ShakespeareFan00 (talk) 07:54, 18 July 2019 (UTC)Reply

Left margin vs. Left

[edit]

Can anyone please explain the difference between this template Left margin and the Template:Left. And, second question, can this template Left margin be used when the text is spread over more than one page? Thanks, --Dick Bos (talk) 15:05, 30 October 2019 (UTC)Reply