How to display an entry id multiple times?
I would write something like this:

{% set ids = craft.request.param('ids')| split('|') %}
{% for id in ids %}
    {% set entry = craft.entries.id(id).first() %}
    …
{% endfor %}


Alternatively, to reduce the queries, store all the entries in a variable and then loop through ids and find the right match in this smaller set.