Topic on Project:Village Pump

help : my first template breaks inline text

3
Summary by Wladek92

done; thanks.

Wladek92 (talkcontribs)

Hi this is my first Template:msgtxt concatenating template msg and int. When these are called separately inline result is ok, but when my template is called, indentation is broken and inline is not respected why ? . Example is called on section 1 of Help:Watching_pages :

While viewing a page

The white star (or the link "Watch" in the monobook skin), located at the margin of each page, adds the current page to your watchlist, and turns the star into blue (or in the monobook skin a "Unwatch" link).
The
message with id 'addedwatchtext' (talk) "$1" and its discussion page have been added to your watchlist.
or 

message with id 'removedwatchtext' (talk) "$1" and its discussion page have been removed from your watchlist. , respectively, i

Be indulgent.Thanks

Text before message with id 'addedwatchtext' (talk) "$1" and its discussion page have been added to your watchlist. text between message with id 'addedwatchtext' (talk) "$1" and its discussion page have been added to your watchlist. text after.<= here in this note, the sequence is respected; tag translate problem ?

Christian FR (talk) 13:30, 17 January 2020 (UTC)

Ciencia Al Poder (talkcontribs)

This is caused by extra newlines that you inadvertently added inside the template. I've fixed that.

Wladek92 (talkcontribs)

Great ! so the template skeleton is  :

<noinclude><languages/>
</noinclude>|---here is the active code of the template---|<noinclude>
{{documentation|content= .... }} </noinclude>