Mal:Dokumentasjon: Forskjell mellom sideversjoner

Fra Wikisida.no
Hopp til navigering Hopp til søk
(eksempel -> eksempler)
(oppdaterer fra enwp, endrer 'eksempler' → 'testtilfeller' som oversettelse av 'test cases')
Linje 1: Linje 1:
<!--
<noinclude>{{Komplisert_mal}}
Automatically add {{template sandbox notice}} when on a /sandkasse page.
</noinclude><div class="template-documentation">{{
-->{{#ifeq: {{SUBPAGENAME}} | sandkasse
#if: {{{heading|Dokumentasjon}}}
| <div style="clear: both;"></div>{{template sandbox notice|{{{livepage|}}}}}
|<!-- 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">{{
}}<!--
#ifexist: {{{1|{{Dokumentasjon/docname}}}}}
Automatically add {{pp-template}} to protected templates.
|<!-- /doc exists -->[[{{fullurl:{{{1|{{Dokumentasjon/docname}}}}}}} se]] [[{{fullurl:{{{1|{{Dokumentasjon/docname}}}}}|action=edit}} rediger]] [[{{fullurl:{{{1|{{Dokumentasjon/docname}}}}}|action=history}} historikk]] [{{Oppdater|oppdater}}]
-->{{template other
|<!-- no /doc -->{{
| {{#ifeq: {{PROTECTIONLEVEL:move}} | sysop
#if: {{{content|}}}
| {{pp-template|docusage=yes}}
|<!-- has content -->
| {{#if: {{PROTECTIONLEVEL:edit}}
|<!-- no content -->[[{{fullurl:{{{1|{{Dokumentasjon/docname}}}}}|action=edit&preload=Mal:Dokumentasjon/Preload&editintro=Mal:Dokumentasjon/Editintro}} opprett]]
| {{pp-template|docusage=yes}}
| <!--Not protected, or only semi-move-protected-->
}}
}}
}}</span> <span style="{{#if:{{{heading-style|}}}|{{{heading-style}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|font-weight: bold; font-size: 125%|font-size: 150%}}}}">{{#if:{{{heading|}}}|{{{heading}}}|{{#ifeq:{{NAMESPACE}}|{{ns:template}}|[[Fil:Template-info.svg|50px]] Maldokumentasjon|Dokumentasjon}}}}</span></div>
|<!-- empty heading -->
}}
{{{content|{{ {{ #ifexist: {{{1|{{Dokumentasjon/docname}}}}} | {{{1|{{Dokumentasjon/docname}}}}} | ns:0 }} }}}}}
</div>{{
#ifeq: {{{transcluded|vis}}} | vis
|<!-- transcluded show -->{{
#ifexist: {{{1|{{Documentation/docname}}}}}
|<!-- /doc exists --><div id="template_doc_page_transcluded" class="dablink plainlinks template-documentation">Denne dokumentasjonen er [[Wikipedia:Transklusjon|transkludert]] fra [[{{{1|{{Dokumentasjon/docname}}}}}]]. <small style="font-style: normal">(<!--[[{{{1|{{Dokumentasjon/docname}}}}}|vis]] &#124; -->[{{fullurl:{{{1|{{Dokumentasjon/docname}}}}}|action=edit}} rediger] &#124; [{{fullurl:{{{1|{{Dokumentasjon/docname}}}}}|action=history}} historikk])</small><br />{{
#switch: {{SUBPAGENAME}}
|sandkasse=<!-- sandkasse -->
|eksempler=<!-- eksempler -->
|#default={{
#switch: {{SUBJECTSPACE}}/{{{sandkasse-eksempler|show}}}
|{{ns:template}}/show|{{ns:user}}/show=<!-- show /sandkasse /eksempler -->Bidragsyterne kan eksperimentere i denne malens {{
#ifexist: {{ #rel2abs: /sandkasse }}
|<!-- /sandkasse --> [[/sandkasse|sandkasse]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /sandkasse }}|action=edit}} rediger])</small> {{
#ifexist: {{ #rel2abs: /eksempler }}
|<!-- /sandkasse AND /eksempler -->og [[/eksempler|eksempler]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /eksempler }}|action=edit}} rediger])</small>
|<!-- /sandkasse AND no /eksempler -->og eksempler <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /eksempler }}|action=edit&preload={{{preload-eksempler|Mal:Dokumentasjon/preload/eksempler}}}}} opprett])</small>
}}
|<!-- no /sandkasse -->sandkasse <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /sandkasse }}|action=edit&preload={{{preload-sandkasse|Mal:Dokumentasjon/preload/sandkasse}}}}} opprett])</small> {{
#ifexist: {{ #rel2abs: /eksempler }}
|<!-- no /sandkasse AND /eksempler -->og [[/eksempler|eksempler]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /eksempler }}|action=edit}} rediger])</small>
|<!-- no /sandkasse AND no /eksempler -->og eksempler <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /eksempler }}|action=edit&preload={{{preload-eksempler|Mal:Dokumentasjon/preload/eksempler}}}}} opprett])</small>
}}
}}.
|<!-- hide /sandkasse /eksempler -->
}}
}}<br />Legg kategorier og interwikilenker på [[{{FULLPAGENAME}}/dok|/dok]]-undersiden. [[Spesial:Prefiksindeks/{{FULLPAGENAME}}|Undersider av denne malen]].</div>
|<!-- no /doc -->
}}
}}
}}<!--
|<!-- transcluded hide -->
Start of green doc box.
}}<noinclude>[[ace:Pola:Documentation]]
-->{{dokumentasjon/start boks 2
[[la:Formula:Documentation]]
| preload = {{{preload|}}} <!--Allow custom preloads-->
[[vi:Bản mẫu:Documentation]]
| heading = {{{heading|¬}}} <!--Empty but defined means no header-->
| heading-style = {{{heading-style|}}}
| content = {{{content|}}}

<!--Some namespaces must have the /dok, /sandkasse and /testtilfeller
in talk space-->
| docspace = {{dokumentasjon/docspace}}

| 1 = {{{1|}}} <!--Other docname, if fed-->

<!--The namespace is added in /start boks 2-->
| template page = {{dokumentasjon/malside}}

}}<!-- Start content --><!--
Start load the /dok content:
Note: The line breaks between this comment and the next line are necessary
so "=== Headings ===" at the start and end of docs are interpreted.
-->
{{#switch: {{#if:{{{content|}}}|1|0}}{{#if:{{{1|}}}|1|0}}{{#ifexist:{{{1|}}}|1|0}}{{#ifexist:{{dokumentasjon/docspace}}:{{dokumentasjon/malside}}/dok|1|0}}
| 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110
| 1111 = {{{content|}}}
| 0110 | 0111 = {{ {{{1}}} }}
| 0001 | 0011 = {{ {{dokumentasjon/docspace}}:{{dokumentasjon/malside}}/dok }}
| 0000 | 0100 | 0010 | 0101 =
}}
<!--
End load the /dok content:
Note: The line breaks between this comment and the previous line are necessary
so "=== Headings ===" at the start and end of docs are interpreted.
-->{{dokumentasjon/end boks 2
| preload = {{{preload|}}} <!--Allow custom preloads-->
| content = {{{content|}}}
| link box = {{{link box|}}} <!--So "link box=off" works-->

<!--Some namespaces must have the /dok, /sandkasse and /testtilfeller
in talk space-->
| docspace = {{dokumentasjon/docspace}}

| 1 = {{{1|}}} <!--Other docname, if fed-->

<!--The namespace is added in /end boks 2-->
| template page = {{dokumentasjon/malside}}

}}<!--
End of green doc box
--><noinclude>

<!-- Legg kategorier og interwikilenker på /dok-undersiden, ikke her! -->
</noinclude>
</noinclude>

Sideversjonen fra 28. des. 2013 kl. 15:15

Dokumentasjonsikon Maldokumentasjon [vis] [rediger] [historikk] [oppdater]