Skabelon:Dokumentation
Denne skabelon viser automatisk en dokumentationsboks som du ser på nu, hvor indholdet er indlejret fra en anden side. Indlejringen (transkluderet) kan bruges uanset om skabelonen bruges i et navnerum eller ej.
Brug
redigérNormal /doc
redigér<noinclude>{{Dokumentation}}</noinclude>
Sidenavn /doc
redigér<noinclude>{{Dokumentation|Skabelon:Sidenavn/doc}}</noinclude>
In-line indhold
redigér<noinclude>{{Dokumentation|content=Dette er dokumentationen}}</noinclude>
In-line indhold med [view][edit] links
redigér<noinclude>{{Dokumentation |1 = Skabelon:Sidenavn/doc |content ={{Skabelon:Sidenavn/doc|parameters}} }}</noinclude>
Bedste øvelser
redigérThis 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 "<".
Customizing display
redigérOverrides exist to customize the output in special cases:
{{dokumentation| overskrift = ...}}
− 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.
Funktioner
redigérIf 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.