Modèle:Incomplete/doc : Différence entre versions

De Wikisisar
Aller à : navigation, rechercher
(See also : {{tl|Data missing}})
 
m (1 révision importée)
 
(Aucune différence)

Version actuelle datée du 21 octobre 2017 à 20:57

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:Modèle:Incomplete
                  | [[Category:{{#switch:Modèle |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

Usage

This template adds articles to Category:Articles to be expanded.

To make it say "section" instead of "article" use {{{{#if: |subst:}}Incomplete{{#if:section ||section}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}.

A brief summary of what's missing can be provided in |{{#if:reason|reason=}}. When this template is added to a page, a discussion must simultaneously be initiated on its talk page.

Example

{{Incomplete|section|reason=half the contestants are missing from the table}}
{{#switch:
 {{#if: 
 |     
 | {{#ifeq:Modèle|
   | main
   | other
   }} 
 }}
| main = {{#ifeq:{{#switch: section | section = left | table = left | #default = }}|left|}

| other

| #default =

}}

The bolding may be customised to highlight specific areas of the incompleteness.

{{Incomplete|section|reason=the information in the section about potatoes being used in salads '''does not give sufficient information'''}}
{{#switch:
 {{#if: 
 |     
 | {{#ifeq:Modèle|
   | main
   | other
   }} 
 }}
| main = {{#ifeq:{{#switch: section | section = left | table = left | #default = }}|left|}

| other

| #default =

}}

Template data

<templatedata> { "params": { "reason": { "label": "Reason", "description": "What parts of this article or section are incomplete?", "type": "string", "suggested": true } }, "description": "This template adds articles to Category:Articles to be expanded. ", "paramOrder": [ "reason" ], "format": "inline" } </templatedata>

See also