Template:A/doc

From ISFDB
Jump to navigation Jump to search

Documentation for Template:A transcluded from Template:A/doc.

Use this template to link to an author's name, almost as easy as just typing the name itself.

Important! Because of the way MediaWiki parses URLs, your author name cannot have any spaces in it! So you can use {{a|Author_Name}}, but not {{a|Author Name}}!

The template now automatically converts spaces to underscores as needed.

An optional name parameter allows the link to be dispalyed with a different text than the author name. So, for example, {{A|Elizabeth Moon}} gives the link Elizabeth Moon, while {{A|Elizabeth Moon|name=Moon}} gives the link: Moon.

Usage

{{A|Jack Vance}}

gives Jack Vance

while

{{A|Jack Vance|name=John Holbrook Vance}}

gives John Holbrook Vance

Special case

If the author's name contains any non-alphanumeric characters, such as ( or ) or ', the normal use of the template will convert these to hex codes, which will not create the correct URL. For this special case, use the special parameter altName, and a version of the name with spaces converted to underscores.

So if the author's cannonical name is "Donald Macpherson (Novelist)", then

{{A|altName=Donald_Macpherson_(Novelist)}}

gives

Donald_Macpherson_(Novelist)


{{A|altName=Donald_Macpherson_(Novelist)|name=Donald Macpherson (Novelist)}}

gives

Donald Macpherson (Novelist)

and

{{A|altName=Donald_Macpherson_(Novelist)|name=Donald Macpherson}}

gives

Donald Macpherson