« Initiation au Lua avec Scribunto/L'objet URI » : différence entre les versions

Contenu supprimé Contenu ajouté
mise à jour
rédaction
Ligne 70 :
<code style="white-space:nowrap">mw.uri.fullUrl( page, query )</code>
 
ReturnsRetourne aun [[#ObjetL'objet URI|URIobjet objectURI]] forpour thel'URL fullcomplet urlde for acette page, withavec une optionalrequête queryoptionnelle string/table.
 
<br />
Ligne 80 :
<code style="white-space:nowrap">mw.uri.canonicalUrl( page, query )</code>
 
ReturnsRetourne aun [[#ObjetL'objet URI|URIobjet objectURI]] for the canonical url for a page, with optional query string/table.
 
<br />
Ligne 120 :
<code style="white-space:nowrap">mw.uri.localUrl( page, query )</code>
 
ReturnsRetourne aun [[#ObjetL'objet URI|URIobjet objectURI]] for the local url for a page, with optional query string/table.
 
<br />
Ligne 140 :
<code style="white-space:nowrap">mw.uri.new( s )</code>
 
ConstructsConstruit aun newnouveau [[#ObjetL'objet URI|URIobjet objectURI]] forpour thela passedchaîne stringou orla table passé en argument. SeeVoir thela description ofde URIl'objet objectsURI forpour theles possiblechamps fieldspossibles forde thela table.
 
<br />