« Test » : différence entre les versions

De 21Wiki
mAucun résumé des modifications
Balise : Éditeur de wikicode 2017
m (Contenu remplacé par « {{Personnage RP |titre tab1 = Simon |image_1 = Simon Tar.png |titre tab2 = Miguel |image_2 = Miguel Rodriguez.png |titre tab3 =Milo |image_3 = Milo Cook.png |image1… »)
Balises : Contenu remplacé Éditeur de wikicode 2017
Ligne 17 : Ligne 17 :


}}
}}
<graph>{
 
  "width": 800,
{{Birth date and age|1993|2|24}}
  "height": 800,
 
  "data": [
{{CURRENTYEAR}}
    {
 
      "name": "membres",
{{date_de_naissance}}
      "transform": [
        {
          "type": "formula",
          "field": "membre_end",
          "expr": "datum.membre_end ? datum.membre_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
        }
      ],
      "format": {
        "type": "json",
        "parse": {
          "membre_start": "date:\"%Y-%m-%d\"",
          "membre_end": "date:\"%Y-%m-%d\""
        }
      },
      "values": [
        {
          "label": "viggo",
          "nom": "Viggo Morison",
          "membre_start": "2021-06-18",
          "membre_end": null,
          "status": null
        },
        {
          "label": "hit",
          "nom": "Hit Smith",
          "membre_start": "2021-06-18",
          "membre_end": null,
          "status": null
        },
        {
          "label": "gael",
          "nom": "Gael « Tac » Colpaert",
          "membre_start": "2021-06-18",
          "membre_end": null,
          "status": null
        },
        {
          "label": "adamc",
          "nom": "Adam Crowell",
          "membre_start": "2021-06-18",
          "membre_end": null,
          "status": null
        },
        {
          "label": "john",
          "nom": "John « Jojo » Doe",
          "membre_start": "2021-06-18",
          "membre_end": "2021-11-29",
          "status": "🚪"
        },
        {
          "label": "arolde",
          "nom": "Arolde Schwarzenmüller",
          "membre_start": "2021-06-18",
          "membre_end": null,
          "status": null
        },
        {
          "label": "andre",
          "nom": "André Ritz",
          "membre_start": "2021-06-18",
          "membre_end": "2021-08-01",
          "status": "✈️"
        },
        {
          "label": "andre",
          "membre_start": "2021-09-19",
          "membre_end": null,
          "status": null
        },
        {
          "label": "lester",
          "nom": "Lester Small",
          "membre_start": "2021-06-18",
          "membre_end": "2021-08-01",
          "status": "✈️"
        },
        {
          "label": "emilio",
          "nom": "Emilio Suarez",
          "membre_start": "2021-07-22",
          "membre_end": "2021-07-25",
          "status": "⚰️"
        },
        {
          "label": "jaque",
          "nom": "Jaque Pastel",
          "membre_start": "2021-07-22",
          "membre_end": "2021-07-25",
          "status": "⚰️"
        },
        {
          "label": "kiano",
          "nom": "Kiano Piwowarzik",
          "membre_start": "2021-07-22",
          "membre_end": "2021-07-25",
          "status": "⚰️"
        },
        {
          "label": "guillermo",
          "nom": "Guillermo « Ras » Corvo",
          "membre_start": "2021-07-22",
          "membre_end": null,
          "status": null
        },
        {
          "label": "vaas",
          "nom": "Vaas Volker",
          "membre_start": "2021-09-06",
          "membre_end": "2021-11-01",
          "status": "⚰️"
        },
        {
          "label": "joseph",
          "nom": "Joseph Newman",
          "membre_start": "2021-09-06",
          "membre_end": null,
          "status": null
        },
        {
          "label": "jakub",
          "nom": "Jakub Larsen-Li",
          "membre_start": "2021-09-18",
          "membre_end": null,
          "status": null
        },
        {
          "label": "sarah",
          "nom": "Sarah Evans",
          "membre_start": "2021-09-30",
          "membre_end": "2021-10-09",
          "status": "⚰️"
        },
        {
          "label": "walt",
          "nom": "Walt Belisen",
          "membre_start": "2021-10-20",
          "membre_end": null,
          "status": null
        },
        {
          "label": "augustus",
          "nom": "Augustus Sharks",
          "membre_start": "2021-11-29",
          "membre_end": null,
          "status": null
        },
        {
          "label": "bertrand",
          "nom": "Bertrand Grillon",
          "membre_start": "2021-11-30",
          "membre_end": null,
          "status": null
        },
        {
          "label": "paul",
          "nom": "Paul Green",
          "membre_start": "2021-06-18",
          "membre_end": null,
          "status": "✈️"
        },
        {
          "label": "jorgen",
          "nom": "Jorgen Haraldsen",
          "membre_start": "2021-06-18",
          "membre_end": "2021-09-19",
          "status": "✈️⚰️"
        },
        {
          "label": "steeve",
          "nom": "Steeve Norris",
          "membre_start": "2021-06-18",
          "membre_end": "2021-09-19",
          "status": "🚪"
        },
        {
          "label": "adamo",
          "nom": "Adam Ortega",
          "membre_start": "2021-06-18",
          "membre_end": "2021-09-30",
          "status": "🚪"
        }
      ]
    },
    {
      "name": "seconds",
      "transform": [
        {
          "type": "formula",
          "field": "second_end",
          "expr": "datum.second_end ? datum.second_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
        }
      ],
      "format": {
        "type": "json",
        "parse": {
          "second_start": "date:\"%Y-%m-%d\"",
          "second_end": "date:\"%Y-%m-%d\""
        }
      },
      "values": [
        {
          "label": "guillermo",
          "second_start": "2021-10-01",
          "second_end": null
        }
      ]
    },
    {
      "name": "chefs",
      "transform": [
        {
          "type": "formula",
          "field": "chef_end",
          "expr": "datum.chef_end ? datum.chef_end : datetime(year(now()) + '/' + (month(now())+1) + '/' + date(now()))"
        }
      ],
      "format": {
        "type": "json",
        "parse": {
          "chef_start": "date:\"%Y-%m-%d\"",
          "chef_end": "date:\"%Y-%m-%d\""
        }
      },
      "values": [
        {
          "label": "viggo",
          "chef_start": "2021-06-18",
          "chef_end": null
        }
      ]
    },
    {
      "name": "events",
      "format": {
        "type": "json",
        "parse": {"date": "date:\"%Y-%m-%d\""}
      },
      "values": [
        {
          "name": " 22/07 - Fusion avec Forsaken",
          "date": "2021-07-22",
          "y": -38
        },
        {
          "name": " 25/07 - Assauts de Vespucci",
          "date": "2021-07-25",
          "y": -30
        },
        {
          "name": " 27/07 - Business de drogues",
          "date": "2021-07-27",
          "y": -20
        },
        {
          "name": " 23/08 - Déménagement",
          "date": "2021-08-23",
          "y": -20
        },
        {
          "name": " 14/10 - Armes",
          "date": "2021-10-14",
          "y": -20
        }
      ]
    }
  ],
  "scales": [
    {
      "name": "y",
      "type": "ordinal",
      "range": "height",
      "domain": {"data": "membres","field": "label"}
    },
    {
      "name": "x",
      "type": "time",
      "range": "width",
      "nice": "month",
      "domain": {
        "data": "membres",
        "field": ["membre_start","membre_end"]
      }
    }
  ],
  "axes": [
    {
      "type": "x",
      "scale": "x",
      "grid": true,
      "format": "%m/%y"
    }
  ],
  "marks": [
    {
      "type": "text",
      "from": {"data": "events"},
      "properties": {
        "enter": {
          "x": {"scale": "x","field": "date"},
          "y": {"field": "y"},
          "angle": {"value": -30},
          "fill": {"value": "#000"},
          "text": {"field": "name"},
          "fontSize": {"value": 14}
        }
      }
    },
    {
      "type": "rect",
      "from": {"data": "events"},
      "properties": {
        "enter": {
          "x": {"scale": "x","field": "date"},
          "y": {"field": "y"},
          "width": {"value": 0.5},
          "height": {"field": {"group": "height"},"offset": 20},
          "fill": {"value": "#0090FF"}
        }
      }
    },
    {
      "type": "text",
      "from": {"data": "membres"},
      "properties": {
        "enter": {
          "x": {"scale": "x","field": "membre_end","offset": -2},
          "y": {"scale": "y","field": "label","offset": 6},
          "fill": {"value": "#000"},
          "text": {"field": "status"},
          "fontSize": {"value": 14}
        }
      }
    },
    {
      "type": "rect",
      "from": {"data": "chefs"},
      "properties": {
        "enter": {
          "x": {"scale": "x","field": "chef_start"},
          "x2": {"scale": "x","field": "chef_end"},
          "y": {"scale": "y","field": "label","offset": -3},
          "height": {"value": 10},
          "fill": {"value": "#2B2B2B"}
        }
      }
    },
    {
      "type": "rect",
      "from": {"data": "seconds"},
      "properties": {
        "enter": {
          "x": {"scale": "x","field": "second_start"},
          "x2": {"scale": "x","field": "second_end"},
          "y": {"scale": "y","field": "label","offset": -3},
          "height": {"value": 10},
          "fill": {"value": "#515151"}
        }
      }
    },
    {
      "type": "rect",
      "from": {"data": "membres"},
      "properties": {
        "enter": {
          "x": {"scale": "x","field": "membre_start"},
          "x2": {"scale": "x","field": "membre_end"},
          "y": {"scale": "y","field": "label"},
          "height": {"value": 4},
          "fill": {"value": "#777777"}
        }
      }
    },
    {
      "type": "text",
      "from": {"data": "membres"},
      "properties": {
        "enter": {
          "x": {"scale": "x","field": "membre_start"},
          "y": {"scale": "y","field": "label","offset": -7},
          "fill": {"value": "#000"},
          "text": {"field": "nom"},
          "fontSize": {"value": 14}
        }
      }
    }
  ]
}</graph>

Version du 23 février 2022 à 13:38