Template:Main: Difference between revisions
Jump to navigation
Jump to search
s |
docs |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{hatnote|extraclasses=relarticle mainarticle|Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}} | ::''{{hatnote|extraclasses=relarticle mainarticle|Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}}|{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | ||
|{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | |{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | ||
|{{#if:{{{5|}}}|, |, and }}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}} | |{{#if:{{{5|}}}|, |, and }}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}} | ||
Line 8: | Line 7: | ||
|{{#if:{{{9|}}}|, |, and }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}} | |{{#if:{{{9|}}}|, |, and }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}} | ||
|{{#if:{{{10|}}}|, |, and }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} | |{{#if:{{{10|}}}|, |, and }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} | ||
|, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|  (too many parameters in {{[[Template:main|main]]}})}}}}<noinclude> | |, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|  (too many parameters in {{[[Template:main|main]]}})}}}}''<noinclude> | ||
==Documentation== | ==Documentation== | ||
Used | Used at the top of an article or subsection to point reader to the main article on the subject. Wiki code: | ||
< | ;Simple single parameter example | ||
{{main|< | <code><nowiki>{{main|ToDo}}</nowiki></code> | ||
</ | :{{main|ToDo}} | ||
[[Category:Templates highlighting | |||
;More parameters example | |||
<code><nowiki>{{main|Help:Reference guide|l1=Wiki Reference Guide|Help:Reference_guide#Namespaces|Wiki Namespaces}}</nowiki></code> | |||
:{{main|Help:Reference guide|l1=Wiki Reference Gudie|Help:Reference guide#Namespaces|l2=Wiki Namespaces}} | |||
===Parameters=== | |||
;<unnamed> | |||
:The page being linked to is passed as a unnamed parameter | |||
;l<number> | |||
:The label used to link to the page can be specified. For example, l1 is used to specify label for first page passed. | |||
===Templates used=== | |||
Part of this template uses the following template/s: | |||
* [[Template:Hatnote]] | |||
==See also== | |||
* [[Template:Also]] | |||
[[Category:Templates highlighting]] | |||
</noinclude> | </noinclude> |
Latest revision as of 19:35, 1 March 2019
- Main article: [[{{{1}}}|{{{1}}}]]
Documentation
Used at the top of an article or subsection to point reader to the main article on the subject. Wiki code:
- Simple single parameter example
{{main|ToDo}}
-
- Main article: ToDo
- More parameters example
{{main|Help:Reference guide|l1=Wiki Reference Guide|Help:Reference_guide#Namespaces|Wiki Namespaces}}
-
- Main articles: Wiki Reference Gudie and Wiki Namespaces
Parameters
- <unnamed>
- The page being linked to is passed as a unnamed parameter
- l<number>
- The label used to link to the page can be specified. For example, l1 is used to specify label for first page passed.
Templates used
Part of this template uses the following template/s: