Difference between revisions of "Template:Main"

From Veloopti Help
Jump to: navigation, search
m (26 revisions imported)
 
(18 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div class="rellink relarticle mainarticle">{{#ifeq:{{SUBJECTSPACE}}|Category|<translate><!--T:1-->
+
<noinclude>
The main</translate> {{#ifeq:{{NAMESPACE:{{{1}}}}}||<translate><!--T:2-->
 
article|page</translate>}}{{#if:{{{2|}}}|s}} <translate><!--T:3-->
 
for this [[<tvar|help-cats>Special:MyLanguage/Help:Categories</>|category]]</translate> {{#if:{{{2|}}}|<translate><!--T:4-->
 
are|is</translate>}}|<translate><!--T:5-->
 
Main</translate> {{#ifeq:{{NAMESPACE:{{{1}}}}}||<translate><!--T:6-->
 
article|page</translate>}}{{#if:{{{2|}}}|s}}:}} [[{{{1|{{PAGENAME}}}}}|{{{l1|{{{1|{{PAGENAME}}}}}}}}]]{{#if:{{{2| }}}
 
|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
 
|{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
 
|{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}}
 
|{{#if:{{{6|}}}|,&#32;|,&#32;and&#32;}}[[{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}}
 
|{{#if:{{{7|}}}|,&#32;|,&#32;and&#32;}}[[{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}}
 
|{{#if:{{{8|}}}|,&#32;|,&#32;and&#32;}}[[{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}}
 
|{{#if:{{{9|}}}|,&#32;|,&#32;and&#32;}}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
 
|{{#if:{{{10|}}}|,&#32;|,&#32;and&#32;}}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
 
|, <translate><!--T:7-->
 
and</translate> [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|&#32; (<translate><!--T:8-->
 
too many parameters in</translate> &#123;&#123;[[Template:main|main]]&#125;&#125;)}}</div><noinclude>
 
 
<languages />
 
<languages />
 +
</noinclude><div class="rellink relarticle mainarticle">{{#ifeq:{{SUBJECTSPACE}}|Category
 +
|<translate><!--T:12--> The main {{<tvar|ifeq1>#ifeq:{{NAMESPACE:{{{1}}}}}|</>|article|page}}{{<tvar|if1>#if:{{{2|}}}</>|s}} for this [[<tvar|cats-help>Special:MyLanguage/Help:Categories</>|category]] {{<tvar|if2>#if:{{{2|}}}</>|are|is}}</translate>
 +
|<translate><!--T:13--> Main {{<tvar|ifeq1>#ifeq:{{NAMESPACE:{{{1}}}}}|</>|article|page}}{{<tvar|if1>#if:{{{2|}}}</>|s}}:</translate>}} [[Special:MyLanguage/{{{1|{{PAGENAME}}}}}|{{{l1|{{{1|{{PAGENAME}}}}}}}}]]{{#if:{{{2| }}}
 +
|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[Special:MyLanguage/{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
 +
|{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[Special:MyLanguage/{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
 +
|{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}[[Special:MyLanguage/{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}}
 +
|{{#if:{{{6|}}}|,&#32;|,&#32;and&#32;}}[[Special:MyLanguage/{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}}
 +
|{{#if:{{{7|}}}|,&#32;|,&#32;and&#32;}}[[Special:MyLanguage/{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}}
 +
|{{#if:{{{8|}}}|,&#32;|,&#32;and&#32;}}[[Special:MyLanguage/{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}}
 +
|{{#if:{{{9|}}}|,&#32;|,&#32;and&#32;}}[[Special:MyLanguage/{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
 +
|{{#if:{{{10|}}}|,&#32;|,&#32;and&#32;}}[[Special:MyLanguage/{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
 +
|, and [[Special:MyLanguage/{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|&#32; <translate><!--T:14--> (too many parameters in <tvar|code1>&#123;&#123;</>[[<tvar|link>Template:main</>|main]]<tvar|code2>&#125;&#125;</>)</translate>}}</div><noinclude>
 +
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Page 1",
 +
"description": "Page name of related article",
 +
"type": "wiki-page-name",
 +
"required": true
 +
},
 +
"2": {
 +
"label": "Page 2",
 +
"type": "wiki-page-name"
 +
},
 +
"3": {
 +
"label": "Page 3",
 +
"type": "wiki-page-name"
 +
},
 +
"l1": {
 +
"label": "Label 1",
 +
"description": "Custom label for the link to Page 1",
 +
"type": "string",
 +
"default": "Defaults to the name of Page 1"
 +
},
 +
"l2": {
 +
"label": "Label 2",
 +
"type": "string"
 +
},
 +
"l3": {
 +
"label": "Label 3",
 +
"type": "string"
 +
}
 +
},
 +
"description": "This template is used to display a note directing users to the main article about a subject. This should be used at the top of a section, usually directly below a section heading.",
 +
"paramOrder": [
 +
"1",
 +
"l1",
 +
"2",
 +
"l2",
 +
"3",
 +
"l3"
 +
],
 +
"format": "inline"
 +
}
 +
</templatedata>
 +
 
<translate>
 
<translate>
== Usage ==
+
== Example == <!--T:16-->
 
</translate>
 
</translate>
 
<pre>
 
<pre>
 
<translate>
 
<translate>
{{ {{TNTN|Main}} |[[Article 1]]|[[Article 2]]|[[Article Something#3|Article 3]]}}
+
<!--T:10-->
 +
{{TNT|Main|Article 1|Article 2|Article Something#3}}
 
</translate>
 
</translate>
 
</pre>
 
</pre>
 
<translate>
 
<translate>
{{ {{TNTN|Main}} |[[Article 1]]|[[Article 2]]|[[Article Something#3|Article 3]]}}
+
<!--T:11-->
 +
{{TNT|Main|Article 1|Article 2|Article Something#3}}
 
</translate>
 
</translate>
 
[[Category:Templates{{translation}}]]
 
[[Category:Templates{{translation}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:42, 20 July 2017

<languages />

<templatedata> { "params": { "1": { "label": "Page 1", "description": "Page name of related article", "type": "wiki-page-name", "required": true }, "2": { "label": "Page 2", "type": "wiki-page-name" }, "3": { "label": "Page 3", "type": "wiki-page-name" }, "l1": { "label": "Label 1", "description": "Custom label for the link to Page 1", "type": "string", "default": "Defaults to the name of Page 1" }, "l2": { "label": "Label 2", "type": "string" }, "l3": { "label": "Label 3", "type": "string" } }, "description": "This template is used to display a note directing users to the main article about a subject. This should be used at the top of a section, usually directly below a section heading.", "paramOrder": [ "1", "l1", "2", "l2", "3", "l3" ], "format": "inline" } </templatedata>

<translate>

Example

</translate>

<translate>
<!--T:10-->
{{TNT|Main|Article 1|Article 2|Article Something#3}}
</translate>

<translate>

</translate>