Difference between revisions of "Template:Linkable Entry"

From Starsonata Wiki
Jump to: navigation, search
(New page: {{#define:exname|{{{2|}}}}}{{#define:exname2|{{{3|}}}}}{{#if:{{{exname|}}}|<span id="{{{exname|}}}"></span>}}{{#if:{{{exname2|}}}|<span id="{{{exname2|}}}"></span>}}<span id="{{{1}}}"></sp...)
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#define:exname|{{{2|}}}}}{{#define:exname2|{{{3|}}}}}{{#if:{{{exname|}}}|<span id="{{{exname|}}}"></span>}}{{#if:{{{exname2|}}}|<span id="{{{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>

Latest 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}} will still display Zebucart, but [[Ships#Piegons]] and [[Ships#Cats]] will both link to it as well.