Template:Documentation/core: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Davidgothberg Starting out the /core for the {{documentation}} template. Intermediate save. |
imported>Davidgothberg Using {{{doc exist|}}}. And check when to show the small box below for the doc meta-data. |
||
Line 10: | Line 10: | ||
| <!--Add the [edit][purge] or [create] links--> |
| <!--Add the [edit][purge] or [create] links--> |
||
<span class="editsection plainlinks" id="doc_editlinks">{{ |
<span class="editsection plainlinks" id="doc_editlinks">{{ |
||
# |
#if: {{{doc exist|yes}}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
| <!--/doc doesn't exist--> |
| <!--/doc doesn't exist--> |
||
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload=Template:Documentation/preload}} create]] |
[[{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}| action=edit&preload=Template:Documentation/preload}} create]] |
||
Line 37: | Line 36: | ||
-->{{#if: {{{content|}}} |
-->{{#if: {{{content|}}} |
||
| {{{content|}}} |
| {{{content|}}} |
||
| {{# |
| {{#if: {{{doc exist|yes}}} |
||
| {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }} |
| {{ {{{docpage|{{FULLPAGENAME}}/doc}}} }} |
||
}} |
}} |
||
Line 43: | Line 42: | ||
<div style="clear: both;"></div> |
<div style="clear: both;"></div> |
||
</div><!--End of green doc box--><!-- |
</div><!--End of green doc box--><!-- |
||
Small box below for the doc meta-data. |
|||
-->{{ |
-->{{#if: |
||
<!--Check if we need the small box--> |
|||
⚫ | |||
{{#if: {{{content|}}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
| {{{doc exist|yes}}} |
|||
''{{#ifexist: {{{docpage|{{FULLPAGENAME}}/doc}}} |
|||
}}{{#switch: {{SUBJECTSPACE}} |
|||
⚫ | |||
| {{ns:Template}} |
|||
⚫ | 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] | [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br> |
||
| {{ns:User}} = add sandbox links |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
| {{fmbox |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
''{{#if: {{{doc exist|yes}}} |
|||
⚫ | |||
⚫ | 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] | [{{fullurl:{{{docpage|{{FULLPAGENAME}}/doc}}}|action=history}} history])</small> <br> |
||
⚫ | |||
⚫ | |||
⚫ | |||
}} |
|||
}}<noinclude> |
|||
</noinclude> |