Pređi na sadržaj

Šablon:Nowiki/dok

Izvor: Vojna Enciklopedija

{{#ifeq:dok |dok

    | 

{{#ifeq:show |show

|

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

{{#ifeq: Nowiki/dok | Nowiki | }}

{{subst only}}

Used to insert {{#switch:pair

|c|close  = 
|s|single
|o|open
|p|pair   = <nowiki{{#if:| {{{params}}}}}

}}{{#switch:pair

|c|close  = 
|s|single =  />
|o|open   = >
|p|pair   = >...

}}{{#switch:pair

|s|single
|o|open   = 
|c|close
|p|pair   = </nowiki>

}} tag (or, if no {{{1}}} parameter content is given, a self-closing {{#switch:s

|c|close  = 
|s|single
|o|open
|p|pair   = <nowiki{{#if:| {{{params}}}}}

}}{{#switch:s

|c|close  = 
|s|single =  />
|o|open   = >
|p|pair   = >...

}}{{#switch:s

|s|single
|o|open   = 
|c|close
|p|pair   = </nowiki>

}} tag) in a substituted template. The resulting tag will be processed as a real tag by further substitutions and transclusions, so this should not be used for documentation. Rather, it is used by metatemplates to generate nowiki tags.

Usage

{{<includeonly>subst:</includeonly>{{safesubst:#ifeq:%D0%B4%D0%BE%D0%BA|%D0%B4%D0%BE%D0%BA
    | {{safesubst:#ifeq:Шаблон|Шаблон | |Шаблон:}}{{safesubst:#ifeq:%D0%B4%D0%BE%D0%BA|док
         | Nowiki
         | {{safesubst:#switch:%D0%B4%D0%BE%D0%BA
            |doc |sandbox |testcases |док |песак |тест = Nowiki
            | Nowiki/док
   }}   }} }}|{{{1}}}}}

If the template call is already within an includeonly block, the includeonly tags should be omitted. Substitution is required, but must only be used during inclusion; otherwise, the template will be substituted with includeonly tags immediately, and the desired effect will be lost.

See also

{{{{safesubst:#if:Šablon|{{safesubst:#ifeq:Šablon|Šablon||%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:}}}}{{safesubst:#if:{{safesubst:#titleparts:Nowiki/%D0%B4%D0%BE%D0%BA|{{safesubst:#ifeq:%D0%B4%D0%BE%D0%BA|doc|-2|-1}}}}|{{safesubst:#titleparts:Nowiki/%D0%B4%D0%BE%D0%BA|{{safesubst:#ifeq:%D0%B4%D0%BE%D0%BA|doc|-2|-1}}}}/Metatemplate doc|Metatemplate doc}}|links}}