Jump to content

Template:Quote: Difference between revisions

From Archive
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/>
{{#if: {{{author|}}} | '''Author:''' {{{author}}}<br/> }}
{{{author|}}}{{{author|<br/>}}}
{{#if: {{{page|}}} | '''Page:''' {{{page}}}<br/> }}
{{{page|}}}{{{page|'''Page:''' {{{page}}}<br/>}}}
{{#if: {{{url|}}} | '''URL:''' [{{{url}}} Link]<br/> }}
{{{url|}}}{{{url|'''URL:''' [{{{url}}} Link]<br/>}}}
'''Added:''' {{{date|{{CURRENTDATE}}}}}<br/>
'''Added:''' {{{date|{{CURRENTDATE}}}}}<br/>
{{#if: {{{tags|}}} | '''Tags:''' {{{tags}}}<br/> }}
{{{tags|}}}{{{tags|'''Tags:''' {{{tags}}}<br/>}}}
{{#if: {{{context|}}} | '''Context:''' {{{context}}} }}
{{{context|}}}{{{context|'''Context:''' {{{context}}}}}}
</div>
</div>
</div>
</div>


<!-- Add to categories -->
[[Category:Quotes]]
[[Category:Quotes]]
{{#if: {{{author|}}} | [[Category:Quotes by {{{author}}}]] }}
{{{author|[[Category:Quotes by {{{author}}}]]}}}
{{#if: {{{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>

    • 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

"{{{text}}}"

— {{{source}}} (Template:CURRENTDATE)

</mediawiki>