Difference between revisions of "Template: Main"
(changed to main have same functionallity as main2, but is able to handle one article also, wrote so it can handle up to 20 links.) |
|||
(27 intermediate revisions by 11 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <includeonly>{{#invoke:main|main}}</includeonly><noinclude> | |
− | + | {{documentation}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{ | ||
− | |||
</noinclude> | </noinclude> |
Latest revision as of 16:30, 10 September 2018
Usage
When a article is becoming too large, it is often re-written as summary, with summary sub sections linking to its main articles. This hatnote template is placed below the heading of the summary sub sections to link to its main article. For an example of the result of the usage of this template on a page, see e.g. Robert's Rebellion.
This template is not to be used as a substitute for normal inline links, or as a substitute for the "see also"-template.
Examples
For linking to a main article (Eddard Stark in the example), typing {{Main|Eddard Stark}} will result in:
For linking to multiple main articles, typing {{Main|Eddard Stark|Catelyn Stark}} will give the following result:
It is also possible to link to a page in a different namespace (e.g. the template namespace or help namespace). For example, to link to the Help:Links page, typing {{Main|Help:Links}} will result in:
It is possible to create the same link with an alternative title. Typing {{Main|Help:Links|l1=Links}} will create a link to the page Help:Links with an alternative title, e.g. this:
The above documentation is transcluded from Template:Main/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |