Difference between revisions of "Template:Linkable Entry"

From Starsonata Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{#if:{{{2|{{{exname|}}}}}}|<span id="{{{2|{{{exname|}}}}}}"></span>}}{{#if:{{{3|{{{exname2|}}}}}}|<span id="{{{3|{{{exname2|}}}}}}"></span>}}<span id="{{{1}}}"></span>{{{1}}}
 
{{#if:{{{2|{{{exname|}}}}}}|<span id="{{{2|{{{exname|}}}}}}"></span>}}{{#if:{{{3|{{{exname2|}}}}}}|<span id="{{{3|{{{exname2|}}}}}}"></span>}}<span id="{{{1}}}"></span>{{{1}}}
 +
<noinclude>
 +
 +
This template lets you create a linkable entry for any text in the same way that creating a header normally does. So putting <nowiki>{{Linkable Entry|Zebucart}}</nowiki> on the Ships page will display just the text Zebucart, but you can use the link <nowiki>[[Ships#Zebucart]]</nowiki> to jump directly to that piece of text. The template also allows for 2 extra links to the same text. <nowiki>{{Linkable Entry|Zebucart|Pigeons|Cats}}<nowiki> will still display Zebucart, but <nowiki>[[Ships#Piegons]]</nowiki> and <nowiki>[[Ships#Cats]]</nowiki> will both link to it as well.
 +
[[Category: Display templates]]
 +
 +
</noinclude>

Revision as of 23:42, 26 November 2011

{{{1}}}


This template lets you create a linkable entry for any text in the same way that creating a header normally does. So putting {{Linkable Entry|Zebucart}} on the Ships page will display just the text Zebucart, but you can use the link [[Ships#Zebucart]] to jump directly to that piece of text. The template also allows for 2 extra links to the same text. {{Linkable Entry|Zebucart|Pigeons|Cats}}<nowiki> will still display Zebucart, but <nowiki>[[Ships#Piegons]] and [[Ships#Cats]] will both link to it as well.