Difference between revisions of "Template:Bible verse"

From Pathfinder Wiki
Line 3: Line 3:
 
{{#vardefine: quote-color-css-class | {{#switch: {{#var:quote-style-css-class}} | quote-note-paper = {{#switch: {{{color}}} | secondary = quote-note-col-secondary | accent = quote-note-col-accent | quote-note-col-primary }} | }} }}
 
{{#vardefine: quote-color-css-class | {{#switch: {{#var:quote-style-css-class}} | quote-note-paper = {{#switch: {{{color}}} | secondary = quote-note-col-secondary | accent = quote-note-col-accent | quote-note-col-primary }} | }} }}
 
{{#vardefine: quote-variant | {{#switch: {{#var:quote-style-css-class}} | quote-note-paper = {{#switch: {{{variant}}} | tape-top = note-folded-tape-top | tape-around = note-folded-tape-around | }} }} }}
 
{{#vardefine: quote-variant | {{#switch: {{#var:quote-style-css-class}} | quote-note-paper = {{#switch: {{{variant}}} | tape-top = note-folded-tape-top | tape-around = note-folded-tape-around | }} }} }}
<blockquote class="{{#var: quote-style-css-class}} {{#var: quote-color-css-class}}">{{#ifeq: {{#var: quote-variant}} |note-folded-tape-top|<div class="quote-note-tape-top"></div>}}{{#ifeq: {{#var: quote-variant}} |note-folded-tape-around|<div class="quote-note-tape-section"></div>}}<p><nowiki />{{{text}}}<br><span class="quote-footer">— <cite>{{{book}}} {{#if:{{{chapter|}}}|{{{chapter}}}:}}{{{verse}}} {{#if:{{{version|}}}|({{{version}}})}}</cite></span></p>{{#ifeq: {{#var: quote-variant}} |note-folded-tape-around|<div class="quote-note-tape-section"></div>}}
+
<blockquote class="{{#var: quote-style-css-class}} {{#var: quote-color-css-class}}">{{#ifeq: {{#var: quote-variant}} |note-folded-tape-top|<div class="quote-note-tape-top"></div>}}{{#ifeq: {{#var: quote-variant}} |note-folded-tape-around|<div class="quote-note-tape-section"></div>}}<div><p><nowiki />{{{text}}}<br><span class="quote-footer">— <cite>{{{book}}} {{#if:{{{chapter|}}}|{{{chapter}}}:}}{{{verse}}} {{#if:{{{version|}}}|({{{version}}})}}</cite></span></p></div>{{#ifeq: {{#var: quote-variant}} |note-folded-tape-around|<div class="quote-note-tape-section"></div>}}
 
</blockquote>
 
</blockquote>
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>

Revision as of 02:07, 26 February 2021

Use:

{{Bible verse
| style = note-folded (default) / vintage
| variant = tape-top / tape-around (only for variant = note-folded, for no tape leave it empty)
| color = primary (default) / secondary / accent (only for variant = note-folded)
| book = 
| chapter = (optional)
| verse = 
| version = (optional)
| text =
}}

Example:


1At that time the disciples came to Jesus and asked, "Who is the greatest in the kingdom of heaven?" 2He called a little child and had him stand among them. 3And he said: "I tell you the truth, unless you change and become like little children, you will never enter the kingdom of heaven. 4Therefore, whoever humbles himself like this child is the greatest in the kingdom of heaven.
Matthew 18:1-4 (NIV)



1At that time the disciples came to Jesus and asked, "Who is the greatest in the kingdom of heaven?" 2He called a little child and had him stand among them. 3And he said: "I tell you the truth, unless you change and become like little children, you will never enter the kingdom of heaven. 4Therefore, whoever humbles himself like this child is the greatest in the kingdom of heaven.
Matthew 18:1-4 (NIV)



1At that time the disciples came to Jesus and asked, "Who is the greatest in the kingdom of heaven?" 2He called a little child and had him stand among them. 3And he said: "I tell you the truth, unless you change and become like little children, you will never enter the kingdom of heaven. 4Therefore, whoever humbles himself like this child is the greatest in the kingdom of heaven.
Matthew 18:1-4 (NIV)



1At that time the disciples came to Jesus and asked, "Who is the greatest in the kingdom of heaven?" 2He called a little child and had him stand among them. 3And he said: "I tell you the truth, unless you change and become like little children, you will never enter the kingdom of heaven. 4Therefore, whoever humbles himself like this child is the greatest in the kingdom of heaven.
Matthew 18:1-4 (NIV)