Difference between revisions of "Template:SeeMain"

From WikiCorporates
Jump to navigation Jump to search
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
<span>''See main article: {{{[[1]]}}}''</span>
+
<div style="margin-left:{{#if:{{{ml|}}}|{{{ml}}}|1.6em}};">{{#if:{{{4|}}}|''See main articles: [[{{{1}}}]], [[{{{2}}}]], [[{{{3}}}]] and [[{{{4}}}]]'' | {{#if:{{{3|}}}|''See main articles: [[{{{1}}}]], [[{{{2}}}]] and [[{{{3}}}]]'' | {{#if:{{{2|}}}|''See main articles: [[{{{1}}}]] and [[{{{2}}}]]'' | {{#if:{{{1|}}} |''See main article: [[{{{1}}}]]'' | }}}}}}}}</div><noinclude>{{doc2}}</noinclude>

Latest revision as of 19:49, 14 October 2020

[edit] Documentation

Usage

Small template to refer the reader to the main article page.

It can take up to 4 url parameters.

Example

{{SeeMain
|ml=     Optional; if not set, default = 1.6em
|Article 1
|Article 2
|Article 3
|Article 4
}}

Which will give either:

See main articles: Article 1, Article 2, Article 3 and Article 4
See main articles: Article 1, Article 2, Article 3 and Article 4