« Modèle:Documentation » : différence entre les versions

Alöndö na Wikipedia
Contenu supprimé Contenu ajouté
Page créée avec « <div class="template-documentation"><!-- These are the literal class definitions in common.css: →‎For template documentation : .template-documentation { clear: both;... »
 
m r2.7.3) (robot Ajoute : ab, ace, af, ak, als, am, ang, ar, arc, arz, as, av, az, ba, bar, bcl, be, bg, bh, bi, bjn, bn, bo, bpy, br, bs, bug, bxr, ca, cdo, ce, ceb, ch, chr, chy, ckb, cr, cs, cu, cv, cy, da, de, diq, dsb, dv, ee, el, en, eo, es, et, eu...
Legué Legué
{{pp-template|small=yes}}
{{pp-template|small=yes}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
[[ab:Ашаблон:Documentation]]
[[ace:Pola:Documentation]]
[[af:Sjabloon:Dokumentasie]]
[[ak:Şablon:Documentation]]
[[als:Vorlage:Dokumentation]]
[[am:መለጠፊያ:Documentation]]
[[ang:Bysen:Documentation]]
[[ar:قالب:توثيق]]
[[arc:ܩܠܒܐ:ܐܫܛܪܘܬܐ]]
[[arz:قالب:Documentation]]
[[as:সাঁচ:নথিকৰণ]]
[[av:Шаблон:Documentation]]
[[az:Şablon:Doc]]
[[ba:Ҡалып:Doc]]
[[bar:Vorlog:Dokumentation]]
[[bcl:Plantilya:Documentation]]
[[be:Шаблон:Дакументацыя]]
[[bg:Шаблон:Документация]]
[[bh:टेम्पलेट:Documentation]]
[[bi:Template:Documentation]]
[[bjn:Citakan:Documentation]]
[[bn:টেমপ্লেট:Documentation]]
[[bo:Template:Documentation]]
[[bpy:মডেল:Documentation]]
[[br:Patrom:Implijout patromoù]]
[[bs:Šablon:Dokumentacija]]
[[bug:Templat:Documentation]]
[[bxr:Template:Doc]]
[[ca:Plantilla:Ús de la plantilla]]
[[cdo:Template:Documentation]]
[[ce:Куцкеп:Doc]]
[[ceb:Plantilya:Dokumentasyon]]
[[ch:Template:Documentation]]
[[chr:Template:Documentation]]
[[chy:Template:Documentation]]
[[ckb:داڕێژە:Documentation]]
[[cr:Template:Documentation]]
[[cs:Šablona:Dokumentace]]
[[cu:Обраꙁьць:Doc]]
[[cv:Шаблон:Documentation]]
[[cy:Nodyn:Doc]]
[[da:Skabelon:Skabelon dokumentation]]
[[de:Vorlage:Dokumentation]]
[[diq:Şablon:Documentation]]
[[dsb:Pśedłoga:Dokumentacija]]
[[dv:ފަންވަތް:Documentation]]
[[ee:Template:Documentation]]
[[el:Πρότυπο:Τεκμηρίωση προτύπου]]
[[en:Template:Documentation]]
[[eo:Ŝablono:Dok]]
[[es:Plantilla:Documentación]]
[[et:Mall:Dokumentatsioon]]
[[eu:Txantiloi:Txantiloi dokumentazioa]]
[[fa:الگو:توضیحات]]
[[fi:Malline:Mallineohje]]
[[fj:Template:Documentation]]
[[fr:Modèle:Documentation]]
[[fy:Berjocht:Documentation]]
[[ga:Teimpléad:Doiciméadú]]
[[gag:Şablon:Documentation]]
[[gan:模板:Documentation]]
[[gd:Teamplaid:Documentation]]
[[gl:Modelo:Uso de marcador]]
[[glk:الگو:Documentation]]
[[got:𐍆𐌰𐌿𐍂𐌰𐌼𐌴𐌻𐌴𐌹𐌽𐍃:Documentation]]
[[gu:ઢાંચો:Documentation]]
[[gv:Clowan:Docamadys]]
[[ha:Template:Documentation]]
[[hak:Template:Documentation]]
[[he:תבנית:תיעוד]]
[[hi:साँचा:Documentation]]
[[hif:Template:Documentation]]
[[hr:Predložak:Dokumentacija]]
[[hsb:Předłoha:Dokumentacija]]
[[ht:Modèl:Documentation]]
[[hu:Sablon:Sablondokumentáció]]
[[hy:Կաղապար:Փաստաթղթեր]]
[[ia:Patrono:Documentation]]
[[id:Templat:Dokumentasi]]
[[ie:Avise:Documentation]]
[[ig:Àtụ:Documentation]]
[[ilo:Plantilia:Documentation]]
[[is:Snið:Documentation]]
[[it:Template:Man]]
[[iu:Template:Documentation]]
[[ja:Template:Documentation]]
[[jbo:Template:Documentation]]
[[jv:Cithakan:Dhokumèntasi]]
[[ka:თარგი:თარგის ინფო]]
[[kaa:Shablon:Documentation]]
[[kab:Talɣa:Documentation]]
[[kg:Template:Documentation]]
[[ki:Template:Documentation]]
[[kk:Үлгі:Doc]]
[[kl:Ilisserut:Documentation]]
[[km:ទំព័រគំរូ:Documentation]]
[[kn:ಟೆಂಪ್ಲೇಟು:Documentation]]
[[ko:틀:틀 설명문서]]
[[koi:Шаблон:Документтэз]]
[[krc:Шаблон:Doc]]
[[ks:فرما:دستاویزیکرن]]
[[ku:Şablon:Belgekirin]]
[[kw:Skantlyn:Documentation]]
[[ky:Калып:Документация]]
[[la:Formula:Documentation]]
[[lad:Xablón:Uso de Templates]]
[[lez:Шаблон:Doc]]
[[lg:Template:Documentation]]
[[li:Sjabloon:Documentation]]
[[lmo:Mudel:Documentation]]
[[ln:Modèle:Documentation]]
[[lo:ແມ່ແບບ:Documentation]]
[[lt:Šablonas:Documentation]]
[[ltg:Taiss:Dokumentaceja]]
[[lv:Veidne:Dokumentācija]]
[[map-bms:Cithakan:Dokumentasi]]
[[mg:Endrika:Documentation]]
[[mhr:Кышкар:Doc]]
[[mi:Template:Documentation]]
[[min:Templat:Documentation]]
[[mk:Шаблон:Документација]]
[[ml:ഫലകം:വിവരണം]]
[[mn:Загвар:Documentation]]
[[mr:साचा:Documentation]]
[[mrj:Шаблон:Doc]]
[[ms:Templat:Pendokumenan]]
[[mt:Mudell:Dokumentazzjoni]]
[[my:Template:Documentation]]
[[mzn:شابلون:توضیحات]]
[[nah:Nemachiyōtīlli:Documentation]]
[[nap:Modello:Documentation]]
[[nds-nl:Mal:Dokumentatie]]
[[ne:ढाँचा:Documentation]]
[[new:Template:Documentation]]
[[nl:Sjabloon:Sjabdoc]]
[[nn:Mal:Dokumentasjon]]
[[no:Mal:Dokumentasjon]]
[[nov:Template:Documentation]]
[[nso:Template:Documentation]]
[[ny:Template:Documentation]]
[[om:Template:Documentation]]
[[or:ଛାଞ୍ଚ:Documentation]]
[[os:Хуызæг:Doc]]
[[pa:ਫਰਮਾ:Documentation]]
[[pag:Template:Documentation]]
[[pam:Template:Documentation]]
[[pap:Template:Documentation]]
[[pcd:Modèle:Documentation]]
[[pi:पटिरूप:Documentation]]
[[pl:Szablon:Dokumentacja]]
[[pnb:Template:Documentation]]
[[pt:Predefinição:Documentação]]
[[qu:Plantilla:Plantillata llamk'achiy]]
[[rm:Model:Documentation]]
[[ro:Format:Documentație]]
[[ru:Шаблон:Doc]]
[[rue:Шаблона:Documentation]]
[[rw:Template:Documentation]]
[[sa:फलकम्:Documentation]]
[[sah:Халыып:Documentation]]
[[sc:Template:Documentation]]
[[scn:Template:Documentation]]
[[sco:Template:Documentation]]
[[sd:سانچو:Documentation]]
[[se:Málle:Documentation]]
[[sh:Šablon:Documentation]]
[[si:සැකිල්ල:ප්‍රලේඛනය]]
[[simple:Template:Documentation]]
[[sk:Šablóna:Dokumentácia]]
[[sl:Predloga:Dokumentacija]]
[[so:Template:Documentation]]
[[sq:Stampa:Dokumentacioni]]
[[sr:Шаблон:Документација]]
[[srn:Ankra:Documentation]]
[[stq:Foarloage:Dokumentation]]
[[su:Citakan:Documentation]]
[[sv:Mall:Dokumentation]]
[[sw:Kigezo:Documentation]]
[[ta:வார்ப்புரு:Documentation]]
[[te:మూస:Documentation]]
[[tg:Шаблон:Documentation]]
[[th:แม่แบบ:เอกสารกำกับแม่แบบ]]
[[tk:Şablon:Documentation]]
[[tl:Padron:Documentation]]
[[tn:Template:Documentation]]
[[tpi:Templet:Template doc]]
[[tr:Şablon:Belgeleme]]
[[ts:Template:Documentation]]
[[tt:Калып:Doc]]
[[tw:Template:Documentation]]
[[ty:Modèle:Documentation]]
[[ug:قېلىپ:Documentation]]
[[uk:Шаблон:Документація]]
[[ur:سانچہ:دستاویز]]
[[uz:Andoza:Documentation]]
[[vep:Šablon:Documentation]]
[[vi:Bản mẫu:Documentation]]
[[vo:Samafomot:Documentation]]
[[wa:Modele:Documentation]]
[[war:Batakan:Documentation]]
[[wuu:模板:Documentation]]
[[xal:Кевләр:Documentation]]
[[xh:Template:Documentation]]
[[xmf:თარგი:თანგიშ ინფო]]
[[yo:Àdàkọ:Aṣàlàyé]]
[[za:模板:Documentation]]
[[zh:Template:Documentation]]
[[zh-classical:Template:Documentation]]
[[zh-min-nan:Template:Documentation]]
[[zh-yue:Template:Documentation]]
[[zu:Template:Documentation]]
</noinclude>
</noinclude>

A gbian tënë ni na ngu 28 Fulundïgi 2013 à 10:22

[edit] [[[:Modèle:Purge]]] Template documentation

This template automatically displays a documentation box like you are seeing now, of which the content is transcluded from another page. It is intended for pages which are transcluded in other pages, i.e. templates, whether in the template namespace or not.

Usage

Normal /doc

<noinclude>{{Documentation}}</noinclude>

Any /doc page

<noinclude>{{Documentation|Template:any page/doc}}</noinclude>

In-line content

<noinclude>{{Documentation|content=This is documentation.}}</noinclude>

In-line content with [view][edit] links

<noinclude>{{Documentation
|1 = Template:any page/doc
|content ={{Template:any page/doc|parameters}}
}}</noinclude>

Best practice

This code should be added at the bottom of the template code, with no extra space before "<noinclude>" (which would cause extra space on pages where the template is used). The parameter can be used as shown above to transclude an arbitrary documentation page.

Categories and interwiki links that apply to the template itself should be added to the documentation page, inside <includeonly> </includeonly> tags. For more complex cases, see Wikipedia:Template documentation#Categories and interwiki links.

If the documentation page contains includeonly or noinclude tags as part of the documentation, replace the "<" with "&lt;".

Customizing display

Overrides exist to customize the output in special cases:

  • {{documentation| heading = ...}} − change the text of the "documentation" heading. If this is set to blank, the entire heading line (including the first [edit] link) will also disappear.

Functions

If the documentation page doesn't exist, the "edit" link includes a preload parameter so that clicking it will pre-fill the edit form with the basic documentation page format.

Rationale

Use of this template allows templates to be protected where necessary, while allowing anyone to edit the documentation, categories, and interwiki links.

See also

Modèle:Documentation/doc/see also

ak:Şablon:Documentation