Modèle:File : Différence entre versions

De ArchwikiFR
m
m
Ligne 14 : Ligne 14 :
  
 
{{File|name=file_name|content=Content of file_name}}</noinclude><includeonly><div style="padding: 0.25em; margin: 0.50em 0 0 0; background-color: #E7FFE7; border: thin dashed #7F7F7F; border-bottom: thin solid #7F7F7F"><strong>Fichier: <tt>{{{name}}}</tt></strong></div>
 
{{File|name=file_name|content=Content of file_name}}</noinclude><includeonly><div style="padding: 0.25em; margin: 0.50em 0 0 0; background-color: #E7FFE7; border: thin dashed #7F7F7F; border-bottom: thin solid #7F7F7F"><strong>Fichier: <tt>{{{name}}}</tt></strong></div>
<pre><style="padding: 0.25em; margin: 0 0 0.50em 0; background-color: #F7F7F7; border: thin dashed #7F7F7F; border-top: none">{{{content}}}</pre></includeonly>
+
<pre style="padding: 0.25em; margin: 0 0 0.50em 0; background-color: #F7F7F7; border: thin dashed #7F7F7F; border-top: none">{{{content}}}</pre></includeonly>

Version du 26 avril 2014 à 20:59

Cette page est un modèle, pour plus d'informations, lire Aide:Modèle

A 'File' box used to display file contents.

Usage

{{File|name=file_name|content=Content of file_name}}

Note : Named parameters are required, or formatting fails whenever an 'equal' sign is encountered in the 'content'. Additionally, 'content' containing wiki markup should be surrounded in <nowiki> tags, like so:
{{File|name=file_name|content=<nowiki>Content of file_name with [[wiki markup]] and '''other''' {{weirdness}}</nowiki>}}

Example

Fichier: file_name
Content of file_name