Help:Link Templates
m |
(corrections to new Keywords format, and sneaky color trick) |
||
Line 7: | Line 7: | ||
====Table of Link Templates==== | ====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: | ||
− | + | {| style="background: none" class="wikitable" | |
− | + | ! To link to: | |
− | {| class="wikitable" | + | ! Use: |
− | ! | + | ! Result: |
− | ! | + | |
− | ! | + | |
|- | |- | ||
! rowspan="2" | Cards | ! rowspan="2" | Cards | ||
− | | align="center" | <code><nowiki>{{Cards|xxxxxx}}</nowiki></code> | + | | style="background: #f9f9f9" align="center" | <code><nowiki>{{Cards|xxxxxx}}</nowiki></code> |
''or''<br> | ''or''<br> | ||
<code><nowiki>{{C|xxxxxx}}</nowiki></code> | <code><nowiki>{{C|xxxxxx}}</nowiki></code> | ||
− | | A link to the page 'Cards/xxxxxx' that reads as "xxxxxx" | + | | style="background: #f9f9f9" | A link to the page 'Cards/xxxxxx' that reads as "xxxxxx" |
''Example: ''<code><nowiki>{{C|Bash}}</nowiki></code>'' gives ''{{C|Bash}} | ''Example: ''<code><nowiki>{{C|Bash}}</nowiki></code>'' gives ''{{C|Bash}} | ||
|- | |- | ||
− | | align="center" | <code><nowiki>{{Cards|xxxxxx|other text}}</nowiki></code> | + | | style="background: #f9f9f9" align="center" | <code><nowiki>{{Cards|xxxxxx|other text}}</nowiki></code> |
''or''<br> | ''or''<br> | ||
<code><nowiki>{{C|xxxxxx|other text}}</nowiki></code> | <code><nowiki>{{C|xxxxxx|other text}}</nowiki></code> | ||
− | | A link to the page 'Cards/xxxxxx' that reads as "other text" | + | | style="background: #f9f9f9" | A link to the page 'Cards/xxxxxx' that reads as "other text" |
''Example: ''<code><nowiki>{{C|Arcing Zap|strange card}}</nowiki></code>'' gives ''{{C|Arcing Zap|strange card}} | ''Example: ''<code><nowiki>{{C|Arcing Zap|strange card}}</nowiki></code>'' gives ''{{C|Arcing Zap|strange card}} | ||
|- | |- | ||
! rowspan="2" | Items | ! rowspan="2" | Items | ||
− | | align="center" | <code><nowiki>{{Items|xxxxxx}}</nowiki></code> | + | | style="background: #f9f9f9" align="center" | <code><nowiki>{{Items|xxxxxx}}</nowiki></code> |
''or''<br> | ''or''<br> | ||
<code><nowiki>{{I|xxxxxx}}</nowiki></code> | <code><nowiki>{{I|xxxxxx}}</nowiki></code> | ||
− | | A link to the page 'Items/xxxxxx' that reads as "xxxxxx" | + | | style="background: #f9f9f9" | A link to the page 'Items/xxxxxx' that reads as "xxxxxx" |
''Example: ''<code><nowiki>{{I|Cloth Cap}}</nowiki></code>'' gives ''{{I|Cloth Cap}} | ''Example: ''<code><nowiki>{{I|Cloth Cap}}</nowiki></code>'' gives ''{{I|Cloth Cap}} | ||
|- | |- | ||
− | | align="center" | <code><nowiki>{{Items|xxxxxx|other text}}</nowiki></code> | + | | style="background: #f9f9f9" align="center" | <code><nowiki>{{Items|xxxxxx|other text}}</nowiki></code> |
''or''<br> | ''or''<br> | ||
<code><nowiki>{{I|xxxxxx|other text}}</nowiki></code> | <code><nowiki>{{I|xxxxxx|other text}}</nowiki></code> | ||
− | | A link to the page 'Items/xxxxxx' that reads as "other text" | + | | style="background: #f9f9f9" | A link to the page 'Items/xxxxxx' that reads as "other text" |
''Example: ''<code><nowiki>{{I|Copper Axe|sharp!}}</nowiki></code>'' gives ''{{I|Copper Axe|sharp!}} | ''Example: ''<code><nowiki>{{I|Copper Axe|sharp!}}</nowiki></code>'' gives ''{{I|Copper Axe|sharp!}} | ||
|- | |- | ||
! rowspan="2" | Keywords | ! rowspan="2" | Keywords | ||
− | | align="center" | <code><nowiki>{{Keywords|xxxxxx}}</nowiki></code> | + | | style="background: #f9f9f9" align="center" | <code><nowiki>{{Keywords|xxxxxx}}</nowiki></code> |
''or''<br> | ''or''<br> | ||
<code><nowiki>{{K|xxxxxx}}</nowiki></code> | <code><nowiki>{{K|xxxxxx}}</nowiki></code> | ||
− | | A link to the page 'Keywords | + | | 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" | The [[Template:Keywords|Keywords]] and [[Template:K|K]] templates will show a valid link to <br/>the [[Keywords]] page even if the 'xxxxxx' anchor does not <br/>exist. Please check your links are working correctly. | ||
|- | |- | ||
− | | align="center" | <code><nowiki>{{Keywords|xxxxxx|other text}}</nowiki></code> | + | | style="background: #f9f9f9" align="center" | <code><nowiki>{{Keywords|xxxxxx|other text}}</nowiki></code> |
''or''<br> | ''or''<br> | ||
<code><nowiki>{{K|xxxxxx|other text}}</nowiki></code> | <code><nowiki>{{K|xxxxxx|other text}}</nowiki></code> | ||
− | | A link to the page 'Keywords | + | | style="background: #f9f9f9" | A link to the page section 'Keywords#xxxxxx' that reads as "other text" |
''Example: ''<code><nowiki>{{K|Poison|Poison 2}}</nowiki></code>'' gives ''{{K|Poison|Poison 2}} | ''Example: ''<code><nowiki>{{K|Poison|Poison 2}}</nowiki></code>'' gives ''{{K|Poison|Poison 2}} | ||
|- | |- | ||
! colspan="3" | Important! Capital letters count when making links. {{C|Bash}} is not the same as {{C|bash}}.<br> | ! colspan="3" | Important! Capital letters count when making links. {{C|Bash}} is not the same as {{C|bash}}.<br> | ||
− | {{ | + | {{I|Cloth Cap|Cozy headgear}} is not the same as {{I|cloTH caP|Cozy headgear}} (Mouse over to check the link!) |
|} | |} |
Revision as of 12:38, 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!) |