„Sablon:Dokumentációs allap/doc” változatai közötti eltérés

Tartalom törölve Tartalom hozzáadva
a Tacsipacsi átnevezte a(z) Sablon:Documentation subpage/doc lapot Sablon:Dokumentációs allap/doc lapra átirányítás nélkül: magyarul
magyarítás, TemplateData-dokumentáció, irreleváns részek ki
 
1. sor:
{{dokumentációs allap}}
== Usage ==
: {{tlx|Documentation subpage}}
: or
: {{tlx|Documentation subpage |[[{{var|Page where the documentation [[Wikipedia:Transclusion|transcluded]]}}]]}}
 
== Használat ==
===Userbox documentation===
: {{tlx|Dokumentációs allap}}
To set this template to use "userbox" and "userbox page" rather than "{{lc:{{ns:Template}}}}" and "{{lc:{{ns:Template}}}} page" or "{{lc:{{ns:User}}}} template" and "{{lc:{{ns:User}}}} template page", use:
: vagy
: {{tlx|Userbox documentation subpage}}
: {{tlx|Dokumentációs allap|[[{{var|Page where the documentation [[Wikipedia:Transclusion|transcluded]]}}]]}}
: or
: {{tlx|Userbox documentation subpage |[[{{var|userbox page}}]]}}
 
<templatedata>
===Text customization===
{
The parameters {{para|text1}} and/or {{para|text2}} can be used to set the text of, respectively, the template's first and second lines. If ''text1'' is set but not ''text2'', both lines' text will derive from ''text1'':
"format": "inline",
{{Hidden begin |showhide=left |title=With ''text1'' and ''text2''}}
"params": {
<code><nowiki>{{Documentation subpage |text1='''''text1 appears here''''' |text2='''''text2 appears here'''''}}</nowiki></code>
"1": {
{{Documentation subpage |[''page''] |text1='''''text1 appears here''''' |text2='''''text2 appears here''''' |override={{lc:{{SUBPAGENAME}}<!-- Hack to allow example to appear, even when viewed from [[Template:Documentation subpage]] -->}}}}
"label": "név",
{{Hidden end}}
"description": "A sablon neve; az „Ez a lap a(z) <név> dokumentációja” mondatban jelenik meg",
{{Hidden begin |showhide=left |title=With ''text2'' only}}
"type": "string",
<code><nowiki>{{Documentation subpage |text2='''''text2 appears here'''''}}</nowiki></code>
"default": "<a sablon neve>"
{{Documentation subpage |[''page''] |text2='''''text2 appears here''''' |override={{lc:{{SUBPAGENAME}}<!-- Hack to allow example to appear, even when viewed from [[Template:Documentation subpage]] -->}}}}
},
{{Hidden end}}
"allapnév": {
{{Hidden begin |showhide=left |title=With ''text1'' only}}
"aliases": [
<code><nowiki>{{Documentation subpage |text1='''''text1 appears here'''''}}</nowiki></code>
"override"
{{Documentation subpage |[''page''] |text1='''''text1 appears here''''' |override={{lc:{{SUBPAGENAME}}<!-- Hack to allow example to appear, even when viewed from [[Template:Documentation subpage]] -->}}}}
],
{{Hidden end}}
"label": "allapnév",
"description": "A dokumentációs allap neve, csak a megadott nevű allapon jelenik meg a sablon",
"example": "doc2",
"type": "line",
"default": "doc"
},
"doboz": {
"aliases": [
"doc-notice"
],
"label": "doboz",
"description": "A figyelemfelhívó doboz „show” vagy „mutat” érték esetén (vagy a paraméter elhagyásakor) megjelenik, egyébként nem",
"type": "line",
"default": "mutat"
},
"text1": {
"aliases": [
"text2"
],
"label": "megnevezés",
"description": "A sablon megnevezése, alapértelmezetten „sablon”, „modul”, „szerkesztői sablon”, „szócikk” stb. (a névtértől függően)",
"type": "string"
},
"defaultsort": {
"label": "alapértelmezett rendezési kulcs",
"description": "A sablondokumentáció kategóriáiban használt alapértelmezett rendezési kulcs",
"type": "line",
"default": "<a sablon neve>"
},
"minta": {
"aliases": [
"inhibit"
],
"label": "minta",
"description": "Ha bármilyen értéket kap, nem kategorizál ez a sablon",
"type": "line"
}
}
}
</templatedata>
 
===Other parameters=Megjelenés ==
Ezt a sablont általában a /doc allapok tetejére kell elhelyezni. A kimenete az aktuálisan megtekintett laptól függ:
{{para|inhibit|yes}} will prevent this template from generating any categories. (By default, "''Namespace'' documentation pages" (usually [[:Category:Template documentation pages]]) is added, or [[:Category:Documentation subpages without corresponding pages]] if the main page doesn't exist.)
* Egy /doc lapon egy, a sablondokumentációt elmagyarázó és a sablonlapra hivatkozó dobozt jelenít meg.
 
* Más (vagyis a /doc allapot beillesztő) lapokon a sablon nem jelenik meg. Maga a sablonlap (ami tartalmazza {{tl|Sablondokumentáció}} sablont) automatikusan észleli, hogy a dokumentáció be van illesztve egy allapról.
== Display ==
<includeonly>[[Kategória:Sablondokumentációk| ]]</includeonly>
This template should normally be placed at the top of /doc pages. It changes output depending on where it is viewed:
* On a /doc page, it displays a box explaining template documentation and links to the template page.
* On other pages&nbsp;– i.e. pages transcluding the /doc page&nbsp;– the template will not show. The template page itself (which contains <code>{{tl|Documentation}}</code>) will automatically note that the documentation is [[Wikipedia:Transclusion|transcluded]] from a subpage.
 
== Functions ==
In addition to its message, the template adds pages to [[:Category:Template documentation pages]], [[:Category:User documentation pages]], or similar (named after the subject space), but only for documentation pages in namespaces with the subpage feature. It defaults the [[m:Help:Categories#Sort order|sort key]] to the page name without namespace: Template:Foo, for example, would be sorted as "Foo", i.e. under "F".
 
== See also ==
{{Documentation/see also}}
{{User Talk Pages}}
{{Userspace Disclaimers}}
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!--Categories below here, please; interwikis to Wikidata.-->
[[Category:Template documentation| ]]
[[Category:Template namespace templates]]
}}</includeonly>