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

Шаблон:PAGENAMEBASE

Iz Vojne Enciklopedije
(разл) ← Старија измена | Тренутна верзија (разл) | Новија измена → (разл)

PAGENAMEBASE

Документација шаблона[прикажи] [уреди] [историја] [освежи]

{{#ifeq:pagenamebase |док

    | 

{{#ifeq:show |show

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

Usage

This template returns the current {{#if:{{#if:||yes}} |}}{{#if:yes | |{{#if:|}} }}{{#if: |}}{{#if: |}}{{#if: | |{{}}{{#if: |subst:}}{{#if: |}}{{#if:yes || {{#if: |{}}[[:{{#ifeq:P|: |PAGENAME |{{#switch:

                        |  = Шаблон:{{#if:PAGENAME|PAGENAME|PAGENAMEBASE}}
                        | #default = {{#if:PAGENAME|PAGENAME|Шаблон:PAGENAMEBASE}}
                     }}}}|}}{{#if: |{{}}{{#if: |{}}{{#if:PAGENAME|PAGENAME|{{#ifeq:Шаблон|Шаблон|PAGENAMEBASE|Шаблон:PAGENAMEBASE}}}}{{#if: |}}}}{{#if: |}}}{{#if:yes | |]]{{#if: |}}}}}{{#if: |}}{{#if: |}}{{#if: |}}{{#ifeq:¬|¬ | ||{{{2}}}}}{{#ifeq:¬|¬ | ||{{{3}}}}}{{#ifeq:¬|¬ | ||{{{4}}}}}{{#ifeq:¬|¬ | ||{{{5}}}}}{{#ifeq:¬|¬ | ||{{{6}}}}}{{#ifeq:¬|¬ | ||{{{7}}}}}{{#ifeq:¬|¬ | ||{{{8}}}}}{{#ifeq:¬|¬ | ||{{{9}}}}}{{#ifeq:¬|¬ | ||{{{10}}}}}{{#ifeq:¬|¬ | ||{{{11}}}}}{{#if: ||…}}{{#if: |}}{{#if: | |}}}}{{#if: |}}{{#if:yes |}}{{#if:{{#if:||yes}} |}} minus (text in parentheses) or the final set of parentheses where more than one set exist.

e.g. {{{{#if: |замени:}}PAGENAMEBASE{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#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: ||...}}}} on page Chiton (genus) returns Chiton

on Sweet Dreams (Are Made of This) (album) returns Sweet Dreams (Are Made of This)
on Sweet Dreams (Are Made of This) returns Sweet Dreams
on Stadion der Freundschaft (Frankfurt (Oder)) returns Stadion der Freundschaft

Can also pass an optional page parameter:

  • {{{{#if:PAGENAMEBASE|PAGENAMEBASE| tlc|...}}{{#ifeq:foo (bar)|foo (bar)| |foo (bar) | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} → "foo"
  • {{{{#if:PAGENAMEBASE|PAGENAMEBASE| tlc|...}}{{#ifeq:foo bar|foo bar| |foo bar | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} → "foo bar"

See also

{{#ifeq:PAGENAMEBASE|sandbox | | }}