Template:Main: Difference between revisions

From Alpine Linux
(WIP: "Main article" template.)
 
m (Briefly document the template.)
 
Line 1: Line 1:
<div role="note" class="navigation-not-searchable" style="font-style:italic;padding-left:1.6em;margin-bottom:0.5em">Main article: [[{{{1}}}]]</div>
<noinclude>
{{Template}}
 
==Synopsis==
Used immediately under section headings to point to a main article... Just like [[https://en.wikipedia.org/wiki/Template:Main Template:Main on Wikipedia]] except a lot simpler (e.g. without requiring lua)
 
==Usage example==
Syntax: <nowiki>{{Main|IRC}}</nowiki>
 
Renders as: {{Main|IRC}}
 
</noinclude>
 
<includeonly><div role="note" class="navigation-not-searchable" style="font-style:italic;padding-left:1.6em;margin-bottom:0.5em">Main article: [[{{{1}}}]]</div></includeonly>

Latest revision as of 18:01, 22 December 2023

Template Documentation for Main

This page is a template and should only be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

Synopsis

Used immediately under section headings to point to a main article... Just like [Template:Main on Wikipedia] except a lot simpler (e.g. without requiring lua)

Usage example

Syntax: {{Main|IRC}}

Renders as: