Difference between revisions of "Template:See also"

From VideoLAN Wiki
Jump to navigation Jump to search
m (fix?)
m (Use CSS class "hatnote" defined in MediaWiki:Common.css. Wikipedia calls it that in their CSS)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
:''See also: [[:{{{1|Example page}}}|{{{label1|{{{1|Example page}}}}}}]]{{#if:{{{2|}}}|{{#if:{{{3|}}}|,&#32;|&nbsp;and}}[[:{{{2|Example page 2}}}|{{{label2|{{{2|Example page 2}}}}}}]]|}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|,&#32;|&nbsp;and}}[[:{{{3|Example page 3}}}|{{{label3|{{{3|Example page 3}}}}}}]]|}}{{#if:{{{4|}}}|&nbsp;and&#32;[[:{{{4|Example page 4}}}|{{{label4|{{{4|Example page 4}}}}}}]]|}}''<noinclude>
+
<includeonly><!--
<!-- comments can go in this middle section -->
+
--><div class="hatnote">See also: [[:{{{1|Example page}}}|{{{label1|{{{l1|{{{1|Example page}}}}}}}}}]]<!--
 +
-->{{#if:{{{2|}}}<!--
 +
    -->|{{#if:{{{3|}}}<!--
 +
          -->|,&#32;<!--
 +
          -->|&nbsp;and&#32;<!--
 +
      -->}}[[:{{{2}}}|{{{label2|{{{l2|{{{2}}}}}}}}}]]<!--
 +
    -->|}}{{#if:{{{3|}}}<!--
 +
    -->|{{#if:{{{4|}}}<!--
 +
          -->|,&#32;<!--
 +
          -->|&nbsp;and&#32;<!--
 +
      -->}}[[:{{{3}}}|{{{label3|{{{l3|{{{3}}}}}}}}}]]<!--
 +
    -->|}}{{#if:{{{4|}}}<!--
 +
            -->|&nbsp;and&#32;<!--
 +
        -->[[:{{{4}}}|{{{label4|{{{l4|{{{4}}}}}}}}}]]<!--
 +
-->|}}</div></includeonly><noinclude>
 +
This template was reverse-engineered to resemble [//en.wikipedia.org/wiki/Template:See_also Wikipedia's template], but is my own work.<br />
 +
It can be used at the very beginning of articles to link up to four pages (including links to category pages).<br />
 +
'''Examples'''
 +
 
 +
<code><nowiki>{{See also|MPEG-1}}</nowiki></code> produces:<br />
 +
{{See also|MPEG-1}}
 +
<code><nowiki>{{See also|MPEG-1|MPEG-2|MPEG-3|MPEG-4}}</nowiki></code> produces:<br />
 +
{{See also|MPEG-1|MPEG-2|MPEG-3|MPEG-4}}
 +
<code><nowiki>{{See also|VLC|label1=An awesome media player}}</nowiki></code> produces:<br />
 +
{{See also|VLC|label1=An awesome media player}}
 +
 
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 05:12, 25 March 2019

This template was reverse-engineered to resemble Wikipedia's template, but is my own work.
It can be used at the very beginning of articles to link up to four pages (including links to category pages).
Examples

{{See also|MPEG-1}} produces:

See also: MPEG-1

{{See also|MPEG-1|MPEG-2|MPEG-3|MPEG-4}} produces:

See also: MPEG-1, MPEG-2, MPEG-3 and MPEG-4

{{See also|VLC|label1=An awesome media player}} produces: