Différences entre les versions de « Modèle:Books »
De Semantic MediaWiki - Sandbox
(+ noeditsection) |
Balise : Éditeur de wikicode 2017 |
||
Ligne 2 : | Ligne 2 : | ||
== Description == | == Description == | ||
This is the template to display books. See also the [[Template:BooksRatingQuery|"BooksRatingQuery" template (ratings)]] embedded on this template. | This is the template to display books. See also the [[Template:BooksRatingQuery|"BooksRatingQuery" template (ratings)]] embedded on this template. | ||
+ | |||
+ | {{#get_web_data:url={{SERVER}}/api.php?action=query&prop=extracts&exchars=150&titles={{PAGENAMEE}}&exsectionformat=plain&explaintext&format=json | ||
+ | |format=json | ||
+ | |use jsonpath | ||
+ | |data=Table=$.query.pages.{{PAGEID}}.title,DescT=$.query.pages.{{PAGEID}}.extract, | ||
+ | }} | ||
+ | {{#set:DescT={{#external_value:DescT}}}} | ||
== Code == | == Code == |
Version du 21 février 2024 à 15:23
Description
This is the template to display books. See also the "BooksRatingQuery" template (ratings) embedded on this template.
Erreur : JSON non valide ($2).
Code
== Title == [[Has book title::{{{Title|}}}]] == Author == [[Has book author::{{{Author|}}}]] == Publisher == [[Has book publisher::{{{Publisher|}}}]] == Published == [[Has book publishing year::{{{Publishing year|}}}]], [[Has book publishing country::{{{Publishing country|}}}]] == Language == [[Has book publishing language::{{{Publishing language|}}}]] == ISBN == [[Has book ISBN::{{{ISBN|}}}]] == Rating == {{#set: |Has book rating={{{Rating|}}} |template=BooksRatingQuery }} [[Category:Books]]
Template data
Books are important (fr)
Paramètre | Description | Type | Statut | |
---|---|---|---|---|
Title | Title | aucune description | Chaîne | suggéré |
Author | Author | aucune description | Inconnu | suggéré |
Publisher | Publisher | aucune description | Inconnu | facultatif |
Publishing year | Publishing year | aucune description | Inconnu | suggéré |
Publishing country | Publishing country | aucune description | Inconnu | facultatif |
Publishing language | Publishing language | aucune description | Inconnu | facultatif |
ISBN | ISBN | aucune description | Inconnu | facultatif |
Rating | Rating | aucune description | Inconnu | facultatif |