Caves of Qud Wiki:Style Guide: Difference between revisions

m
Add some more information on favilinks.
(→‎Terminology: add note on "indefinite the")
m (Add some more information on favilinks.)
Line 169: Line 169:


===Colored Names===
===Colored Names===
Item names such as [[Stopsvalinn]] have multicolor names in game. For ease of use, call [[Template:Qud text]] instead of manually changing each letter using the Color Template. If referring to an item or character in its page, use [[Template:name]] to automatically make the colored version of the item. If referring to other items and characters with a link, use [[Template:favilink]].
Item names such as [[Stopsvalinn]] have multicolor names in game. For ease of use, call [[Template:Qud text]] instead of manually changing each letter using the Color Template. If referring to an item or character in its page, use [[Template:name]] to automatically make the colored version of the item.
 
If referring to other items and characters with a link, you should use favilinks. There are three favilink templates available:
 
* [[Template:Favilink]] takes the name of an item or mutation and links to it.
* [[Template:Favilink page]] takes the name of a page and links to it.
* [[Template:Favilink id]] is useful when you wish to specifically link to an object by its blueprint ID, a mutation by its mutation ID, and so on.
 
The differences between these favilink types can be relevant when objects or mutations share the same name, for example, the {{favilink id|NightVision}} implant and the {{favilink id|Mutation:DarkVision}} mutation:
 
* <code><nowiki>{{favilink|Night Vision}}</nowiki></code>, <code><nowiki>{{favilink id|NightVision}}</nowiki></code>, and <code><nowiki>{{favilink page|Night Vision (implant)}}</nowiki></code> all point to the {{favilink id|NightVision}} implant.
* <code><nowiki>{{favilink page|Night Vision}}</nowiki></code> and <code><nowiki>{{favilink id|Mutation:DarkVision}}</nowiki></code> both point to the {{favilink id|Mutation:DarkVision}} mutation.


Note that use of favilink should follow [[#Links | the general rules for linking]].
Note that use of favilink should follow [[#Links | the general rules for linking]].