Jump to content

Template:See also: Difference between revisions

From VR & AR Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>:''See also: [[{{{1}}}]]{{#if: {{{2|}}}|{{#if: {{{3|}}}|, [[{{{2}}}]]|{{#if: {{{4|}}}|, [[{{{2}}}]]|{{#if: {{{5|}}}|, [[{{{2}}}]]| and [[{{{2}}}]]}}}}}}{{#if: {{{3|}}}|{{#if: {{{4|}}}|, [[{{{3}}}]]|{{#if: {{{5|}}}|, [[{{{3}}}]]| and [[{{{3}}}]]}}}}{{#if: {{{4|}}}|{{#if: {{{5|}}}|, [[{{{4}}}]]| and [[{{{4}}}]]}}}}{{#if: {{{5|}}}| and [[{{{5}}}]]}}''</includeonly>
<includeonly>:''See also: {{#if: {{{5|}}}|[[{{{1}}}]], [[{{{2}}}]], [[{{{3}}}]], [[{{{4}}}]], and [[{{{5}}}]]|{{#if: {{{4|}}}|[[{{{1}}}]], [[{{{2}}}]], [[{{{3}}}]], and [[{{{4}}}]]|{{#if: {{{3|}}}|[[{{{1}}}]], [[{{{2}}}]], and [[{{{3}}}]]|{{#if: {{{2|}}}|[[{{{1}}}]] and [[{{{2}}}]]|[[{{{1}}}]]}}}}}}''</includeonly>
<noinclude>This creates the see also line for linking to pages. It accepts up to 5 page names as parameters.
<noinclude>This creates the see also line for linking to pages. It accepts up to 5 page names as parameters.


==Usage==
==Usage==
{{template_name|Page1|Page2|Page3|Page4|Page5}}
{{see also|Page1|Page2|Page3|Page4|Page5}}


You can use fewer than 5 parameters if needed:
You can use fewer than 5 parameters if needed:
{{template_name|Page1}}
{{see also|Page1}}
{{template_name|Page1|Page2}}
{{see also|Page1|Page2}}


==Examples==
==Examples==
* {{template_name|History}} produces: :''See also: [[History]]''
* {{see also|History}} produces: :''See also: [[History]]''
* {{template_name|History|Geography}} produces: :''See also: [[History]] and [[Geography]]''
* {{see also|History|Geography}} produces: :''See also: [[History]] and [[Geography]]''
* {{template_name|History|Geography|Science}} produces: :''See also: [[History]], [[Geography]], and [[Science]]''
* {{see also|History|Geography|Science}} produces: :''See also: [[History]], [[Geography]], and [[Science]]''
* {{template_name|History|Geography|Science|Math|Art}} produces: :''See also: [[History]], [[Geography]], [[Science]], [[Math]], and [[Art]]''
* {{see also|History|Geography|Science|Math|Art}} produces: :''See also: [[History]], [[Geography]], [[Science]], [[Math]], and [[Art]]''


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 05:10, 30 April 2025

This creates the see also line for linking to pages. It accepts up to 5 page names as parameters.

Usage

See also: {{#if: Page5|Page1, Page2, Page3, Page4, and Page5|Page1, Page2, Page3, and Page4


You can use fewer than 5 parameters if needed:

See also: {{#if: |Page1, [[{{{2}}}]], [[{{{3}}}]], [[{{{4}}}]], and [[{{{5}}}]]|Page1
See also: {{#if: |Page1, Page2, [[{{{3}}}]], [[{{{4}}}]], and [[{{{5}}}]]|Page1 and Page2


Examples

See also: {{#if: |History, [[{{{2}}}]], [[{{{3}}}]], [[{{{4}}}]], and [[{{{5}}}]]|History
produces: :See also: History
See also: {{#if: |History, Geography, [[{{{3}}}]], [[{{{4}}}]], and [[{{{5}}}]]|History and Geography
produces: :See also: History and Geography
See also: {{#if: |History, Geography, Science, [[{{{4}}}]], and [[{{{5}}}]]|History, Geography, and Science
produces: :See also: History, Geography, and Science
See also: {{#if: Art|History, Geography, Science, Math, and Art|History, Geography, Science, and Math
produces: :See also: History, Geography, Science, Math, and Art