Difference between revisions of "Template:LE/Doc"

The Beyond Skyrim Wiki — Hosted by UESP
Jump to: navigation, search
(Created page with "<includeonly>{{TemProtect}}</includeonly> == Summary == This template allows crosslinks to be created to any entry on a page instead of only to section headers. == Parameters...")
 
m (remove MetaTemplate dependency)
Line 1: Line 1:
<includeonly>{{TemProtect}}</includeonly>
+
'''Linkable Entry'''
 
== Summary ==
 
== Summary ==
 
This template allows crosslinks to be created to any entry on a page instead of only to section headers.
 
This template allows crosslinks to be created to any entry on a page instead of only to section headers.
  
 
== Parameters ==
 
== Parameters ==
{{Parameters
+
{| class="wikitable"
|1|optional|The text to display as well as the name of the link to create (links will be reduced to their text automatically). To use a different link name and text name, put the text on the page as normal, then include this template but leave the first parameter blank or use the second parameter by number.
+
!colspan="3"| {{{template|{{BASEPAGENAME}}}}}
|2-4|optional|Additional links to create with no text.
+
|-
}}
+
! Parameter !! Scope !! Description
 +
|-
 +
|1||optional||The text to display as well as the name of the link to create (links will be reduced to their text automatically). To use a different link name and text name, put the text on the page as normal, then include this template but leave the first parameter blank or use the second parameter by number.
 +
|-
 +
|2-4||optional||Additional links to create with no text.
 +
|}
  
 
== Examples ==
 
== Examples ==
<pre>{{Linkable Entry|Link Example}}</pre>
+
<pre>{{LE|Link Example}}</pre>
'''{{Linkable Entry|Link Example}}''': This creates a "Link Example" link on this page, which you can link to with <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Link Example|example]]</code>.
+
'''{{LE|Link Example}}''': This creates a "Link Example" link on this page, which you can link to with <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Link Example|example]]</code>.
  
{{Pre|<nowiki>{{Linkable Entry|Ancestor Ghost|Summon Ancestor Ghost|Ghost}}</nowiki>}}
+
{{Pre|<nowiki>{{LE|Ancestor Ghost|Summon Ancestor Ghost|Ghost}}</nowiki>}}
'''{{Linkable Entry|Ancestor Ghost|Summon Ancestor Ghost|Ghost}}''': This is an example that creates several links to the same entry. You could link to this entry with any of <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Ancestor Ghost]]</code>, <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Summon Ancestor Ghost]]</code>, or <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Ghost]]</code>.
+
'''{{LE|Ancestor Ghost|Summon Ancestor Ghost|Ghost}}''': This is an example that creates several links to the same entry. You could link to this entry with any of <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Ancestor Ghost]]</code>, <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Summon Ancestor Ghost]]</code>, or <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Ghost]]</code>.
  
{{Pre|<nowiki>{{Linkable Entry||Link Only}}</nowiki> ''or''<nowiki>
+
{{Pre|<nowiki>{{LE||Link Only}}</nowiki> ''or''<nowiki>
{{Linkable Entry|2=Link Only}}</nowiki>}}
+
{{LE|2=Link Only}}</nowiki>}}
{{Linkable Entry|2=Link Only}} In this case, only a link is created with no text displayed. It can be linked to with <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Link Only]]</code>.
+
{{LE|2=Link Only}} In this case, only a link is created with no text displayed. It can be linked to with <code><nowiki>[[</nowiki>{{FULLPAGENAME}}#Link Only]]</code>.
 
<includeonly>[[Category:Link Templates]]</includeonly><noinclude>[[Category:Template Documentation|{{BASEPAGENAME}}]]</noinclude>
 
<includeonly>[[Category:Link Templates]]</includeonly><noinclude>[[Category:Template Documentation|{{BASEPAGENAME}}]]</noinclude>

Revision as of 11:02, 20 May 2018

Linkable Entry

Summary

This template allows crosslinks to be created to any entry on a page instead of only to section headers.

Parameters

LE
Parameter Scope Description
1 optional The text to display as well as the name of the link to create (links will be reduced to their text automatically). To use a different link name and text name, put the text on the page as normal, then include this template but leave the first parameter blank or use the second parameter by number.
2-4 optional Additional links to create with no text.

Examples

{{LE|Link Example}}

Link Example: This creates a "Link Example" link on this page, which you can link to with [[Template:LE/Doc#Link Example|example]].

Template:Pre Ancestor Ghost: This is an example that creates several links to the same entry. You could link to this entry with any of [[Template:LE/Doc#Ancestor Ghost]], [[Template:LE/Doc#Summon Ancestor Ghost]], or [[Template:LE/Doc#Ghost]].

Template:Pre In this case, only a link is created with no text displayed. It can be linked to with [[Template:LE/Doc#Link Only]].