Difference between revisions of "Template:See also"

From VideoLAN Wiki
Jump to navigation Jump to search
m (add page to Category:Templates)
m (Use CSS class "hatnote" defined in MediaWiki:Common.css. Wikipedia calls it that in their CSS)
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{1}}}
+
<includeonly><!--
|:''See also: [[:{{{1}}}]]''
+
--><div class="hatnote">See also: [[:{{{1|Example page}}}|{{{label1|{{{l1|{{{1|Example page}}}}}}}}}]]<!--
|<span style="color:red;">'''Error: specify a page'''</span>
+
-->{{#if:{{{2|}}}<!--
}}<noinclude>
+
    -->|{{#if:{{{3|}}}<!--
<!-- comments can go in this middle section -->
+
          -->|,&#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: