Template:Documentation/layout: Difference between revisions
Template page
More actions
Omit edit links (except for “purge”) when the `content` parameter is used |
Use {{transclude}} |
||
| Line 1: | Line 1: | ||
<div class="template-documentation"><templatestyles src="Documentation/styles.css" /><!-- | <div class="template-documentation"><templatestyles src="Template:Documentation/styles.css" /><!-- | ||
-->{{#if: {{PROTECTIONLEVEL:edit}} | {{Protected}} }}<!-- | -->{{#if: {{PROTECTIONLEVEL:edit}} | {{Protected}} }}<!-- | ||
-->{{#ifeq: {{{heading|}}} | false | | -->{{#ifeq: {{{heading|}}} | false | | ||
| Line 8: | Line 8: | ||
}}</span><span class="mw-editsection-like plainlinks" id="doc_editlinks"><!-- | }}</span><span class="mw-editsection-like plainlinks" id="doc_editlinks"><!-- | ||
-->[ {{#if:{{{content|}}}||<!-- | -->[ {{#if:{{{content|}}}||<!-- | ||
-->[{{fullurl:{{transclude|{{{1|{{SUBJECTPAGENAME}}/doc}}}}}}} {{{view|{{Int:vector-view-view}}}}}] '''·''' <!-- | |||
-->[{{fullurl:{{transclude|{{{1|{{SUBJECTPAGENAME}}/doc}}}}}|action=edit{{#ifexist:{{transclude|{{{1|{{SUBJECTPAGENAME}}/doc}}}}}||&preload=Template:Documentation/preload}}}} {{{edit|{{Int:Vector-view-edit}}}}}] '''·''' <!-- | |||
-->[{{fullurl:{{transclude|{{{1|{{SUBJECTPAGENAME}}/doc}}}}}|action=history}} {{{history|{{Int:Vector-view-history}}}}}] '''·''' <!-- | |||
--><nowiki/>}}<!-- | --><nowiki/>}}<!-- | ||
-->[{{fullurl:{{FULLPAGENAME}}|action=purge}} {{{purge|{{Int:Code-rev-purge-link}}}}}]<!-- | -->[{{fullurl:{{FULLPAGENAME}}|action=purge}} {{{purge|{{Int:Code-rev-purge-link}}}}}]<!-- | ||
| Line 18: | Line 18: | ||
| {{{content|}}}<!-- do not show notice when /doc is not transcluded--> | | {{{content|}}}<!-- do not show notice when /doc is not transcluded--> | ||
| <div class="template-documentation-transcludedfrom mw-content-{{Dir|{{{lang|}}}}}" lang="{{{lang|}}}" dir="{{Dir|{{{lang|}}}}}">{{{text|text parameter not translated in [[Template:Documentation]]}}}</div> | | <div class="template-documentation-transcludedfrom mw-content-{{Dir|{{{lang|}}}}}" lang="{{{lang|}}}" dir="{{Dir|{{{lang|}}}}}">{{{text|text parameter not translated in [[Template:Documentation]]}}}</div> | ||
{{ {{{1| | {{ {{{1|{{SUBJECTPAGENAME}}/doc}}} }} | ||
}} | }} | ||
</div><noinclude> | </div><noinclude> | ||
Revision as of 02:14, 31 July 2021
text parameter not translated in Template:Documentation