Template:Task: Difference between revisions

    From UNITApedia
    No edit summary
    No edit summary
    Line 1: Line 1:
    <noinclude>
    {{#cargo_declare:
    _table=tasks;
    Has number=Number;
    Has name=Text;
    Has indicators=List (,);
    Has participants=List (,);
    Has workpackage=Text;
    }}


    <noinclude>
    [[Category:Templates]]
    <templatedata>
    <templatedata>
    {
    {
    "params": {
    "params": {
    "Has number": {
    "Has number": {
    "aliases": [
    "Number"
    ],
    "label": "Task number",
    "label": "Task number",
    "description": "The number of the task",
    "description": "The number of the task",
    Line 16: Line 20:
    },
    },
    "Has name": {
    "Has name": {
    "aliases": [
    "Name"
    ],
    "label": "Name",
    "label": "Name",
    "description": "Name of the task",
    "description": "Name of the task",
    Line 26: Line 27:
    },
    },
    "Has indicators": {
    "Has indicators": {
    "aliases": [
    "Indicators"
    ],
    "label": "Indicators",
    "label": "Indicators",
    "description": "Indicators to measure the task performance and advancement",
    "description": "Indicators to measure the task performance and advancement",
    Line 34: Line 32:
    },
    },
    "Has participants": {
    "Has participants": {
    "aliases": [
    "Participants"
    ],
    "label": "Participants",
    "label": "Participants",
    "description": "All participants for this task",
    "description": "All participants for this task",
    "type": "wiki-page-name"
    "type": "wiki-page-name"
    },
    },
    "PartOf work package": {
    "Has workpackage": {
    "aliases": [
    "Workpackage"
    ],
    "label": "Workpackage",
    "label": "Workpackage",
    "description": "What workpackage is this task for?",
    "description": "What workpackage is this task for?",
    Line 58: Line 50:
    "Has indicators",
    "Has indicators",
    "Has participants",
    "Has participants",
    "PartOf work package"
    "Has workpackage"
    ],
    ]
    "format": "block"
    }
    }
    </templatedata>
    </templatedata>
    </noinclude>


    </noinclude>
    [[Category:Tasks]]
    <includeonly>
    {| class="wikitable"
    {| class="wikitable"
    |-
    |-
    ! Task number
    ! Task number
    | {{#cargo_store:
      _table=tasks;
      Has number={{{Has number|}}};
      Has name={{{Has name|}}};
      Has indicators={{{Has indicators|}}};
      Has participants={{{Has participants|}}};
      Has workpackage={{{Has workpackage|}}};
    }}
    | [[Has number::{{{Has number|}}}]]
    | [[Has number::{{{Has number|}}}]]
    |-
    |-
    Line 78: Line 73:
    |-
    |-
    ! Indicators
    ! Indicators
    | {{#arraymap:{{{Has Indicators|}}}|,|x|* [[x]]}}
    | {{#explode:{{{Has indicators|}}}|,|x|* [[x]]}}
    <div style="display:none">[[Has indicators::{{{Has Indicators|}}}]]</div>
    |-
    |-
    ! Participants
    ! Participants
    | {{#arraymap:{{{Has Participants|}}}|,|x|* [[x]]}}
    | {{#explode:{{{Has participants|}}}|,|x|* [[x]]}}
    <div style="display:none"> [[Has participants::{{{Has Participants|}}}]]</div>
    |-
    |-
    ! Workpackage
    ! Workpackage
    | [[Part of workpackage::{{{Part of workpackage|}}}]]
    | [[Has workpackage::{{{Has workpackage|}}}]]
    |}
    |}
    </includeonly>

    Revision as of 12:07, 21 March 2024

    Error: table name "tasks;
    Has number=Number;
    Has name=Text;
    Has indicators=List (,);
    Has participants=List (,);
    
    Has workpackage=Text;" contains whitespaces. Whitespaces of any kind are not allowed; consider using underscores ("_") instead.

    Everything related to a task

    Template parameters

    ParameterDescriptionTypeStatus
    Task numberHas number

    The number of the task

    Example
    1, 2, 3
    Numberrequired
    NameHas name

    Name of the task

    Example
    Improve and transform the governance of UNITA
    Stringrequired
    IndicatorsHas indicators

    Indicators to measure the task performance and advancement

    Page nameoptional
    ParticipantsHas participants

    All participants for this task

    Page nameoptional
    WorkpackageHas workpackage

    What workpackage is this task for?

    Example
    Governance, management and quality
    Page namerequired


    Task number
    Name
    Indicators
    Participants
    Workpackage