Jump to content

Template:Quote: Difference between revisions

From Archive
No edit summary
No edit summary
Line 17: Line 17:
{{{author|[[Category:Quotes by {{{author}}}]]}}}
{{{author|[[Category:Quotes by {{{author}}}]]}}}
{{{source|[[Category:Quotes from {{{source}}}]]}}}
{{{source|[[Category:Quotes from {{{source}}}]]}}}
</mediawiki>
**The key changes:**
- Removed `{{#if:}}` conditionals (needs ParserFunctions extension)
- Used simpler `{{{parameter|}}}` syntax for optional fields
- Cleaner conditional display using `{{{param|text if param exists}}}`
**Even simpler version** if that still breaks:
```mediawiki
<div style="border-left: 4px solid #888; padding-left: 15px; margin: 20px 0;">
<blockquote style="font-style: italic;">
"{{{text}}}"
</blockquote>
<small>
— {{{source}}} {{{author|}}} {{{page|}}} ({{{date|{{CURRENTDATE}}}}})
{{{context|}}}
</small>
</div>
[[Category:Quotes]]
</mediawiki>
</mediawiki>

Revision as of 16:33, 31 May 2025

"{{{text}}}"

Source: {{{source}}}

Page: {{{page}}}
URL: [{{{url}}} Link]
Added: Template:CURRENTDATE
Tags: {{{tags}}}
Context: {{{context}}}

[[Category:Quotes by {{{author}}}]] [[Category:Quotes from {{{source}}}]] </mediawiki>