Template:Quote: Difference between revisions
Appearance
Created page with "<div class="quote-container" style="border-left: 4px solid #888; padding-left: 15px; margin: 20px 0; background: #f9f9f9;"> <blockquote style="font-style: italic; margin: 0;"> "{{{text}}}" </blockquote> <div class="quote-meta" style="margin-top: 10px; font-size: 0.9em; color: #666;"> '''Source:''' {{{source}}}<br/> {{#if: {{{author|}}} | '''Author:''' {{{author}}}<br/> }} {{#if: {{{page|}}} | '''Page:''' {{{page}}}<br/> }} {{#if: {{{url|}}} | '''URL:''' [{{{url}}} Link]<..." |
No edit summary |
||
Line 1: | Line 1: | ||
<div class="quote-container" style="border-left: 4px solid #888; padding-left: 15px; margin: 20px 0; background: #f9f9f9;"> | <div class="quote-container" style="border-left: 4px solid #888; padding-left: 15px; margin: 20px 0; background: #f9f9f9;"> | ||
<blockquote style="font-style: italic; margin: 0;"> | <blockquote style="font-style: italic; margin: 0; font-size: 1.1em;"> | ||
"{{{text}}}" | "{{{text}}}" | ||
</blockquote> | </blockquote> | ||
<div class="quote-meta" style="margin-top: 10px; font-size: 0.9em; color: #666;"> | <div class="quote-meta" style="margin-top: 10px; font-size: 0.9em; color: #666;"> | ||
'''Source:''' {{{source}}}<br/> | '''Source:''' {{{source}}}<br/> | ||
{{{author|}}}{{{author|<br/>}}} | |||
{{{page|}}}{{{page|'''Page:''' {{{page}}}<br/>}}} | |||
{{{url|}}}{{{url|'''URL:''' [{{{url}}} Link]<br/>}}} | |||
'''Added:''' {{{date|{{CURRENTDATE}}}}}<br/> | '''Added:''' {{{date|{{CURRENTDATE}}}}}<br/> | ||
{{{tags|}}}{{{tags|'''Tags:''' {{{tags}}}<br/>}}} | |||
{{{context|}}}{{{context|'''Context:''' {{{context}}}}}} | |||
</div> | </div> | ||
</div> | </div> | ||
[[Category:Quotes]] | [[Category:Quotes]] | ||
{{ | {{{author|[[Category:Quotes by {{{author}}}]]}}} | ||
{{#if: {{{ | {{{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}}}"
[[Category:Quotes by {{{author}}}]] [[Category:Quotes from {{{source}}}]] </mediawiki>
- The key changes:**
- Removed `{{#if:}}` conditionals (needs ParserFunctions extension) - Used simpler `` syntax for optional fields - Cleaner conditional display using `text if param exists`
- Even simpler version** if that still breaks:
```mediawiki
</mediawiki>