Template:List Blocks From Drawer: Difference between revisions

From StarLogo Nova Wiki
No edit summary
Tag: Reverted
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- this template takes a category name and uses Extension:DPL to find all main pages (no language version, so it will be in English) that are in that category -->
<!-- var 1 is the category name -->
<ul>
<ul>
<li>[[{{{1}}}]]</li>
<!-- Header for the category -->
{{#ifeq: {{{2|en}}}
{{{1}}}
| en
<!-- finds all pages by searching for that category and removing any that have the /en or /es (for Variables drawer) at the end of the title (without this there would be a base and /en version of each page) -->
| {{#dpl: nottitlematch=%/en | category={{{1}}} }}
{{#dpl: nottitlematch=%/en | nottitlematch=%/es | category={{{1}}} }}
| <DPL>
  category = {{{1}}}
  nottitlematch = %/en
  format = ,**[[%PAGE%/{{{2}}}|{{#dpl: title=Translations:%PAGE%/Page display title/{{{2}}} | include = *}}]],\n
  </DPL>
}}
</ul>
</ul>

Latest revision as of 13:32, 14 July 2023