Mall:Dokumentatsioon: erinevus redaktsioonide vahel
Eemaldatud sisu Lisatud sisu
Resümee puudub |
P Tühistati kasutaja 86.173.149.162 (arutelu) tehtud muudatused ja pöörduti tagasi viimasele muudatusele, mille tegi Sije. |
||
1. rida: | 1. rida: | ||
<noinclude> |
|||
<!-- |
|||
{{ #ifeq: {{SUBPAGENAME}} | sandbox |
|||
| {{Template sandbox notice}} |
|||
-->{{#ifeq: {{SUBPAGENAME}} | liivakast |
|||
}} |
|||
| <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}} |
|||
{{intricate}} |
|||
}}<!-- |
|||
</noinclude><div class="template-documentation">{{ |
|||
Automatically add {{pp-template}} to protected templates. |
|||
#if: {{{heading|Documentation}}} |
|||
-->{{template other |
|||
|<!-- has heading --><div style="padding-bottom: {{{heading-padding|3px}}}; border-bottom: 1px solid #aaa; margin-bottom: {{{heading-margin|1ex}}}"><span class="editsection plainlinks" id="doc_editlinks">{{ |
|||
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop |
|||
#ifexist: {{{1|{{Dokumentatsioon/docname}}}}} |
|||
| {{pp-template|docusage=yes}} |
|||
|<!-- /doc exists -->[[{{fullurl:{{{1|{{Dokumentatsioon/docname}}}}}|action=edit}} redigeeri]] |
|||
| {{#if: {{PROTECTIONLEVEL:edit}} |
|||
|<!-- no /doc -->{{ |
|||
| {{pp-template|docusage=yes}} |
|||
#if: {{{content|}}} |
|||
| <!--Not protected, or only semi-move-protected--> |
|||
|<!-- has content --> |
|||
|<!-- no content -->[[{{fullurl:{{{1|{{Dokumentatsioon/docname}}}}}|action=edit&preload={{{preload-doc|Template:Documentation/preload}}}}} Loo]] |
|||
}} |
}} |
||
}}</span> <span style="{{{heading-style|font-size: 150%}}}">[[Pilt:Template-info.svg|50px]] {{{heading|Malli dokumentatsioon}}}</span></div> |
|||
|<!-- empty heading --> |
|||
}}<div id="template_doc_page_transcluded" class="dablink plainlinks">{{ |
|||
#ifeq: {{{transcluded|show}}} | show |
|||
|<!-- transcluded show -->{{ |
|||
#ifexist: {{{1|{{Dokumentatsioon/docname}}}}} |
|||
|<!-- /doc exists -->:''Selle malli dokumentatsioon on liidetud [[{{{1|{{Dokumentatsioon/docname}}}}}]] lehelt''. <small style="font-style: normal">(<!--[[{{{1|{{Dokumentatsioon/docname}}}}}|view]] | -->[{{fullurl:{{{1|{{Dokumentatsioon/docname}}}}}|action=edit}} redigeeri] | [{{fullurl:{{{1|{{Dokumentatsioon/docname}}}}}|action=history}} ajalugu])</small><br /> |
|||
|<!-- no /doc --> |
|||
}} |
}} |
||
|<!-- transcluded hide --> |
|||
}}<!-- |
|||
}}{{ |
|||
Start of green doc box. |
|||
#switch: {{SUBPAGENAME}} |
|||
-->{{dokumentatsioon/alustada lahter 2 |
|||
|sandbox=<!-- sandbox --> |
|||
| preload = {{{preload|}}} <!--Allow custom preloads--> |
|||
|testcases=<!-- testcases --> |
|||
| heading = {{{heading|¬}}} <!--Empty but defined means no header--> |
|||
|#default={{ |
|||
| heading-style = {{{heading-style|}}} |
|||
#switch: {{SUBJECTSPACE}}/{{{sandbox-testcases|show}}} |
|||
| content = {{{content|}}} |
|||
|{{ns:template}}/show|{{ns:user}}/show=<!-- show /sandbox /testcases -->{{ |
|||
#ifexist: {{ #rel2abs: /sandbox }} |
|||
<!--Some namespaces must have the /doc, /sandbox and /testcases |
|||
|<!-- /sandbox -->This template has a [[/sandbox|sandbox]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit])</small> {{ |
|||
in talk space--> |
|||
#ifexist: {{ #rel2abs: /testcases }} |
|||
| docspace = {{dokumentatsioon/docspace}} |
|||
|<!-- /sandbox AND /testcases -->and [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small> for editors to experiment. |
|||
|<!-- /sandbox AND no /testcases --> for editors to experiment.}} |
|||
| 1 = {{{1|}}} <!--Other docname, if fed--> |
|||
|<!-- no /sandbox -->{{ |
|||
#ifexist: {{ #rel2abs: /testcases }} |
|||
<!--The namespace is added in /start box2--> |
|||
|<!-- no /sandbox AND /testcases -->This template has [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small> for editors to experiment. |
|||
| template page = {{dokumentatsioon/template page}} |
|||
|<!-- no /sandbox AND no /testcases -->}} |
|||
}} |
|||
}}<!-- Start content --><!-- |
|||
|<!-- hide /sandbox /testcases --> |
|||
Start load the /doc content: |
|||
}} |
|||
Note: The line breaks between this comment and the next line are necessary |
|||
}}</div> |
|||
so "=== Headings ===" at the start and end of docs are interpreted. |
|||
{{{content|{{ {{ #ifexist: {{{1|{{Dokumentatsioon/docname}}}}} | {{{1|{{Dokumentatsioon/docname}}}}} | ns:0 }} }}}}} |
|||
--> |
|||
</div><noinclude> |
|||
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{dokumentatsioon/docspace}}:{{dokumentatsioon/template page}}/doc|1|0}} |
|||
[[als:Vorlage:Dokumentation]] |
|||
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 |
|||
[[ar:قالب:توثيق]] |
|||
| 1111 = {{{content|}}} |
|||
[[as:Template:Documentation]] |
|||
| 0110 | 0111 = {{ {{{1}}} }} |
|||
[[id:Templat:Dokumentasi]] |
|||
| 0001 | 0011 = {{ {{dokumentatsioon/docspace}}:{{dokumentatsioon/template page}}/doc }} |
|||
[[map-bms:Cithakan:Dokumentasi]] |
|||
| 0000 | 0100 | 0010 | 0101 = |
|||
[[ba:Ҡалып:Doc]] |
|||
}} |
|||
[[bar:Vorlage:Dokumentation]] |
|||
<!-- |
|||
[[br:Patrom:Implijout patromoù]] |
|||
End load the /doc content: |
|||
[[bs:Šablon:Dokumentacija]] |
|||
Note: The line breaks between this comment and the previous line are necessary |
|||
[[bg:Шаблон:Документация]] |
|||
so "=== Headings ===" at the start and end of docs are interpreted. |
|||
[[ca:Plantilla:Ús de la plantilla]] |
|||
-->{{dokumentatsioon/lõpuks lahter 2 |
|||
[[cs:Šablona:Dokumentace]] |
|||
| preload = {{{preload|}}} <!--Allow custom preloads--> |
|||
[[cy:Nodyn:Doc]] |
|||
| content = {{{content|}}} |
|||
[[da:Skabelon:Dokumentation]] |
|||
| link box = {{{link box|}}} <!--So "link box=off" works--> |
|||
[[de:Vorlage:Dokumentation]] |
|||
[[dsb:Pśedłoga:Dokumentacija]] |
|||
<!--Some namespaces must have the /doc, /sandbox and /testcases |
|||
[[el:Πρότυπο:Τεκμηρίωση προτύπου]] |
|||
in talk space--> |
|||
[[en:Template:Documentation]] |
|||
| docspace = {{dokumentatsioon/docspace}} |
|||
[[es:Plantilla:Documentación]] |
|||
[[eo:Ŝablono:Dok]] |
|||
| 1 = {{{1|}}} <!--Other docname, if fed--> |
|||
[[eu:Txantiloi:Txantiloi dokumentazioa]] |
|||
[[fa:الگو:توضیحات]] |
|||
<!--The namespace is added in /end box2--> |
|||
[[fr:Modèle:Documentation]] |
|||
| template page = {{dokumentatsioon/template page}} |
|||
[[ga:Teimpléad:Documentation]] |
|||
[[gl:Modelo:Uso de marcador]] |
|||
}}<!-- |
|||
[[ko:틀:틀 설명문서]] |
|||
End of green doc box |
|||
[[hy:Կաղապար:Փաստաթղթեր]] |
|||
--><noinclude> |
|||
[[hsb:Předłoha:Dokumentacija]] |
|||
[[ia:Patrono:Documentation]] |
|||
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
|||
[[it:Template:Man]] |
|||
[[he:תבנית:תיעוד]] |
|||
[[sw:Kigezo:Documentation]] |
|||
[[ku:Şablon:Belgekirin]] |
|||
[[la:Formula:Documentation]] |
|||
[[lad:Xablón:Uso de Templates]] |
|||
[[lez:Шаблон:Doc]] |
|||
[[ltg:Taiss:Dokumentaceja]] |
|||
[[hu:Sablon:Sablondokumentáció]] |
|||
[[lv:Veidne:Dokumentācija]] |
|||
[[ml:ഫലകം:വിവരണം]] |
|||
[[ms:Templat:Dokumentasi]] |
|||
[[nl:Sjabloon:Sjabdoc]] |
|||
[[nds-nl:Mal:Dokumentatie]] |
|||
[[ja:Template:Documentation]] |
|||
[[no:Mal:Dokumentasjon]] |
|||
[[pl:Szablon:Dokumentacja]] |
|||
[[pt:Predefinição:Documentação]] |
|||
[[ro:Format:Documentație]] |
|||
[[ru:Шаблон:Doc]] |
|||
[[stq:Foarloage:Dokumentation]] |
|||
[[nso:Template:Documentation]] |
|||
[[sq:Stampa:Dokumentacion]] |
|||
[[se:Málle:Documentation]] |
|||
[[simple:Template:Documentation]] |
|||
[[sk:Šablóna:Dokumentácia]] |
|||
[[sl:Predloga:Dokumentacija]] |
|||
[[ckb:داڕێژە:Documentation]] |
|||
[[sr:Шаблон:Документација]] |
|||
[[sv:Mall:Dokumentation]] |
|||
[[tl:Suleras:Documentation]] |
|||
[[tt:Калып:Doc]] |
|||
[[te:మూస:Documentation]] |
|||
[[tpi:Template:Template doc]] |
|||
[[tr:Şablon:Belgeleme]] |
|||
[[uk:Шаблон:Документація]] |
|||
[[ur:سانچہ:Documentation]] |
|||
[[war:Template:Documentation]] |
|||
[[yo:Àdàkọ:Aṣàlàyé]] |
|||
[[diq:Template:Documentation]] |
|||
[[zh:Template:Documentation]] |
|||
</noinclude> |
</noinclude> |
Redaktsioon: 22. veebruar 2013, kell 11:02
See mall sisaldab keerulisi süntaksielemente. Enne selle malli redigeerimist tuleks end kurssi viia selle ülesehituse ja parserifunktsioonidega. Kui redigeerimisel tekib ettenägematuid probleeme, pöördu palun kiiresti tagasi viimastele muudatustele, sest seda malli kasutavad paljud lehed. Palun katseta muudatuste tegemist kas malli liivakastis või oma kasutajalehe alamlehel, enne kui teed muudatusi siin. |
[redigeeri] Malli dokumentatsioon
- Selle malli dokumentatsioon on liidetud Mall:Dokumentatsioon/doc lehelt. (redigeeri | ajalugu)
Kasutab stiile asukohas: |
Palun lisa mallile õpetus selle malliga
Kasutamine
- Lisa lehe lõppu
<noinclude> {{dokumentatsioon}} <!-- Lisa kategooriad malli /doc lehele, aga mitte siia! --> </noinclude>
Soovi korral saab mallile lisada mõne teise malli dokumentatsiooni:
<noinclude> {{dokumentatsioon |Mall:Lehekülg/doc}} <!-- Lisa kategooriad malli /doc lehele, aga mitte siia! --> </noinclude>
Automaatsed funktsioonid
Kui mall lisatakse alamlehele "/liivakast", lisatakse automaatselt {{Malli liivakast}}.
Põhjendus
- Selle malli kasutamine võimaldab kaitsta malle, neid vajadusel lukustades, jättes aga igaühele võimaluse redigeerida dokumentatsiooni ja kategooriaid.
- Tekst malli enda lehel suurendab teksti mahtu, mis on vaja läbi töödelda selleks, et kuvada malli ennast, ning see on piiratud sooritusvõimega (2 048 000 baiti). Dokumentatsiooni paigutamine alamleheküljele aga vähendab vikiteksti osa malli enda leheküljel üksnes malli väljakutsumise ja noinclude märgisteni. Sellel põhjusel on MediaWiki arendajad soovitanud taolist süsteemi.