Jump to content

Template:Infobox chapter: Difference between revisions

From Worm Wiki
for chapters without {{{work}}} (read: worm chapters), default to linking to the worm chapter list instead of a disambig (would be more elegant to go through all the worm chapters and add |work=Worm, but im not getting into scripts here :p)
Puxlit (talk | contribs)
m Permit automatically labelled bare links
Line 10: Line 10:
{{#if: {{{dateposted|}}} | {{!}} '''Date posted''' {{!!}} {{{dateposted}}} }}
{{#if: {{{dateposted|}}} | {{!}} '''Date posted''' {{!!}} {{{dateposted}}} }}
|-
|-
{{#if: {{{link|}}} | {{!}} '''Link''' {{!!}} {{{link}}} }}
{{#if: {{{link|}}} | {{!}} '''Link''' {{!!}} {{#ifeq:{{#sub:{{{link}}}|0|1}}|[|{{{link}}}|[{{{link}}} {{PAGENAME}}]}} }}
|-
|-
| colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:0.25em; text-align:center;" | Chapter guide
| colspan="2" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:0.25em; text-align:center;" | Chapter guide

Revision as of 17:49, May 9, 2020

{{#if: | {{{image}}} }} {{#if: | | Date posted || {{{dateposted}}} }} {{#if: | | Link || {{#ifeq:{{#sub:{{{link}}}|0|1}}|[|{{{link}}}|[{{{link}}} Infobox chapter]}} }}
{{#if: |{{{work}}}|Worm}}
{{{book}}} {{{number}}}
Chapter guide
Previous
{{{previous}}}}}
Next
{{{next}}}}}
Chapter List