FANDOM


  • I have been trying for a while to use MediaWiki:Talkpageheader to import this template on talkpages. However, I don't want the template to appear on talkpages with a subpage like "Archive". So I'm using this syntax to hide it from those pages:

    <div style="{{#ifeq: {{SUBPAGENAME}}|Archive|display: none;|display:block;}}"></div>

    However, a talkpage may contain several archive pages; like "Talk:Page/Archive 1, "Talk:Page/Archive 2", etc. So, I want to hide the template from those pages no matter what the number after the "Archive" word is. But, is this possible with parser functions, or I'll have to search for another way to do this?

      Loading editor
    • {{#sub:{{SUBPAGENAME}}|0|7}}
      @commen
        Loading editor
    • Thanks. Your solution was the exact thing I had wanted.

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message