Пређи на садржај

Шаблон:For2

Iz Vojne Enciklopedije
За {{{1}}}, погледајте {{{2}}}{{#if:|. За {{{3}}}, погледајте {{{4}}}{{#if:|. За {{{5}}}, погледајте {{{6}}}.|.}}|{{#if:| и {{{3}}}.|.}}}}
Документација шаблона[прикажи] [уреди] [историја] [освежи]

{{#ifeq:for2 |док

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:Шаблон:For2
                  | [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
                  | 
                 }}
        }}
    | 
   }}{{#switch:
 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:Шаблон|Шаблон 
   | template 
   | other 
   }}
 }}

| template | шаблон

| šablon =

| other | #default = }}

Usage

Modelled after {{For}}, {{For2}} was created to allow custom text, including such modifications as quotation marks or a link, as part of both a topic and its suggested article.

With one topic

  • {{{{#if: |замени:}}For2{{#if:TOPIC ||TOPIC}}{{#if:[[Example article]] ||[[Example article]]}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
    За TOPIC, погледајте Example article{{#if:|. За {{{3}}}, погледајте {{{4}}}{{#if:|. За {{{5}}}, погледајте {{{6}}}.|.}}|{{#if:| и {{{3}}}.|.}}}}
  • {{{{#if: |замени:}}For2{{#if:TOPIC ||TOPIC}}{{#if:[[Example article]] and [[Example article 2]]]] ||[[Example article]] and [[Example article 2]]]]}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
    За TOPIC, погледајте Example article and Example article 2{{#if:|. За {{{3}}}, погледајте {{{4}}}{{#if:|. За {{{5}}}, погледајте {{{6}}}.|.}}|{{#if:| и {{{3}}}.|.}}}}

With more than one topic

This template also supports up to three topics and their suggested articles:

  • {{{{#if: |замени:}}For2{{#if:TOPIC ||TOPIC}}{{#if:CUSTOM TEXT ||CUSTOM TEXT}}{{#if:TOPIC 2 ||TOPIC 2}}{{#if:CUSTOM TEXT 2 ||CUSTOM TEXT 2}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
    За TOPIC, погледајте CUSTOM TEXT{{#if:CUSTOM TEXT 2|. За TOPIC 2, погледајте CUSTOM TEXT 2{{#if:|. За {{{5}}}, погледајте {{{6}}}.|.}}|{{#if:TOPIC 2| и TOPIC 2.|.}}}}
  • {{{{#if: |замени:}}For2{{#if:TOPIC ||TOPIC}}{{#if:CUSTOM TEXT ||CUSTOM TEXT}}{{#if:TOPIC 2 ||TOPIC 2}}{{#if:CUSTOM TEXT 2 ||CUSTOM TEXT 2}}{{#if:TOPIC 3 ||TOPIC 3}}{{#if:CUSTOM TEXT 3 ||CUSTOM TEXT 3}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||{{{12}}}}}{{#if: ||{{{13}}}}}{{#if: ||{{{14}}}}}{{#if: ||{{{15}}}}}{{#if: ||{{{16}}}}}{{#if: ||{{{17}}}}}{{#if: ||{{{18}}}}}{{#if: ||{{{19}}}}}{{#if: ||{{{20}}}}}{{#if: ||...}}}}
    За TOPIC, погледајте CUSTOM TEXT{{#if:CUSTOM TEXT 2|. За TOPIC 2, погледајте CUSTOM TEXT 2{{#if:CUSTOM TEXT 3|. За TOPIC 3, погледајте CUSTOM TEXT 3.|.}}|{{#if:TOPIC 2| и TOPIC 2.|.}}}}

Style note: When the context around a wikilink discusses the destination article itself (e.g., For more information, see Xyz; Main article: Xyz; This is discussed in Xyz) rather than the topic of that article (e.g., Tailors often use xyz on their clients' pants), use the capitalization of the article's title in the wikilinked text: [[Xyz]]. The same applies to subheadings: [[Xyz#PDQ|Xyz § PDQ]].