Citakan:Dokuméntasi: Béda antarrépisi

Konten dihapus Konten ditambahkan
Tidak ada ringkasan suntingan
MF-Warburg (obrolan | kontribusi)
m Malikkeun éditan 178.239.50.146, diganti deui ka vérsi ahir ku MF-Warburg
Baris ka-5:
}}
{{intricate}}
</noinclude><div class="template-documentation">{{
#if: {{{heading|Documentation}}}
<div id="template-documentation" class="template-documentation iezoomfix"><!--
|<!-- 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">{{
Add the heading at the top of the doc box:
#ifexist: {{{1|{{Documentation/docname}}}}}
-->{{#ifeq: {{{heading|¬}}} | <!--Defined but empty-->
|<!-- /doc exists -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} view]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} edit]]
| <!--"heading=", do nothing-->
|<!-- no /doc -->{{
| <div style="padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex;">{{
#if: {{{content|}}}
|<!-- has content -->
|
|<!-- no content -->[[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit&preload={{{preload-doc|Template:Documentation/preload}}}}} edit]]
| <!--Add the [edit][purge] or [create] links-->
<span class="editsection plainlinks" id="doc_editlinks">{{
#if: {{{doc exist|yes}}}
| &#91;[[{{{docpage|{{FULLPAGENAME}}/doc}}}|view]]&#93; [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit]] [[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history]] [{{purge|purge}}]
| <!--/doc doesn't exist-->
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload={{
#if: {{{preload|}}}
| {{urlencode:{{{preload}}}}}
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:File}}
| Template:Documentation/preload-filespace
| Template:Documentation/preload
}} }} }} create]]
}}</span>
}} <span style="{{#if: {{{heading-style|}}}
| {{{heading-style|}}}
| {{#ifeq: {{SUBJECTSPACE}} | {{ns:Template}}
| font-weight: bold; font-size: 125%
| font-size: 150%
}}
}}"</span> <span style="{{#switch{heading-style|font-size: 150%}}}">{{{heading|¬Dokuméntasi}}}</span></div>
|<!-- ¬ = empty heading -->
}}<div id="template_doc_page_transcluded" class="dablink plainlinks">{{
<!--"heading" not defined in this or previous level-->
{{#switchifeq: {{SUBJECTSPACE{transcluded|show}}} | show
|<!-- transcluded show -->{{
| {{ns:Template}} = [[Image:Template-info.svg|50px|alt=]] Citakan Dokuméntasi
#ifexist: {{{1|{{Documentation/docname}}}}}
| {{ns:File}} = Summary
|<!-- /doc exists -->[[Wikipedia:Dokuméntasi citakan|Dokuméntasi]] ieu [[Wikipedia:Transklusi|ditransklusi]] tina [[{{{1|{{Documentation/docname}}}}}]]. <small style="font-style: normal">(<!--[[{{{1|{{Documentation/docname}}}}}|tempo]] &#124; -->[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} édit] &#124; [{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} jujutan])</small><br />
| #default = Documentation
|<!-- no /doc -->
}}
| #default =
<!--"heading" has data or is empty but defined-->
{{{heading|}}}
}}</span></div>
}}<!--
Load the /doc content:
Note: The line breaks between this comment and the if-case
and between the if-case and the following div are necessary so
"=== Headings ===" at the start and end of docs are interpreted.
-->
{{#if: {{{content|}}}
| {{{content|}}}
| {{#if: {{{doc exist|yes}}}
| {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }}
}}
|<!-- transcluded hide -->
}}
}}{{
<div style="clear: both;"></div><!--So right or left floating items don't stick out of the doc box.-->
#switch: {{SUBPAGENAME}}
</div><!--End of green doc box--><!--
|sandbox=<!-- sandbox -->
Link box below for the doc meta-data:
|testcases=<!-- testcases -->
-->{{#if:
|#default={{
<!--Check if we should show the link box-->
#switch: {{SUBJECTSPACE}}/{{{sandbox-testcases|show}}}
{{#ifeq: {{{link box|}}} | off
|{{ns:template}}/show|{{ns:user}}/show=<!-- show /sandbox /testcases -->{{
|
#ifexist: {{ #rel2abs: /sandbox }}
| {{{doc exist|yes}}}{{
|<!-- /sandbox -->This template has a [[/sandbox|sandbox]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /sandbox }}|action=edit}} edit])</small> {{
#switch: {{SUBJECTSPACE}}
| #ifexist: {{ns #rel2abs:User /testcases }}
|<!-- /sandbox AND /testcases -->and [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small> for editors to experiment.
| {{ns:Template}} = yes
|<!-- /sandbox AND no /testcases --> for editors to experiment.}}
|<!-- no /sandbox -->{{
#ifexist: {{ #rel2abs: /testcases }}
|<!-- no /sandbox AND /testcases -->Citkan ieu boga [[/testcases|testcases]] <small style="font-style: normal">([{{fullurl:{{ #rel2abs: /testcases }}|action=edit}} edit])</small> keur éditor pikeun nyobaan.
|<!-- no /sandbox AND no /testcases -->}}
}}
|<!-- hide /sandbox /testcases -->
}}
}}</div>
 
{{{content|{{ {{ #ifexist: {{{1|{{Documentation/docname}}}}} | {{{1|{{Documentation/docname}}}}} | ns:0 }} }}}}}
| {{fmbox
</div>
| id = documentation-meta-data
| image = none
| style = background-color: #ecfcf4;
| textstyle = font-style: italic;
| text =
{{#if: {{{link box|}}}
| {{{link box}}} <!--Use custom link box content-->
| {{#if: {{{doc exist|yes}}}
| <!--/doc exists, link to it-->
The above [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from [[{{{docpage|{{FULLPAGENAME}}/doc}}}]]. <small style="font-style: normal">([{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=edit}} edit] &#124; [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br />
}}<!--
Add links to /sandbox and /testcases when appropriate:
-->{{#switch: {{SUBJECTSPACE}}
| {{ns:User}}
| {{ns:Template}} =
Editors can experiment in this template's {{
#ifexist: {{{sandbox| {{FULLPAGENAME}}/sandbox }}}
| [[{{{sandbox| {{FULLPAGENAME}}/sandbox }}}|sandbox]] <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit }} edit] <nowiki>|</nowiki> [{{fullurl:Special:ComparePages | page1={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&page2={{urlencode:{{{sandbox|{{FULLPAGENAME}}/sandbox}}}}}}} diff])</small>
| sandbox <small style="font-style: normal">([{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload=Template:Documentation/preload-sandbox }} create] <nowiki>|</nowiki> [{{fullurl: {{{sandbox| {{FULLPAGENAME}}/sandbox }}} | action=edit&preload={{urlencode:{{{template page|{{FULLPAGENAME}}}}}}}&summary={{urlencode:Create sandbox version of [[{{{template page|{{FULLPAGENAME}}}}}]]}} }} mirror])</small>
}} and {{
#ifexist: {{{testcases| {{FULLPAGENAME}}/testcases }}}
| [[{{{testcases| {{FULLPAGENAME}}/testcases }}}|testcases]] <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit }} edit])</small>
| testcases <small style="font-style: normal">([{{fullurl: {{{testcases| {{FULLPAGENAME}}/testcases }}} | action=edit&preload=Template:Documentation/preload-testcases }} create])</small>
}} pages. <br />
}}<!--
Show the cats and interwiki text, but not
if "content" fed or "docname fed" since then it is
unclear where to add the cats and interwikis.
-->{{#if: {{{content|}}} {{{docname fed|}}}
|
| Please add categories and interwikis to the [[{{{docpage|{{FULLPAGENAME}}/doc}}}|/doc]] subpage.
}}<!--
Show the "Subpages" link:
-->{{#switch: {{SUBJECTSPACE}}
| {{ns:File}} = <!--Don't show it-->
| {{ns:Template}} = &#32;[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this template]].
| #default = &#32;[[Special:PrefixIndex/{{{template page|{{FULLPAGENAME}}}}}/|Subpages of this page]].
}}
}}{{#ifexist:{{FULLPAGENAME}}/Print
|<br />A [[Help:Books/for experts#Improving the book layout|print version]] of this template exists at [[/Print]]. If you make a change to this template, please update the print version as well.[[Category:Templates with print versions]]
}}
}}
}}<!--End link box--><!--
 
Detect and report strange usage:
-->{{#if:
 
<!--Check if {{documentation}} is transcluded
on a /doc or /testcases page-->
{{#switch: {{SUBPAGENAME}}
| doc
| testcases = strange
}}
<!--More checks can be added here, just return anything
to make the surrounding if-case trigger-->
 
| <includeonly>[[Category:Wikipedia pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --></includeonly>
 
}}