Jump to content

Template:Ref/Content: Difference between revisions

From Worm Wiki
Puxlit (talk | contribs)
Implement body generation helper for Template:Ref
 
Yonkerbonk (talk | contribs)
It works. Edited template to be more consistent with preexisting references.
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  -->{{#if:{{{chapter|}}}<!--
  -->{{#if:{{{chapter|}}}<!--
     -->|<!-- We're a chapter...
     -->|<!-- We're a chapter...
         -->{{#if:{{{excerpt|}}}|&#32;&mdash;&#32;}}<!--
         -->{{#if:{{{excerpt|}}}|&#32;&#45;&#32;}}<!--
        -->{{#ifeq:{{{chapterlink}}}|yes|{{#dpl:debug=0|allowcachedresults=true|uses=Template:Infobox chapter|title={{{chapter}}}|skipthispage=no|include={Infobox chapter}:link|includetrim=|format=,[, Excerpt]&#32;,}}from&#32;}}<!--
         -->[[{{{chapter}}}]]<!--
         -->[[{{{chapter}}}]]<!--
  -->|{{#if:{{{link|}}}<!--
  -->|{{#if:{{{link|}}}<!--
     -->|<!-- We're an external link with a label...
     -->|<!-- We're an external link with a label...
         -->{{#if:{{{excerpt|}}}|&#32;&mdash;&#32;}}<!--
         -->{{#if:{{{excerpt|}}}|&#32;&#45;&#32;}}<!--
         -->[{{{link}}} {{{label}}}]<!--
         -->[{{{link}}} {{{label}}}]<!--
  -->}}}}<!--
  -->}}}}<!--
--></includeonly><noinclude>This is a helper template for {{T|Ref}}. It is responsible for generating the input to a <code><nowiki><ref/></nowiki></code> parser tag, and should not be transcluded directly.</noinclude>
--></includeonly><noinclude>This is a helper template for {{T|Ref}}. It is responsible for generating the input to a <code><nowiki><ref/></nowiki></code> parser tag, and should not be transcluded directly.</noinclude>

Latest revision as of 05:53, October 19, 2020

This is a helper template for {{Ref{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}{{#ifeq: ---|---|||<--->}}}}. It is responsible for generating the input to a <ref/> parser tag, and should not be transcluded directly.