Caves of Qud Wiki:Style Guide: Difference between revisions

m
Format the night vision (mutation) vs night vision (implant) favilinks as a table to make the Colored Names section of the style guide easier to read. Add some information about prefixing mutations with 'Mutation:' when using the 'favilink id
m (Add some more information on favilinks.)
m (Format the night vision (mutation) vs night vision (implant) favilinks as a table to make the Colored Names section of the style guide easier to read. Add some information about prefixing mutations with 'Mutation:' when using the 'favilink id)
Line 177: Line 177:
* [[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.
* [[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:
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. The table below shows how one might link to one page versus the other:


* <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.
{| class="wikitable"
* <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.
! Page
! Examples
|-
| {{favilink id|NightVision}} (the implant)
|
* <code><nowiki>{{favilink|Night Vision}}</nowiki></code>
* <code><nowiki>{{favilink id|NightVision}}</nowiki></code>
* <code><nowiki>{{favilink page|Night Vision (implant)}}</nowiki></code>
|-
| {{favilink id|Mutation:DarkVision}} (the mutation)
|


Note that use of favilink should follow [[#Links | the general rules for linking]].
* <code><nowiki>{{favilink page|Night Vision}}</nowiki></code>
* <code><nowiki>{{favilink id|Mutation:DarkVision}}</nowiki></code>
|}
 
Note that mutations linked with [[Template:Favilink id]] must be prefixed with <code><nowiki>Mutation:</nowiki></code> to distinguish them from object blueprint IDs.
 
Use of favilink should follow [[#Links | the general rules for linking]].


===Quoting In-Game Descriptions===
===Quoting In-Game Descriptions===