Šablonas:Exists
Appearance
This template tests whether a given page exists. The full syntax for using it is:
{{exists | page=page | then=result if page exists | else=result if page does not exist }}
The parameters then
and else
are optional; if not given, the default values for then
and else
are 1 and 0 respectively. The page name may alternately be given as the first unnamed parameter, as in this short version:
{{exists | page }}
Warning: If the page name may contain equals signs, always use the "page=
" prefix.
|
Šiame šablone yra vienas ar daugiau pasirinktinių parametrų: detalesnę informaciją rasite Aptarimo puslapyje.
Kuriant šį šabloną panaudotos kelios nepaprastai sudėtingos ir mažai kam suprantamos šablonų kūrimo sintaksės savybės. Jei nesate tikras, jog suprantate šią sąranką, ir, atsiradus nelauktiems rezultatamas, nesate pasiruošęs atitaisyti padarytą papildomą žalą, prašome nemėginti šablono pakeisti. Visi bandymai turėtų būti atliekami šablonų smėliadėžėje arba Jūsų naudotojo erdvėje. |