Help:Link Templates
(corrections to new Keywords format, and sneaky color trick) |
m |
||
Line 5: | Line 5: | ||
<br><code><nowiki>{{I|Spiked Shield}}</nowiki></code> | <br><code><nowiki>{{I|Spiked Shield}}</nowiki></code> | ||
<br>Both options have the result {{I|Spiked Shield}}. Which one do you think is faster? | <br>Both options have the result {{I|Spiked Shield}}. Which one do you think is faster? | ||
+ | |||
====Table of Link Templates==== | ====Table of Link Templates==== |
Revision as of 12:39, 23 October 2012
You can use templates to create inline text links to common types of pages. In most cases, it's a lot less typing!
For instance to link to the page for Spiked Shield, I could type
[[Items/Spiked Shield|Spiked Shield]]
or I could type
{{I|Spiked Shield}}
Both options have the result Spiked Shield. Which one do you think is faster?
Table of Link Templates
The following table demonstrates how to use Card Hunter Wiki's link templates:
To link to: | Use: | Result: | |
---|---|---|---|
Cards | {{Cards|xxxxxx}}
or |
A link to the page 'Cards/xxxxxx' that reads as "xxxxxx"
Example: | |
{{Cards|xxxxxx|other text}}
or |
A link to the page 'Cards/xxxxxx' that reads as "other text"
Example: | ||
Items | {{Items|xxxxxx}}
or |
A link to the page 'Items/xxxxxx' that reads as "xxxxxx"
Example: | |
{{Items|xxxxxx|other text}}
or |
A link to the page 'Items/xxxxxx' that reads as "other text"
Example: | ||
Keywords | {{Keywords|xxxxxx}}
or |
A link to the page section 'Keywords#xxxxxx' that reads as "xxxxxx"
Example: |
The Keywords and K templates will show a valid link to the Keywords page even if the 'xxxxxx' anchor does not exist. Please check your links are working correctly. |
{{Keywords|xxxxxx|other text}}
or |
A link to the page section 'Keywords#xxxxxx' that reads as "other text"
Example: | ||
Important! Capital letters count when making links. Bash is not the same as bash. Cozy headgear is not the same as Cozy headgear (Mouse over to check the link!) |