Template:K
From Card Hunter Wiki
(Difference between revisions)
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{#switch: {{lc: {{{1}}} }} | {{#switch: {{lc: {{{1}}} }} | ||
| − | | melee = | + | | melee = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | projectile = | + | | projectile = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | magic = | + | | magic = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | acid = | + | | acid = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | arcane = | + | | arcane = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | cold = | + | | cold = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | crushing = | + | | crushing = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | electrical = | + | | electrical = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | fire = | + | | fire = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | holy = | + | | holy = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | piercing = | + | | piercing = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | slashing = | + | | slashing = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | sonic = | + | | sonic = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | unholy = | + | | unholy = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }} |
| − | | #default = {{#if:{{{2|}}}|[[Keywords#{{{1}}}|{{{2}}}]]|[[Keywords#{{{1}}}|{{{1}}}]]}} | + | | #default = {{#if:{{{2|}}}|[[Keywords#{{{1}}}|{{{2}}}]] | [[Keywords#{{{1}}}|{{{1}}}]] }} |
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
---- | ---- | ||
Revision as of 02:52, 18 January 2013
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: |
| This template will show a valid link to the Keywords page even if the 'xxxxxx'
anchor does not exist. Please check your links are working correctly. | |