Help:Link Templates
m |
|||
Line 6: | Line 6: | ||
<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=== | |
− | + | ||
The following table demonstrates how to use Card Hunter Wiki's link templates: | The following table demonstrates how to use Card Hunter Wiki's link templates: | ||
Line 47: | Line 46: | ||
| style="background: #f9f9f9" | A link to the page section 'Keywords#xxxxxx' that reads as "xxxxxx" | | style="background: #f9f9f9" | A link to the page section 'Keywords#xxxxxx' that reads as "xxxxxx" | ||
''Example: ''<code><nowiki>{{K|Holy}}</nowiki></code>'' gives ''{{K|Holy}} | ''Example: ''<code><nowiki>{{K|Holy}}</nowiki></code>'' gives ''{{K|Holy}} | ||
− | | rowspan="2" style="background: #f9f9f9" | | + | | rowspan="2" style="background: #f9f9f9" | [[Template:Keywords]] and [[Template:K]] will show a valid link <br/>to the [[Keywords]] page even if the 'xxxxxx' anchor does not <br/>exist. Please check your links are working correctly. |
|- | |- | ||
| style="background: #f9f9f9" align="center" | <code><nowiki>{{Keywords|xxxxxx|other text}}</nowiki></code> | | style="background: #f9f9f9" align="center" | <code><nowiki>{{Keywords|xxxxxx|other text}}</nowiki></code> |
Revision as of 12:43, 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: |
Template:Keywords and Template:K 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!) |