Difference between revisions of "Template:DYKbotdo/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Jo-Jo Eumerus
(To compare code)
imported>Coffeeandcrumbs
(update from Template:DYKbotdo)
Line 1: Line 1:
{{#ifeq:{{FULLBASEPAGENAME}}|Template:Did you know/Queue|
+
{{#ifeq:{{#titleparts:{{PAGENAME}}|2|1}}|Did you know/Preview
   <!-- Only show on DYK Queue pages -->
+
|<!--Suppress output on DYK preview pages-->
   {{mbox
+
|{{#ifeq:{{PAGENAME}}|Main Page/Tomorrow
 +
   |<!--Suppress output on tomorrow's Main Page preview-->
 +
   |{{#ifeq:{{padleft:|21|{{PAGENAME}}}}|Main Page alternative
 +
  |<!--Suppress output on alternative Main Pages-->
 +
  |{{mbox
 
     |image = [[Image:Crystal Clear action run.svg|60px]]
 
     |image = [[Image:Crystal Clear action run.svg|60px]]
 
     |text = The hooks below have been approved by an administrator and will be automatically added to the DYK template at the appropriate time. {{#iferror: {{#expr:<includeonly>{{SUBPAGENAME}}+</includeonly>1}}|
 
     |text = The hooks below have been approved by an administrator and will be automatically added to the DYK template at the appropriate time. {{#iferror: {{#expr:<includeonly>{{SUBPAGENAME}}+</includeonly>1}}|
 
     |Click [[Wikipedia:Did you know/Preview/{{SUBPAGENAME}}|here]] for an example of what these hooks will look like on the main page - you may wish to remove this template for a more accurate example, if you do ensure to add it back.
 
     |Click [[Wikipedia:Did you know/Preview/{{SUBPAGENAME}}|here]] for an example of what these hooks will look like on the main page - you may wish to remove this template for a more accurate example, if you do ensure to add it back.
 
     }}
 
     }}
 +
  }}
 +
  }}
 +
}}
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 20:48, 12 August 2019

Template documentation[view] [edit] [history] [purge]

Usage

See also