Template:Keywords

From Card Hunter Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
 
(15 intermediate revisions by one user not shown)
Line 1: Line 1:
<noinclude>WARNING! This template is undegoing modification and testing. --[[User:Mightymushroom|mightymushroom]] ([[User talk:Mightymushroom|talk]]) 10:10, 20 October 2012 (PDT)
+
<includeonly>{{#if:{{{2|}}}|[[Keywords#{{{1}}}|{{{2}}}]]|[[Keywords#{{{1}}}|{{{1}}}]]}}</includeonly><noinclude>
----
+
</noinclude>{{#if: {{{2}}} | [[Keywords/{{{1}}} | {{{2}}}]] | [[Keywords/{{{1}}}|{{{1}}}]]}}
+
  
{{#expr: 2*3}}<noinclude>
 
 
----
 
----
  
  
This is a simple template for easily linking Keyword pages with less typing.
+
Use this template to create inline text links to Keyword pages.
 
+
Adding
+
  
'''<nowiki>{{Keywords|xxxxxx}}</nowiki>'''
+
{| class="wikitable"
 +
! Use:
 +
! Result:
 +
|-
 +
| align="center" | <code><nowiki>{{Keywords|xxxxxx}}</nowiki></code>
 +
| A link to the page section 'Keywords#xxxxxx' that reads as "xxxxxx"
 +
''Example: ''<code><nowiki>{{Keywords|Holy}}</nowiki></code>'' gives ''{{Keywords|Holy}}
 +
|-
 +
| align="center" | <code><nowiki>{{Keywords|xxxxxx|other text}}</nowiki></code>
 +
| A link to the page section 'Keywords#xxxxxx' that reads as "other text"
 +
''Example: ''<code><nowiki>{{Keywords|Poison|Poison 2}}</nowiki></code>'' gives ''{{Keywords|Poison|Poison 2}}
 +
|-
 +
! colspan="2" | Important! Capital letters count when making links. {{Keywords|Holy}} is not the same as {{Keywords|holy}}.<br>
 +
|-
 +
| colspan="2" align="center" | 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.
 +
|}
  
on any page creates an internal link for the keyword 'xxxxxx'.</noinclude>
+
</noinclude>

Latest revision as of 11:56, 23 October 2012




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

Use: Result:
{{Keywords|xxxxxx}} A link to the page section 'Keywords#xxxxxx' that reads as "xxxxxx"

Example: {{Keywords|Holy}} gives Holy

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

Example: {{Keywords|Poison|Poison 2}} gives Poison 2

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 'xxxxxx'

anchor does not exist. Please check your links are working correctly.


      
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Tools