Template:Main: Difference between revisions

From 2d4chan
Jump to navigation Jump to search
1d4chan>Not LongPoster Again
mNo edit summary
PathfinderWiki>Virenerus
m Add autosync to Starfinderwiki
Line 1: Line 1:
<div class="noprint">''Main article: [[{{{1}}}|{{{l1|{{{1}}}}}}]]''</div><noinclude>
<includeonly>:''{{rellink|extraclasses=noprint relarticle mainarticle|Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}}
 
|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
== Code to include on page ==
|{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
  <nowiki>{{main|exact wiki link name without any brackets}}</nowiki>
|{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}}
 
|{{#if:{{{6|}}}|,&#32;|,&#32;and&#32;}}[[{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}}
If you want the "main" page to have a different displayed title, use as follows:
|{{#if:{{{7|}}}|,&#32;|,&#32;and&#32;}}[[{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}}
  <nowiki>{{main|exact wiki link name without any brackets|l1 = displayed title}}</nowiki>
  |{{#if:{{{8|}}}|,&#32;|,&#32;and&#32;}}[[{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}}
 
|{{#if:{{{9|}}}|,&#32;|,&#32;and&#32;}}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
</noinclude>
|{{#if:{{{10|}}}|,&#32;|,&#32;and&#32;}}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
  |, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}}}</includeonly><noinclude>
{{Documentation}}
[[Category:Utility templates]]
</noinclude><noinclude>[[Category:Synced to starfinderwiki]]</noinclude>

Revision as of 19:40, 8 April 2023

[edit] [purge] File:Template-info.svg.png Template documentation

Template:Esoteric Template:Tl creates a link to a subject's authoritative articles.

Usage

{{Main|(DESTINATION)|(DESTINATION)|...|(DESTINATION)}}

You can add up to nine destinations using Template:Tl.

Examples

Example with one parameter
{{Main|Absalom}}
Template:Rellink
Example with multiple parameters
{{Main|Aroden|Earthfall|Absalom|Iomedae}}
Template:Rellink
Example of linking a category
{{Main|:Category:Authors}}
Template:Rellink

Main also