Template:Items

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
(Creating Item link template)
 
 
(6 intermediate revisions by one user not shown)
Line 1: Line 1:
<includeonly>[[Items/{{{1}}}|{{{1}}}]]</includeonly>
+
<includeonly>{{#if:{{{2|}}}|[[Items/{{{1}}}|{{{2}}}]]|[[Items/{{{1}}}|{{{1}}}]]}}</includeonly><noinclude>
  
<noinclude>This is a simple template for easily linking Item pages with less typing.
+
----
  
Adding
 
  
'''<nowiki>{{Itemss|xxxxxx}}</nowiki>'''
+
Use this template to create inline text links to Item pages.
  
on any page creates an internal link for the item 'xxxxxx'.</noinclude>
+
{| class="wikitable"
 +
! Use:
 +
! Result:
 +
|-
 +
| align="center" | <code><nowiki>{{Items|xxxxxx}}</nowiki></code>
 +
| A link to the page 'Items/xxxxxx' that reads as "xxxxxx"
 +
''Example: ''<code><nowiki>{{Items|Cloth Cap}}</nowiki></code>'' gives ''{{Items|Cloth Cap}}
 +
|-
 +
| align="center" | <code><nowiki>{{Items|xxxxxx|other text}}</nowiki></code>
 +
| A link to the page 'Items/xxxxxx' that reads as "other text"
 +
''Example: ''<code><nowiki>{{Items|Spiked Shield|ouch!}}</nowiki></code>'' gives ''{{Items|Spiked Shield|ouch!}}
 +
|-
 +
! colspan="2" | Important! Capital letters count when making links. {{Items|Copper Axe}} is not the same as {{Items|copper axe}}.<br>
 +
{{Items|Cloth Cap|warm head}} is not the same as {{Items|cloTH cap|warm head}} (Mouse over to check the link!)
 +
|}
 +
</noinclude>

Latest revision as of 16:54, 22 October 2012




Use this template to create inline text links to Item pages.

Use: Result:
{{Items|xxxxxx}} A link to the page 'Items/xxxxxx' that reads as "xxxxxx"

Example: {{Items|Cloth Cap}} gives Cloth Cap

{{Items|xxxxxx|other text}} A link to the page 'Items/xxxxxx' that reads as "other text"

Example: {{Items|Spiked Shield|ouch!}} gives ouch!

Important! Capital letters count when making links. Copper Axe is not the same as copper axe.

warm head is not the same as warm head (Mouse over to check the link!)

      
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Tools