Template:K
From Card Hunter Wiki
(Difference between revisions)
| Line 1: | Line 1: | ||
| − | <includeonly>{{#if:{{{2|}}}|[[Keywords | + | <includeonly>{{#if:{{{2|}}}|[[Keywords#{{{1}}}|{{{2}}}]]|[[Keywords#{{{1}}}|{{{1}}}]]}}</includeonly><noinclude> |
---- | ---- | ||
| Line 11: | Line 11: | ||
|- | |- | ||
| align="center" | <code><nowiki>{{K|xxxxxx}}</nowiki></code> | | align="center" | <code><nowiki>{{K|xxxxxx}}</nowiki></code> | ||
| − | | A link to the page 'Keywords | + | | 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}} | ||
|- | |- | ||
| align="center" | <code><nowiki>{{K|xxxxxx|other text}}</nowiki></code> | | align="center" | <code><nowiki>{{K|xxxxxx|other text}}</nowiki></code> | ||
| − | | A link to the page 'Keywords | + | | 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="2" | Important! Capital letters count when making links. {{K|Holy}} is not the same as {{K|holy}}.<br> | ! colspan="2" | Important! Capital letters count when making links. {{K|Holy}} is not the same as {{K|holy}}.<br> | ||
| − | + | |- | |
| + | | colspan="2" align="center" | This template will show a valid link to the [[Keywords]] page even if the subject | ||
| + | heading does not exist. Please check your links are working correctly. | ||
|} | |} | ||
</noinclude> | </noinclude> | ||
Revision as of 11:49, 23 October 2012
Use this template to create inline text links to Keyword pages.
| Use: | Result: |
|---|---|
{{K|xxxxxx}}
|
A link to the page section 'Keywords#xxxxxx' that reads as "xxxxxx"
Example: |
{{K|xxxxxx|other text}}
|
A link to the page section 'Keywords#xxxxxx' that reads as "other text"
Example: |
| Important! Capital letters count when making links. Holy is not the same as holy . | |
| This template will show a valid link to the Keywords page even if the subject
heading does not exist. Please check your links are working correctly. | |