Template:Main: Difference between revisions

Created page with "<translate> {{TemplateUsage |usage=<pre>{{Main|Article|Section|Text}}</pre> |description=Creates a hatnote right after a section header informing users about the existence of a dedicated article about the section's topic. '''Article''' is the name of the main article in question. '''Section''' is the name of the relevant section in the main article. It is optional and can be set with <code>section=</code>. '''Text''' is the display text. }} <onlyinclude>:''Main articl..."
 
Marked this version for translation
 
Line 1: Line 1:
<translate>
<translate>
<!--T:1-->
{{TemplateUsage
{{TemplateUsage
|usage=<pre>{{Main|Article|Section|Text}}</pre>
|usage=<pre>{{Main|Article|Section|Text}}</pre>
Line 5: Line 6:
'''Article''' is the name of the main article in question.
'''Article''' is the name of the main article in question.


<!--T:2-->
'''Section''' is the name of the relevant section in the main article. It is optional and can be set with <code>section=</code>.
'''Section''' is the name of the relevant section in the main article. It is optional and can be set with <code>section=</code>.


<!--T:3-->
'''Text''' is the display text.
'''Text''' is the display text.
}}
}}


<!--T:4-->
<onlyinclude>:''Main article: {{#if:{{{section|}}}
<onlyinclude>:''Main article: {{#if:{{{section|}}}
|{{TransLink|{{{1}}}#{{{section}}}|{{{2|{{{1}}} → {{{section}}}}}}}}
|{{TransLink|{{{1}}}#{{{section}}}|{{{2|{{{1}}} → {{{section}}}}}}}}