Difference between revisions of "See"

m (Made the "text" parameter use case better)
m ("Fixed" error with onlyinclude - tried to fix but the template isn't co-operating so I am using a workaround)
Line 1: Line 1:
<includeonly>''{{{text|See: }}}{{#if: {{{1|}}} | [[{{{1|}}}]] | <onlyinclude>{{error|Error: No article provided}}</onlyinclude>}}{{#if: {{{2|}}} | , [[{{{2}}}]] }}{{#if: {{{3|}}} | , [[{{{3}}}]] }}{{#if: {{{4|}}} | , [[{{{4}}}]] }}{{#if: {{{5|}}} | , [[{{{5}}}]] }}''</includeonly><noinclude>
+
<includeonly>''{{{label|{{{text|See:}}}}}} {{#if: {{{1|}}} | [[{{{1|}}}]] | {{error|Error: No article provided.}}}}{{#if: {{{2|}}} | , [[{{{2}}}]] }}{{#if: {{{3|}}} | , [[{{{3}}}]] }}{{#if: {{{4|}}} | , [[{{{4}}}]] }}{{#if: {{{5|}}} | , [[{{{5}}}]] }}''</includeonly><noinclude>
 
== Description ==
 
== Description ==
 
This template provides formatting for a "see" link.
 
This template provides formatting for a "see" link.
 
== Parameters ==
 
== Parameters ==
{{Bullet}}'''(unnamed parameter)''': The first main article to be linked.
+
{{Bullet}}'''(unnamed parameter)''': The first article to be linked.
:{{Bullet}}'''(unnamed parameter)''': Optional. The second main article to be linked.
+
:{{Bullet}}'''(unnamed parameter)''': Optional. The second article to be linked.
:{{Bullet}}'''(unnamed parameter)''': Optional. The third main article to be linked.
+
:{{Bullet}}'''(unnamed parameter)''': Optional. The third article to be linked.
:{{Bullet}}'''(unnamed parameter)''': Optional. The fourth main article to be linked.
+
:{{Bullet}}'''(unnamed parameter)''': Optional. The fourth article to be linked.
:{{Bullet}}'''(unnamed parameter)''': Optional. The fifth main article to be linked.
+
:{{Bullet}}'''(unnamed parameter)''': Optional. The fifth article to be linked.
  
{{Bullet}} '''text''': Optional. The label that appears prior to the articlelink. (defaults to "See: ")
+
{{Bullet}} '''text''': Optional. The label that appears prior to the articlelink. (defaults to "See:")
 
== Usage ==
 
== Usage ==
<pre>{{see|article1=Corepunk_Wiki}}
+
<pre>{{see|Corepunk_Wiki}}
 
{{see|Corepunk_Wiki|Corepunk_Wiki}}
 
{{see|Corepunk_Wiki|Corepunk_Wiki}}
 
{{see|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki}}
 
{{see|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki}}
 
{{see|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki}}
 
{{see|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki}}
 
{{see|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki}}
 
{{see|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki}}
{{see|text=Main article: |Corepunk_Wiki}}</pre></noinclude>
+
{{see|text=Main article:|Corepunk_Wiki}}</pre></noinclude>

Revision as of 17:38, 16 January 2022

Description

This template provides formatting for a "see" link.

Parameters

(unnamed parameter): The first article to be linked.

(unnamed parameter): Optional. The second article to be linked.
(unnamed parameter): Optional. The third article to be linked.
(unnamed parameter): Optional. The fourth article to be linked.
(unnamed parameter): Optional. The fifth article to be linked.

text: Optional. The label that appears prior to the articlelink. (defaults to "See:")

Usage

{{see|Corepunk_Wiki}}
{{see|Corepunk_Wiki|Corepunk_Wiki}}
{{see|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki}}
{{see|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki}}
{{see|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki|Corepunk_Wiki}}
{{see|text=Main article:|Corepunk_Wiki}}