Skip to content

Improve nested templates#198

Merged
danielriedmueller merged 8 commits intomainfrom
ImproveNestedTemplates
Mar 30, 2026
Merged

Improve nested templates#198
danielriedmueller merged 8 commits intomainfrom
ImproveNestedTemplates

Conversation

@DvogelHallowelt
Copy link
Copy Markdown
Contributor

No description provided.

@DvogelHallowelt DvogelHallowelt changed the title Improve Layout, LayoutSection and LayoutCell Improve nested templates Mar 27, 2026
@DvogelHallowelt DvogelHallowelt marked this pull request as ready for review March 27, 2026 10:23
$paramValue = $parameterEl->nodeValue;
// We add a "###BREAK###", as `pandoc` will eat up regular line breaks.
// They will be restored in a "Postprocessor"
$praramString = "|$paramName = $paramValue";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1 @@
<includeonly></includeonly><div class="macro-details" {{#if:{{{id|}}}|data-id="{{{id|}}}"}} {{#if:{{{hidden|}}}|style="display:none;"}}></includeonly> No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mismatching includeonly tags

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

protected function getWikiTextTemplateName(): string {
return 'LayoutCell';
protected function getWikiTextTemplateStartName(): string {
return 'LayoutCellStart';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no LayoutCellStart template

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

protected function getWikiTextTemplateName(): string {
return 'TableFilterMacro';
protected function getWikiTextTemplateStartName(): string {
return 'TableFilterMacroStart';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no TableFilterMacroStart template

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

* @inheritDoc
*/
protected function getWikiTextTemplateEndName(): string {
return 'TableFilterMacroEnd';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no TableFilterMacroEnd template

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1 @@
<includeonly>|}</includeonly> No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks more like ExpandEnd

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -0,0 +1,5 @@
<includeonly>{| class="mw-collapsible mw-collapsed wikitable"
! {{{title|}}}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks more like ExpandStart

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@danielriedmueller danielriedmueller merged commit a7f9ab7 into main Mar 30, 2026
1 check passed
@danielriedmueller danielriedmueller deleted the ImproveNestedTemplates branch March 30, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants