Template:K

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
 
(45 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{2|}}}|[[Keywords/{{{1}}}|{{{2}}}]]|[[Keywords/{{{1}}}|{{{1}}}]]}}</includeonly><noinclude>
+
<includeonly>{{#switch: {{lc: {{{1}}} }}
 
+
| melee = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| projectile = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| magic = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| acid = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| arcane = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| cold = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| crushing = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| electrical = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| fire = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| holy = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| piercing = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| psychic = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| slashing = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| sonic = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| unholy = {{#if:{{{2|}}}|{{T|{{{1}}}|{{{2}}} }}|{{T|{{{1}}} }} }}
 +
| #default = {{#if:{{{2|}}}|[[Keywords#{{{1}}}|{{{2}}}]]|[[Keywords#{{{1}}}|{{{1}}}]]}}
 +
}}</includeonly><noinclude>
 
----
 
----
  
Line 7: Line 23:
  
 
{| class="wikitable"
 
{| class="wikitable"
! style="width: 40%" | Use:
+
! Use:
! style="width: 60%" | Result:
+
! Result:
 
|-
 
|-
| align="center" | <code><nowiki>{{Keywords|xxxxxx}}</nowiki></code>
+
| align="center" | <code><nowiki>{{K|xxxxxx}}</nowiki></code>
''or''<br>
+
| A link to the page section 'Keywords#xxxxxx' that reads as "xxxxxx"
<code><nowiki>{{K|xxxxxx}}</nowiki></code>
+
''Example: ''<code><nowiki>{{K|Cantrip}}</nowiki></code>'' gives ''{{K|Cantrip}}
| A link to the page 'Keywords/xxxxxx' that reads as "xxxxxx"
+
''Example: ''<code><nowiki>{{K|Holy}}</nowiki></code>'' gives ''{{K|Holy}}
+
 
|-
 
|-
| align="center" | <code><nowiki>{{Keywords|xxxxxx|other text}}</nowiki></code>
+
| align="center" | <code><nowiki>{{K|xxxxxx|other text}}</nowiki></code>
''or''<br>
+
| A link to the page section 'Keywords#xxxxxx' that reads as "other text"
<code><nowiki>{{K|xxxxxx|other text}}</nowiki></code>
+
''Example: ''<code><nowiki>{{K|Step|Step 2}}</nowiki></code>'' gives ''{{K|Step|Step 2}}
| A link to the page 'Keywords/xxxxxx' that reads as "other text"
+
''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" align="center" | This template will show a valid link to the [[Keywords]] page even if the 'xxxxxx'
{{K|Teleport|Teleport 3}} is not the same as {{K|teLEPorT|Teleport 3}} (Mouse over to check the link!)
+
anchor does not exist. Please check your links are working correctly.
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Latest revision as of 20:10, 14 February 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|Cantrip}} gives Cantrip

{{K|xxxxxx|other text}} A link to the page section 'Keywords#xxxxxx' that reads as "other text"

Example: {{K|Step|Step 2}} gives Step 2

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.

      
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Tools