Olivier Teuliere wrote:
>> BTW I think it's {{!}} for bar, not {{|}}.
>
> {{!}} does not seem to work either though (but the html escape code does).

Thanks for the reminder. I got the "use {{!}} for bar" rule from the wiki
documentation and tried it, and noticed the problem you mention, and forgot
about it.

However, I've now fixed the situation. I don't know if what I've done is
optimal - I copied the essence of the official {{!}} from
http://meta.wikimedia.org/wiki/Template:%21 but with my own rearrangement.

See the template and documentation at:
http://vim.wikia.com/wiki/Template:%21

The documentation says to use | to display a bar, but to use {{!}} if
you need a real bar in a template parameter.

For testing (this is what I did), edit any tip, and insert the text below.
Use 'Show Preview' to admire the very simple table that is produced, and
then cancel your edit.

---text for demo of {{!}}---
'''A table using <tt><nowiki>{{!}}</nowiki></tt> for bar.
{{{!}}
{{!}} A {{!}}{{!}} B
{{!}}-
{{!}} C {{!}}{{!}} D
{{!}}}
---end---

In the above, each '{{!}}' represents '|'. This is only necessary within the
'text' parameter of a tip. Using the html escape code here would _display_ a
bar, but you need a real bar to define a table in wikitext.

I still think we should remove the tip body from the Template:Tip parameter,
but I'll have to start a new thread with that suggestion because I don't
think many of us read this much detail:(

John

_______________________________________________
Vim-l mailing list
[email protected]
http://lists.wikia.com/mailman/listinfo/vim-l

Reply via email to