Difference between revisions of "Template:See also"

From EVE University Wiki
Jump to: navigation, search
(Fixed template, added simple documentation and added it to the proper category.)
(Moved documentation to Template:See also/doc.)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- This is Currently broken -->
+
<includeonly>:''See also: {{#if:{{{1|}}} |<!--then:-->[[:{{{1}}}|{{{l1|{{{1}}}}}}]] |<!--else:-->'''Error: [[Template:See also|Template must be given at least one article name]]'''  
<includeonly>See also: {{#if:{{{1|}}} |<!--then:-->[[:{{{1}}}|{{{l1|{{{1}}}}}}]] |<!--else:-->'''Error: [[Template:See also|Template must be given at least one article name]]'''  
 
 
}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |&nbsp;and }} [[:{{{2}}}|{{{l2|{{{2}}}}}}]]
 
}}{{#if:{{{2|}}}|{{#if:{{{3|}}}|, |&nbsp;and }} [[:{{{2}}}|{{{l2|{{{2}}}}}}]]
 
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |,&nbsp;and }} [[:{{{3}}}|{{{l3|{{{3}}}}}}]]
 
}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |,&nbsp;and }} [[:{{{3}}}|{{{l3|{{{3}}}}}}]]
Line 16: Line 15:
 
}}{{#if:{{{15|}}}|,&nbsp;and [[:{{{15}}}|{{{l15|{{{15}}}}}}]]
 
}}{{#if:{{{15|}}}|,&nbsp;and [[:{{{15}}}|{{{l15|{{{15}}}}}}]]
 
}}{{#if:{{{16|}}}| &mdash; '''<br/>Error: [[Template:See also|Too many links specified (maximum is 15)]]'''
 
}}{{#if:{{{16|}}}| &mdash; '''<br/>Error: [[Template:See also|Too many links specified (maximum is 15)]]'''
}}</includeonly>
+
}}''</includeonly><noinclude>
<noinclude>
+
{{documentation}}
= Usage =
 
<nowiki>{{See also|Sandbox|Main Page|Eve University}}</nowiki> will produce:<br>
 
{{See also|Sandbox|Main Page|Eve University}}
 
[[Category:Template]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 19:19, 25 February 2017

Template documentation (for the above template, sometimes hidden or invisible)
Description
This template produces a See also line of text with maximum of 15 targets.
Syntax
{{See also|<Target 1>|<Target 2>|<...>|<Target 15>|<lx= title>|<...>}}
Parameters
Target x
The name of the target article, anchors(#) can be used.
lx
Title of the target when different from the target name. Where x is the same as the targets position in the list of anonymous parameters.. (Optional)
The position of the lx parameters is irrelevant and does not have to be in order.
Sample
{{See also|Sandbox|Main Page|EVE University}} gives...
See also: Sandbox, Main Page, and EVE University


{{See also|Sandbox|Main Page|EVE University|l2= EVE Universities start page}} gives...
See also: Sandbox, EVE Universities start page, and EVE University
{{See also|Sandbox|Main Page|l2= EVE Universities start page|EVE University}} gives...
See also: Sandbox, EVE Universities start page, and EVE University
"Main Page", the target that has its display text changed is in the second position of the anonymous parameters so l2 is used. As can be seen the position of the l2 does not matter.
Visit Template:See also/doc to edit this text! (How does this work?) (Refresh this text - why?)