Template:Local-specific: Difference between revisions

From Electrical Installation Guide
m (Protected "Template:Local-specific" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(update as PROD-FR latest version)
 
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{1|}}}}}
<includeonly>{{#switch: {{lc:{{{1|{{{text|}}}}}}}}
  | start = <div class="local-specific-section">
  | start = <div class="local-specific-section">
  | end = </div>
  | end = </div>
  | = class="local-specific"
  | = class="local-specific"
  | #default = <span class="local-specific-text">{{{1}}}</span>
  | #default = <span class="local-specific-text">{{{1|{{{text|}}}}}}</span>
}}</includeonly><noinclude>
}}</includeonly><noinclude>


Line 15: Line 15:
There are 3 different possible usage:
There are 3 different possible usage:


  * for a piece of local specific text:    <nowiki>{{Local-specific|<text>}}</nowiki>
  * for a piece of local specific text:    <nowiki>{{Local-specific|text=<text>}}</nowiki>


  * for a complete local specific section:
  * for a complete local specific section:
Line 24: Line 24:




<templatedata>
{
"params": {
"text": {
"aliases": [
"1"
],
"label": "Texte spécifique France",
"description": "Texte qui sera ajouté au contenu et mis en surbrillance",
"example": "selon la norme NF C 15-100",
"type": "unbalanced-wikitext",
"required": true
}
},
"description": "Permet de mettre en surbrillance un texte spécifique aux normes et habitudes France",
"format": "inline"
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 15:44, 23 December 2020


Description

This template is used to manage LOCAL specific contents (to apply special formatting)

There are 3 different possible usage:

* for a piece of local specific text:     {{Local-specific|text=<text>}}
* for a complete local specific section:
     * at the beginning:                  {{Local-specific|start}}
     * at the end:                        {{Local-specific|end}}
* for a complete cell in a table          | {{Local-specific}} | content of the cell


Permet de mettre en surbrillance un texte spécifique aux normes et habitudes France

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Texte spécifique Francetext 1

Texte qui sera ajouté au contenu et mis en surbrillance

Example
selon la norme NF C 15-100
Unbalanced wikitextrequired