im>JinboBot m (Bot: Template documentation project cleanup, removed: {{Project:Template_documentation_project/Status|codedone|Jinbobo}}) |
(Put vardefine back because it can use a parameter: Undo revision 800862 by SizableShrimp (talk)) Tag: Undo |
||
(22 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | + | <includeonly></div><!-- |
|
+ | Defines var "docPage" which links to the /doc page, regardless of if we are on a translated page, the template page, or the doc page itself. |
||
− | <div style="margin: 0 auto; background-color: #{{#ifeq: {{#var: nodoc}} | 1 | F9EAEA | {{#ifeq: {{#var: baddoc}} | 1 | F9F2EA | EAF4F9 }} }}; border: 1px solid #AAAAAA; padding: 1em;"><!-- |
||
+ | -->{{#vardefine:docPage| {{#if: {{{1|}}} | {{{1}}} | {{#if: {{#var:isDocPage}} | {{#if: {{L}} | {{#titleparts:{{FULLPAGENAME}}|-1}} | {{FULLPAGENAME}} }} | {{#if: {{L}} | {{#titleparts:{{FULLPAGENAME}}|-1}}/doc | {{FULLPAGENAME}}/doc }} }} }} }} |
||
+ | <div class="{{#if: {{#var:nodoc}} | templateDocEndNoDoc | {{#if: {{#var:baddoc}} | templateDocEndBadDoc | templateDocEndGoodDoc }} }}"><!-- |
||
− | -->{{# |
+ | -->{{#if: {{#var:isDocPage}} |<!-- |
− | --><p style="margin: 0">This is the documentation page, it should be transcluded into the |
+ | --><p style="margin: 0"><noinclude><translate><!--T:1--> </noinclude>This is the documentation page, it should be transcluded into the {{L|<noinclude><tvar|mainPage></noinclude>{{#titleparts:{{#var:docPage}}|-1}}<noinclude></></noinclude>|main template page}}. See [[Template:Doc]] for more information.<noinclude></translate></noinclude></p>[[Category:Documentation templates{{L}}|{{BASEPAGENAME}}]] |<!-- |
− | --><p class="plainlinks" style="margin: 0">The above documentation is transcluded from |
+ | --><p class="plainlinks" style="margin: 0"><noinclude><translate><!--T:2--> </noinclude>The above documentation is transcluded from {{L|<noinclude><tvar|docPage></noinclude>{{#var:docPage}}<noinclude></></noinclude>}}.<noinclude></translate></noinclude> <small>([{{fullurl:{{#var:docPage}}|action=edit}} <noinclude><translate><!--T:3--> </noinclude>edit<noinclude></translate></noinclude>] | [{{fullurl:{{#var:docPage}}|action=history}} <noinclude><translate><!--T:4--> </noinclude>history<noinclude></translate></noinclude>])</small></p> }}<!-- |
+ | Add clear div so bottom bar and language bar do not overlay. |
||
− | --></div></includeonly> |
||
+ | --></div>{{#if: {{#var:isDocPage}} |<!-- |
||
⚫ | |||
+ | -->{{#ifexist: {{#var:docPage}}/en | <div style="height: 1em; clear: both"></div> |}} |<!-- |
||
+ | -->{{#ifexist: {{#titleparts:{{#var:docPage}}|-1}}/en | <div style="height: 1em; clear: both"></div> |}} }}<languages /></includeonly> |
||
⚫ |
Latest revision as of 15:47, 3 September 2020
Template:Doc/End/doc