Forgotten Realms Wiki
Advertisement
Forgotten Realms Wiki

The purpose of this template is to return the alternative text of a link, if specified. If the argument is not specified, has no alternate text, or is not a link at all, then it returns the original input.

Examples

{{Alttext}}
{{Alttext|}}
{{Alttext|Testing}}
{{Alttext|Spirit folk}}
{{Alttext|[[Testing]]}}
{{Alttext|[[Spirit folk]]}}
{{Alttext|[[Testing|Alternate text]]}}
{{Alttext|[http://www.wizards.com/dnd/images/wd_maps/FRposterLarge_150.jpg]}}
{{Alttext|[http://www.wizards.com/dnd/images/wd_maps/FRposterLarge_150.jpg Map of Faerûn]}}

Returns the strings between plus signs (+):

++
++
+Testing+
+Spirit folk+
+Testing+
+Spirit folk+
+Alternate text+
+[1]+
+Map of Faerûn+