Template:SeeAlso: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Russell D. Jones
(Testing to see if I get variable width)
imported>Russell D. Jones
(revised syntax)
Line 1: Line 1:
<includeonly>
<includeonly>
{| style="float:right; margin: .1em .5em; border-collapse: collapse; background: #FFF; border: 1px solid #AAA; "
{| style="float:right; margin: .1em .5em 0 .5em; border-collapse: collapse; background: #FFF; border: 1px solid #AAA; "
|-  
|-  
| style="width: 75px; background:gray; Color:White; vertical-align:middle; text-align:center" | <span style="font-size:85%;">See also:</span>
| style="width: 75px; background:gray; Color:White; vertical-align:middle; text-align:center" | <span style="font-size:85%;">See also:</span>
| style="padding: 0.25em 0.5em; vertical-align:middle; text-align:left" | <span style="font-size:85%;">[[{{{1}}}]]</span>
| style="padding: 0.25em 0.5em; vertical-align:middle; text-align:left" | <span style="font-size:85%;">{{{1}}}{{#If:{{{2}}}|<br>{{{2}}}|<!---->}}{{#If:{{{3}}}|<br>{{{3}}}|<!---->}}</span>
|}</includeonly><noinclude>
|}
</includeonly><noinclude>


This template will add a "see also" box with a single link.
This template will add a "see also" box with a single link.  The Link should be a wiki-link because if you wish to include a piped link, you'll have to do the piping.  You can include up to three "see also" links.


==Syntax==
==Syntax==
<nowiki>{{SeeAlso| PAGENAME }}</nowiki>
<nowiki>{{SeeAlso| [[PAGENAME]] ||}}</nowiki><br>
<nowiki>{{SeeAlso | [[PAGENAME | Piped text]] ||}}</nowiki><br>
<nowiki>{{SeeAlso | [[PAGENAME#1 | Piped text]] | [[PAGENAME#2 | Piped text]] | [[PAGENAME#3 | Piped text]] }}</nowiki>
 
==Quirk==
Right now each field has to be separated by pipes (see the first example above) in order not to get the empty fields to show.


==Example==
==Example==
{| style="margin: .1em .5em; border-collapse: collapse; background: #FFF; border: 1px solid #AAA; float:right"
{| style="float:right; margin: .1em .5em 0 .5em; border-collapse: collapse; background: #FFF; border: 1px solid #AAA; "
|-  
|-  
| style="width: 75px; background:gray; Color:White; vertical-align:middle; text-align:center" | <span style="font-size:85%;">See also:</span>
| style="width: 75px; background:gray; Color:White; vertical-align:middle; text-align:center" | <span style="font-size:85%;">See also:</span>
| style="padding: 0.25em 0.5em; vertical-align:middle; text-align:left" | <span style="font-size:85%;">[[Main Page]]</span>
| style="padding: 0.25em 0.5em; vertical-align:middle; text-align:left" | <span style="font-size:85%;">{{{1}}}{{#If:{{{2}}}|<br>{{{2}}}|<!---->}}{{#If:{{{3}}}|<br>{{{3}}}|<!---->}}</span>
|}
|}
</noinclude>
</noinclude>

Revision as of 16:29, 4 August 2009


This template will add a "see also" box with a single link. The Link should be a wiki-link because if you wish to include a piped link, you'll have to do the piping. You can include up to three "see also" links.

Syntax

{{SeeAlso| [[PAGENAME]] ||}}
{{SeeAlso | [[PAGENAME | Piped text]] ||}}
{{SeeAlso | [[PAGENAME#1 | Piped text]] | [[PAGENAME#2 | Piped text]] | [[PAGENAME#3 | Piped text]] }}

Quirk

Right now each field has to be separated by pipes (see the first example above) in order not to get the empty fields to show.

Example

See also: {{{1}}}
{{{2}}}
{{{3}}}