Feed The Beast Wiki

Follow the Feed The Beast Wiki on Discord or Mastodon!

READ MORE

Feed The Beast Wiki
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:
<noinclude></noinclude><includeonly></div>
+
<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 }} }}"><!--
   
-->{{#ifeq: {{#titleparts:{{FULLPAGENAME}}||-1}} | doc |<!--
+
-->{{#if: {{#var:isDocPage}} |<!--
--><p style="margin: 0">This is the documentation page, it should be transcluded into the [[{{#titleparts:{{FULLPAGENAME}}|-1}}|main template page]]. See [[Template:Doc]] for more information.</p>[[Category:Documentation templates|{{BASEPAGENAME}}]] |<!--
+
--><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 [[{{FULLPAGENAME}}/doc]]. <small>([{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit] &#124; [{{fullurl:{{FULLPAGENAME}}/doc|action=history}} history])</small></p> }}<!--
+
--><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>] &#124; [{{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}} |<!--
<noinclude>{{Doc}}[[Category:Documentation templates|*]]</noinclude>
 
  +
-->{{#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>
 
<noinclude>{{Doc}}[[Category:Documentation templates{{L}}|*]]</noinclude>

Latest revision as of 15:47, 3 September 2020

Template:Doc/End/doc