User:Clément Combier: Difference between revisions

    From UNITApedia
    No edit summary
    Tag: Reverted
    No edit summary
    Tag: Manual revert
     
    (36 intermediate revisions by the same user not shown)
    Line 1: Line 1:
    [[User:Clément Combier|LCC]] ([[User talk:Clément Combier|talk]]) 14:27, 28 May 2024 (UTC)
    {{#get_web_data:
     
      |url    = https://unitapedia.univ-unita.eu/strapi/api/public-disseminations?populate=*,Dissemination.social-media
    {{#get_file_data:source=DDD|file name=rural-mobility.csv|format=csv with header|delimiter=;|data=title=titre,local partner=partenaire local,address=adresse,latitude=lalitute,longitude=longitude,first start date=premiere date de début possible,last start date=dernière date de début possible,minimum duration=durée minimum,maximum duration=durée maximum,number of place=nombre de places,level=niveau,university=Université}}
      |format = json
     
      |data   =  
     
        DisseminationID      = id,
        EntryDate            = EntryDate,
        Platform            = platform,
        Views                = views,
        GainedFollowers      = gained_followers,
        Followers            = followers,
        Activities          = activities
      |debug  = 1
    }}


    {{#store_external_table:rural mobility
    <!-- Store each dissemination as a subobject -->
      |title={{{title}}}
    {{#store_external_table: StrapiPublicDissemination
      |local partner={{{local partner}}}
       |DisseminationID      = {{{DisseminationID}}}
      |address={{{address}}}
       |EntryDate            = {{{EntryDate}}}
      |latitude={{{latitude}}}
       |Platform            = {{{Platform}}}
      |longitude={{{longitude}}}
       |Views                = {{{Views}}}
      |Has coordinates={{{latitude|}}}, {{{longitude|}}}
       |GainedFollowers      = {{{GainedFollowers}}}
       |first start date={{{first start date}}}
       |Followers            = {{{Followers}}}
       |last start date={{{last start date}}}
       |Activities          = {{{Activities}}}
       |minimum duration={{{minimum duration}}}
       |maximum duration={{{maximum duration}}}
       |number of place={{{number of place}}}
       |level={{{level}}}
       |university={{{university}}}
    }}
    }}


    <!-- Query and display all dissemination records in a table -->
    {{#ask: [[-Has subobject::{{FULLPAGENAME}}]]
    {{#ask: [[-Has subobject::{{FULLPAGENAME}}]]
    |?title|?local partner|?address|?latitude|?longitude|?Has coordinates|?first start date|?last start date|?minimum duration|?maximum duration|?number of place|?level|?university
    |?DisseminationID
    |class=datatable
    |?EntryDate
    |format=datatables
    |?Platform
    |mainlabel=-
    |?Views
    |?GainedFollowers
    |?Followers
    |?Activities
    |format=table
    |class=datatable  
    |format=datatables  
    |mainlabel=-  
    |header=show
    }}
    }}

    Latest revision as of 13:52, 28 January 2025