Template:Ifarchive index

From IFWiki

Link to a directory index at the IF Archive. (See also Template:ifarchive index link for a bare link, and Template:ifarchive to link directly to a file.)

This:

* {{ifarchive index|books}}

produces:

The optional second parameter allows linking directly to the index entry for a specific file within a directory listing. In this case, the main (directory) argument should end in a slash.

* {{ifarchive index|games/glulx/|sensory.blb}}

produces:

Special case: the fragment ID in the second parameter is almost always simply the filename, but unusual characters in filenames, such as spaces and certain punctuation, can lead to differences. In this case:

  • You can use the fileoverride parameter to set the display filename;
  • The escaping system used in this case uses equals signs =, which you'll need to write as {{=}} in the second parameter, to avoid ambiguity with template syntax.
* {{ifarchive index|games/zcode/|Apollo18{{=}}2B{{=}}20.zip|fileoverride=Apollo18+20.zip}}

produces: