“模板:Contradicts others”的版本间的差异

wikilife>UsuallyNonviolentBot
→‎topRemove deprecated parameter $N from Module:Unsubst
 
Ph9讨论 | 贡献
(导入1个版本)
 
(没有差异)

2020年12月27日 (日) 14:51的最新版本

{{#ifeq:{{{small}}}|left|}}

50px Template documentation[view] [edit] [history] [purge]

{{#ifeq:contradicts others |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:模板:Contradicts others
                  | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

This template will categorise tagged articles into Category:Articles contradicting other articles.

There are several optional parameters:

  • The first is an article name; providing this argument adds a link to the article
  • Further parameters are optional and specify other contradicting articles (template should work for >=1 contradicting article)
  • You can optionally specify talk page for discussion using "discuss = <talk page name>". Add an anchor after if you want ("discuss = <talk page name>#section")
  • A further optional date parameter may be supplied in the format date = <month> <year>.

Examples of use:

{{Contradicts others|Alice|discuss=Talk:Alice|Bob|Carol}} becomes {{#ifeq:{{{small}}}|left|}} {{Contradicts others|Alice|discuss=Talk:Carol#problem|Bob|Carol}} becomes {{#ifeq:{{{small}}}|left|}} {{Contradicts others|a}} becomes {{#ifeq:{{{small}}}|left|}}

TemplateData编辑

<templatedata> { "params": { "1": {}, "2": {}, "3": {}, "4": {}, "5": {}, "6": {}, "7": {}, "8": {}, "9": {}, "10": {}, "11": {}, "12": {}, "13": {}, "14": {}, "15": {}, "16": {}, "17": {}, "18": {}, "19": {}, "20": {}, "21": {}, "discuss": {}, "date": {} }, "description": "Contradiction of MANY others" } </templatedata>

See also编辑

{{#if:{{#ifeq:Contrad|sandbox|1}}{{#ifeq:Contradicts others|doc|1}}||


}}