Difference between revisions of "Template:SeeMain"

From WikiCorporates
Jump to navigation Jump to search
m
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
<div>''{{#if:{{{4|}}}|:Main articles: [[{{{1}}}]],[[{{{2}}}]],[[{{{3}}}]] and [[{{{4}}}]] | {{#if:{{{3|}}}|:Main articles: [[{{{1}}}]],[[{{{2}}}]] and [[{{{3}}}]] | {{#ifeq:{{{2|}}}|:Main articles: [[{{{1}}}]] and [[{{{2}}}]] | {{#ifeq:{{{1|}}} |:Main article: [[{{{1}}}]] | }}}}}}}}''</div><noinclude>[[Category:WikiPolitiks templates]]</noinclude>
+
<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