Modèle

Différences entre versions de « Citation-fr »

De Mi caja de notas

(Page créée avec « <includeonly><span class="h-cite">{{#if: {{{published|}}}|<span class="dt-published">{{{published}}}</span> }}{{#if: {{{author|}}}|<span class="p-author">{{{author}}}<... »)
 
Ligne 1 : Ligne 1 :
<includeonly><span class="h-cite">{{#if: {{{published|}}}|<span class="dt-published">{{{published}}}</span>&#32;}}{{#if: {{{author|}}}|<span class="p-author">{{{author}}}</span>:&#32;}}<cite><a class="u-url p-name" href="{{{url}}}">{{{title}}}</a></cite>{{#if: {{{archiveurl|}}}|&#32;(<a href="{{{archiveurl}}}" class="u-url">archived</a>)}}</span></includeonly><noinclude>{{citation/doc}}</noinclude>
+
<includeonly><span class="h-cite">{{#if: {{{published|}}}|<span class="dt-published">{{{published}}}</span>&#32;}}{{#if: {{{author|}}}|<span class="p-author">{{{author}}}</span>:&#32;}}<cite><a class="u-url p-name" href="{{{url}}}">{{{title}}}</a></cite>{{#if: {{{archiveurl|}}}|&#32;(<a href="{{{archiveurl}}}" class="u-url">archived</a>)}}</span></includeonly><noinclude>{{citation-fr/doc}}</noinclude>

Version du 28 mars 2018 à 03:46

Ce modèle est utilisé pour générer une citation avec les microformats h-cite appropriés.

Modèle blanc

Copiez, collez et remplissez avec l'information :

{{citation-fr
| title =
| url = 
| author =
| published =
| archiveurl = 
}}

Paramètres

title
titre du travail étant cité
url
URL du travail étant cité.
author
nom de l'auteur (facultatif, mais recommandé)
published
date de publication au format AAAA-MM-JJ (facultatif, mais recommandé)
archiveurl
URL de la copie archivée telle que Wayback Machine (facultatif, mais recommandé)

Exemples

{{citation-fr
| title = Remember WordPress' Pingbacks? The W3C wants us to use them across the whole web
| url = http://www.theregister.co.uk/2016/02/18/remember_wordpress_pingbacks_the_w3c_wants_us_to_use_them_across_the_whole_web/
| author = [https://luxagraf.net/ Scott Gilbertson]
| published = 2016-02-18
| archiveurl = http://web.archive.org/web/20170629220602/http://www.theregister.co.uk/2016/02/18/remember_wordpress_pingbacks_the_w3c_wants_us_to_use_them_across_the_whole_web/
}}

Générera :

2016-02-18 Scott Gilbertson: Remember WordPress' Pingbacks? The W3C wants us to use them across the whole web (archived)

{{citation-fr
| title = <A>
| url = https://adactio.com/articles/10887
| author = {{adactio}}
| published = 2016-06-28
| archiveurl = http://web.archive.org/web/20170629220709/https://adactio.com/articles/10887
}}

Générera:

2016-06-28 portrait Jeremy Keith: <A> (archived)