舊文件

此處文件僅供參考,請自行考量時效性與適用程度,其他庫藏文件請參考文件頁面
我們亟需您的協助,進行共筆系統搬移、及文件整理工作,詳情請查閱參與我們

模板討論:Literal2

出自 MozTW Wiki

於 2006年4月30日 (日) 11:29 由 61.27.225.252對話 所做的修訂

用法

這樣板的作用是直接輸出名稱為 "" 的參數內容:

  • {{literal2|abc}} 輸出 ""(abc 是未命名的參數)
  • {{literal2|p=abc}} 輸出 ""(abc 是命名為 "p" 的參數)
  • {{literal2|=abc}} 輸出 "abc"(abc 是命名為 "" 的參數)

這樣板主要功能是給其它樣板用將某參數是否為空分開處理。基本語法是

 {{literal2|=輸出 A|參數=輸出 B}}

這裡,如果參數不是空的,則輸出會是 A。如果參數為空,則輸出會是 B。

測試

  • {{literal2|=yes|=no}} 輸出:no
  • {{literal2|=|=no}} 輸出:no
  • {{literal2|=yes|param=no}} 輸出:yes
  • {{literal2|=yes|=no}} 輸出:no

討論

Excuse for my post but I do not have money to buy meal to my children. Forgive me please. order viagra online pfizer viagra poker viagra purchase viagra purchase viagra online viagra viagra 50mg viagra alternative viagra and alcohol viagra best buy viagra canada viagra cialis viagra cialis levitra viagra commercial viagra cost viagra dosage viagra erection viagra for woman viagra forum viagra hgh viagra info viagra information viagra joke viagra levitra viagra mexico viagra on line viagra online viagra online pharmacy viagra pharmacy viagra picture viagra pill viagra prescription viagra prescription online viagra price viagra price comparison viagra research viagra sale viagra sale online viagra sales viagra sales uk viagra sample viagra shop viagra side effects viagra soft tab viagra story viagra substitute viagra supplier viagra uk viagra use viagra wholesale viagra without prescription where to buy viagra woman taking viagra womens viagra adipex adipex alprazolam alprazolam ambien ambien carisoprodol carisoprodol cialis cialis clonazepam clonazepam didrex didrex fioricet fioricet levitra levitra lorazepam lorazepam meridia meridia phentermine phentermine propecia propecia soma soma tramadol tramadol ultram ultram valium valium viagra viagra xanax xanax phentermine acyclovir buspar celebrex celexa claritin effexor flonase imitrex lamisil lexapro nexium paxil prilosec prozac renova retin sildenafil tadalafil valtrex wellbutrin xenical yasmin zithromax zoloft zyrtec acyclovir buspar celebrex celexa claritin effexor flonase imitrex lamisil lexapro lipitor nexium paxil prilosec prozac renova retin sildenafil tadalafil valtrex wellbutrin xenical yasmin zithromax zoloft zyrtec lipitor aciphex aldara alesse allegra amoxicillin butalbital clarinex cyclobenzaprine diflucan elavil estradiol flexeril fluoxetine fosamax motrin norvasc ortho prevacid remeron seasonale tetracycline ultracet zovirax zyban aciphex aldara alesse allegra amoxicillin butalbital clarinex cyclobenzaprine diflucan elavil estradiol flexeril fluoxetine fosamax motrin norvasc ortho prevacid remeron seasonale tetracycline ultracet zovirax zyban buy paxil buy allegra buy claritin buy celexa buy prozac buy yasmin buy imitrex buy nexium

個人工具