User:Chzz/pipebug

per

If you fail to put 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
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 fixes the problem;

For example;

test two
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 two
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.

 Chzz  ►  17:26, 26 April 2009 (UTC)