Difference between revisions of "Template:Documentation"
(update test from zhmoe) |
m (Text replacement - "\[\[(zh|en|ja)wiki:" to "[[$1wp:") |
||
(9 intermediate revisions by 7 users not shown) | |||
Line 2: | Line 2: | ||
--><div class="template-documentation-header" style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex"><!-- | --><div class="template-documentation-header" style="padding-bottom:3px; border-bottom: 1px solid #aaa; margin-bottom:1ex"><!-- | ||
--><span style="font-weight: bold; font-size: 125%">{{#switch:{{NAMESPACE}} | --><span style="font-weight: bold; font-size: 125%">{{#switch:{{NAMESPACE}} | ||
− | |{{ns:template}}=[[File:Template-info.svg|50px|link=]] | + | |{{ns:template}}=[[File:Template-info.svg|50px|link=]] Template Documentation |
− | |{{ns:module}}=[[File:Template-info.svg|50px|link=]] | + | |{{ns:module}}=[[File:Template-info.svg|50px|link=]] Module Documentation |
− | |{{ns:widget}}=[[File:Template-info.svg|50px|link=]] | + | |{{ns:widget}}=[[File:Template-info.svg|50px|link=]] Widget Documentation |
− | |#default= | + | |#default=Documentation |
}}</span> <span class="editsection plainlinks" style="font-size:small;" id="doc_editlinks">{{#if:{{{content|}}}| | }}</span> <span class="editsection plainlinks" style="font-size:small;" id="doc_editlinks">{{#if:{{{content|}}}| | ||
− | <!-- | + | <!--In-line Documentation-->[[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit]] |
|{{#ifexist: {{{1|{{Documentation/docname}}}}} | |{{#ifexist: {{{1|{{Documentation/docname}}}}} | ||
− | |<!--**/doc | + | |<!--**/doc exist **-->[[{{fullurl:{{{1|{{Documentation/docname}}}}}}} View]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=edit}} Edit]] [[{{fullurl:{{{1|{{Documentation/docname}}}}}|action=history}} History]] |
− | |<!--**/doc | + | |<!--**/doc not exist**-->[[{{fullurl:{{{1|{{Documentation/docname }}}}}|action=edit}} Create]] |
− | }} [[{{fullurl:{{FULLPAGENAME}}|action=purge}} | + | }} [[{{fullurl:{{FULLPAGENAME}}|action=purge}} Refresh]] |
}}</span></div><!-- | }}</span></div><!-- | ||
--><div id="template_doc_page_transcluded" class="dablink plainlinks" style="font-size:84%;"><!-- | --><div id="template_doc_page_transcluded" class="dablink plainlinks" style="font-size:84%;"><!-- | ||
-->{{#if:{{{content|}}}| | -->{{#if:{{{content|}}}| | ||
− | <!-- | + | <!--Inlined Document**-->This is an in-line documentation. |
|{{#ifexist: {{{1|{{Documentation/docname}}}}} | |{{#ifexist: {{{1|{{Documentation/docname}}}}} | ||
− | |<!--**/ | + | |<!--**/doc exist**-->This [[enwp:Wikipedia:Template documentation|document]] is [[enwp:Wikipedia:Transclusion|transcluded]] from [[{{{1|{{Documentation/docname}}}}}]]. |
}} | }} | ||
}} | }} | ||
Line 23: | Line 23: | ||
{{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}} | {{#if:{{{content|}}}|{{{content}}}|{{#ifexist:{{{1|{{Documentation/docname}}}}} | {{ {{{1|{{Documentation/docname}}}}} }} }}}} | ||
</div> | </div> | ||
− |