Difference between revisions of "Template:Quote"

From Yugipedia
Jump to: navigation, search
({{Quote}} can be used with a single unnamed parameter, in which case it's used as the quote text; in this case, it shouldn't be categorized as needing an updated parameter ordering)
({{Documentation}})
 
Line 1: Line 1:
{{ #vardefine: $quote-text | {{ #if: {{{text<includeonly>|</includeonly>}}} | {{{text}}} | {{ #if: {{{quote|}}} | {{{quote}}} | {{ #if: {{{3|}}} | {{{3}}} | {{ #if: {{{2|}}} | {{{2}}} | {{{1}}} }} }} }} }}
+
{{ #vardefine: $quote-text | {{ #if: {{{text<includeonly>|</includeonly>}}} | {{{text}}} | {{ #if: {{{quote|}}} | {{{quote}}} | {{ #if: {{{3|}}} | {{{3}}} | {{ #if: {{{2|}}} | {{{2}}} | {{{1|}}} }} }} }} }}
 
}}{{ #vardefine: $quote-char  | {{ #if: {{{char<includeonly>|</includeonly>}}} | {{{char}}} | {{{character|}}} }}
 
}}{{ #vardefine: $quote-char  | {{ #if: {{{char<includeonly>|</includeonly>}}} | {{{char}}} | {{{character|}}} }}
}}{{ #vardefine: $quote-author | {{ #if: {{{author<includeonly>|</includeonly>}}} | {{{author}}} | {{ #if: {{{2|}}}{{{3|}}} | {{{1}}} }} }}
+
}}{{ #vardefine: $quote-author | {{ #if: {{{author<includeonly>|</includeonly>}}} | {{{author}}} | {{ #if: {{{2|}}}{{{3|}}} | {{{1|}}} }} }}
 
}}{{ #vardefine: $quote-title  | {{{title<includeonly>|</includeonly>}}}
 
}}{{ #vardefine: $quote-title  | {{{title<includeonly>|</includeonly>}}}
}}{{ #vardefine: $quote-source | {{ #if: {{{source<includeonly>|</includeonly>}}} | {{{source}}} | {{ #if: {{{3|}}} | {{{2}}} }} }}
+
}}{{ #vardefine: $quote-source | {{ #if: {{{source<includeonly>|</includeonly>}}} | {{{source}}} | {{ #if: {{{3|}}} | {{{2|}}} }} }}
 
}}<blockquote class="templatequote">{{ #var: $quote-text | {{Lorem ipsum}}[[Category:Empty quotes]] }}{{ #if: {{ #var: $quote-char }}{{ #var: $quote-author }}{{ #var: $quote-title }}{{ #var: $quote-source }} |
 
}}<blockquote class="templatequote">{{ #var: $quote-text | {{Lorem ipsum}}[[Category:Empty quotes]] }}{{ #if: {{ #var: $quote-char }}{{ #var: $quote-author }}{{ #var: $quote-title }}{{ #var: $quote-source }} |
 
<nowiki/>
 
<nowiki/>
Line 9: Line 9:
 
}}
 
}}
 
</blockquote>{{ #if: {{{2|}}}{{{3|}}} | [[Category:((Quote)) transclusions needing updated parameter ordering]] }}<noinclude>
 
</blockquote>{{ #if: {{{2|}}}{{{3|}}} | [[Category:((Quote)) transclusions needing updated parameter ordering]] }}<noinclude>
----
+
{{Documentation}}
;{{Tlx|Quote|2=text={{Lorem ipsum|short}}}}
+
</noinclude>
{{Quote|text={{Lorem ipsum|short}}}}
 
;{{Tlx|Quote|2=text={{Lorem ipsum|short}}|3=char=Character}}
 
{{Quote|text={{Lorem ipsum|short}}|char=Character}}
 
;{{Tlx|Quote|2=text={{Lorem ipsum|short}}|3=char=Character|4=title=Title}}
 
{{Quote|text={{Lorem ipsum|short}}|char=Character|title=Title}}
 
;{{Tlx|Quote|2=text={{Lorem ipsum|short}}|3=author=Author|4=source=Source}}
 
{{Quote|text={{Lorem ipsum|short}}|author=Author|source=Source}}
 
;{{Tlx|Quote|2=text={{Lorem ipsum|short}}|3=char=Character|4=author=Author|5=title=Title|6=source=Source}}
 
{{Quote|text={{Lorem ipsum|short}}|char=Character|author=Author|title=Title|source=Source}}
 
 
 
[[Category:Templates]]</noinclude>
 

Latest revision as of 07:13, 29 June 2019

{{{text}}}

— {{{char}}}, in {{{author}}}, {{{title}}}, {{{source}}}