Difference between revisions of "Template:Main"

From IOP Wiki
Jump to navigation Jump to search
(Initial setup)
 
(Referenced Documentation)
Line 1: Line 1:
 
<includeonly><div role="note" class="hatnote navigation-not-searchable">Main article{{#if:{{{2|}}}{{{3|}}}|s}}: {{#if:{{{l1|}}}|[[{{{1|Main}}}|{{{l1|}}}]]|[[{{{1|Main}}}]]}}{{#if:{{{2|}}}|{{#if:{{{l2|}}}|, [[{{{2|Main}}}|{{{l2|}}}]]|, [[{{{2|Main}}}]]}}}}{{#if:{{{3|}}}|{{#if:{{{l3|}}}|, [[{{{3|Main}}}|{{{l3|}}}]]|, [[{{{3|Main}}}]]}}}}</div></includeonly>
 
<includeonly><div role="note" class="hatnote navigation-not-searchable">Main article{{#if:{{{2|}}}{{{3|}}}|s}}: {{#if:{{{l1|}}}|[[{{{1|Main}}}|{{{l1|}}}]]|[[{{{1|Main}}}]]}}{{#if:{{{2|}}}|{{#if:{{{l2|}}}|, [[{{{2|Main}}}|{{{l2|}}}]]|, [[{{{2|Main}}}]]}}}}{{#if:{{{3|}}}|{{#if:{{{l3|}}}|, [[{{{3|Main}}}|{{{l3|}}}]]|, [[{{{3|Main}}}]]}}}}</div></includeonly>
<noinclude>
+
__NOEDITSECTION__
{{Main}}
+
<noinclude>{{Documentation}}</noinclude>
{{Main|Article}}
 
{{Main|Article#Section}}
 
{{Main|Article#Section|l1=Custom section label}}
 
{{Main|Article1|Article2|Article3}}
 
{{Main|Article1|l1=Custom label 1|Article2|l2=Custom label 2}}
 
</noinclude>
 

Revision as of 20:04, 8 June 2018


Documentation icon Template documentation[view] [edit] [history] [purge]

This template is used right under a section header to inform and link the user to a more detailled page about a subject.

Syntax

A sample how to call the template. Feel free to copy this example. Please remove the parameters that are left blank.

{{Main
| Article 1
| l1 = Article label 1
| Article 2
| l2 = Article label 2
| Article 3
| l3 = Article label 3}}

Parameter list

The parameters are as follows:

(Parameter without name) The name of the Article to be linked
l1, l2, l3 A label for the link

Examples

  • {{Main}}


  • {{Main|Article}}