Template:Main: Difference between revisions

From WikiIslam, the online resource on Islam
Jump to navigation Jump to search
[checked revision][checked revision]
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Rellink|extraclasses=relarticle mainarticle|{{#ifeq:{{SUBJECTSPACE}}|Category|The main {{#ifeq:{{NAMESPACE:{{{1}}}}}||Article|page}}{{#if:{{{2|}}}|s}} for this category {{#if:{{{2|}}}|are|is}}|Main {{#ifeq:{{NAMESPACE:{{{1}}}}}||article|page}}{{#if:{{{2|}}}|s}}:}} [[{{{1|{{PAGENAME}}}}}|{{{l1|{{{1|{{PAGENAME}}}}}}}}]]{{#if:{{{2| }}}
{{Rellink|extraclasses=relarticle mainarticle|{{#ifeq:{{SUBJECTSPACE}}|Category|The main {{#ifeq:{{NAMESPACE:{{{1}}}}}||article|page}}{{#if:{{{2|}}}|s}} for this category {{#if:{{{2|}}}|are|is}}|Main {{#ifeq:{{NAMESPACE:{{{1}}}}}||article|page}}{{#if:{{{2|}}}|s}}:}} [[{{{1|{{PAGENAME}}}}}|{{{l1|{{{1|{{PAGENAME}}}}}}}}]]{{#if:{{{2| }}}
  |{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
  |{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
  |{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
  |{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}

Revision as of 09:34, 15 March 2013

[edit]
Error creating thumbnail: Unable to save thumbnail to destination
Template documentation

Usage:

{{Main|Article}}

This produces:

Copy/paste:

{{Main|}}

For alternate titles:

{{Main|Article|l1=Alternative title}}

This produces:

Copy/paste:

{{Main||l1=}}

Multiple titles:

{{Main|Article|Article 2|Article 3}}

This produces:

Copy/paste:

{{Main|||}}

Alternate and multiple titles:

{{Main|Article|l1=Alternative title|Article 2}}

This produces:

Copy/paste:

{{Main||l1=|}}

Two alternate and multiple titles:

{{Main|Article|l1=Alternative title|Article 2|l2=Alternative title 2}}

This produces:

Copy/paste:

{{Main||l1=||l2=}}