User:Jorge Stolfi/@@

Attempt to write a template for out-of-body references.

Usage:    where NNNNN is a ref-page ID.

Displays as an old-style (in-article) or new-style (out-of-body) reference depending on expands to OLD or NEW.

Currently the old style format is chosen if user opted for the yyyy-mm-ddThh:mm:ss date format in his/her propfile.

Displays as new-style (out-of-body) reference if user opted for any other date format.

Someday the format should be selectable by a specific option or by a button on the page.

Old-style: expands to wikitext  , where
 * XXXXXX is the contents of the page  User:Jorge Stolfi/@@/NNNNN 
 * BBBB are buttons to edit that ref-page and the corresponding short-form page  User:Jorge Stolfi/@@/NNNNN-s 

New-style: expands to wikitext that looks like "♦" but is a wikilink to the ref-page  User:Jorge Stolfi/@@/NNNNN . The hover pop-up of the "♦" displays "Reference NNNNN" or the contents of the corresponding short-form ref-page User:Jorge Stolfi/@@/NNNNN-s  if it exists.