User:Chzz/pipebug
per [1]
If you fail to put <nowiki> tags around a pipe symbol (|), the page can display differently in 'preview' to the saved page.
For example;
=== test one === I manually edited all the articles using the template, changing e.g.; |visitor coach=Fred |home coach=Bob to; |visitor coach=[[Fred]] |home coach=[[Bob]] The template code needs a lot more work; to behave itself, it should also do a check to see if the home/away coaches have actually been specified at all --end of test--
gives this;
test one
[edit]I manually edited all the articles using the template, changing e.g.;
|visitor coach=Fred
|home coach=Bob
to;
|visitor coach=[[Fred]]
|home coach=[[Bob]]
The template code needs a lot more work; to behave itself, it should also do a check to see if the home/away coaches have actually been specified at all
--end of test--
The above displays OK in preview, but when saved, the lines wrap.
Note that correct use of <nowiki> fixes the problem;
For example;
=== test two === I manually edited all the articles using the template, changing e.g.; <nowiki>|</nowiki>visitor coach=Fred <nowiki>|</nowiki>home coach=Bob to; <nowiki>|</nowiki>visitor coach=[[Fred]] <nowiki>|</nowiki>home coach=[[Bob]] The template code needs a lot more work; to behave itself, it should also do a check to see if the home/away coaches have actually been specified at all --end of test--
gives this;
test two
[edit]I manually edited all the articles using the template, changing e.g.;
|visitor coach=Fred
|home coach=Bob
to;
|visitor coach=[[Fred]]
|home coach=[[Bob]]
The template code needs a lot more work; to behave itself, it should also do a check to see if the home/away coaches have actually been specified at all
--end of test--
The above does show up the same in preview as when saved.