Difference between revisions of "Template:Bible verse"

From Pathfinder Wiki
(rollback until I can fix this.)
Line 1: Line 1:
{| border=1 cellspacing="1" cellpadding="5" width="90%" bgcolor="#202020"
+
<includeonly><!--<templatestyles src="Bible verse/style.css" />--><div id="bible-verse-container" class="mw-parser-output">
|-
+
{{#vardefine: quote-style-css-class | {{#switch: {{{style}}} | note-folded = quote-note-paper | vintage = quote-vintage-paper | quote-note-paper}} }}
!style="background:#d1b26f"|{{{book}}} {{#if:{{{chapter|}}}|{{{chapter}}}:}}{{{verse}}} {{#if:{{{version|}}}|({{{version}}})}}
+
{{#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 | }} }} }}
|style="background:#e6daa6"|{{{text}}}
+
<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>
 
+
</div></includeonly><noinclude>
<noinclude>
 
 
Use:<br>
 
Use:<br>
 
  <nowiki>{{</nowiki>Bible verse
 
  <nowiki>{{</nowiki>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 =  
 
  | book =  
 
  | chapter = (optional)
 
  | chapter = (optional)
Line 15: Line 17:
 
  | text =
 
  | text =
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
[[Category:Infobox templates|{{PAGENAME}}]]
+
Example:<br>{{Bible verse
 +
|style = note-folded
 +
|variant = tape-top
 +
|book = Matthew
 +
|chapter = 18
 +
|verse = 1-4
 +
|version = NIV
 +
|text = <sup>1</sup>At that time the disciples came to Jesus and asked, "Who is the greatest in the kingdom of heaven?"
 +
<sup>2</sup>He called a little child and had him stand among them. <sup>3</sup>And he said: "I tell you the truth, unless you change and become like little children, you will never enter the kingdom of heaven. <sup>4</sup>Therefore, whoever humbles himself like this child is the greatest in the kingdom of heaven.
 +
}}<br>{{Bible verse
 +
|style = note-folded
 +
|variant = tape-around
 +
|color = secondary
 +
|book = Matthew
 +
|chapter = 18
 +
|verse = 1-4
 +
|version = NIV
 +
|text = <sup>1</sup>At that time the disciples came to Jesus and asked, "Who is the greatest in the kingdom of heaven?"
 +
<sup>2</sup>He called a little child and had him stand among them. <sup>3</sup>And he said: "I tell you the truth, unless you change and become like little children, you will never enter the kingdom of heaven. <sup>4</sup>Therefore, whoever humbles himself like this child is the greatest in the kingdom of heaven.
 +
}}<br>{{Bible verse
 +
|style = note-folded
 +
|color = accent
 +
|book = Matthew
 +
|chapter = 18
 +
|verse = 1-4
 +
|version = NIV
 +
|text = <sup>1</sup>At that time the disciples came to Jesus and asked, "Who is the greatest in the kingdom of heaven?"
 +
<sup>2</sup>He called a little child and had him stand among them. <sup>3</sup>And he said: "I tell you the truth, unless you change and become like little children, you will never enter the kingdom of heaven. <sup>4</sup>Therefore, whoever humbles himself like this child is the greatest in the kingdom of heaven.
 +
}}<br>{{Bible verse
 +
|style = vintage
 +
|book = Matthew
 +
|chapter = 18
 +
|verse = 1-4
 +
|version = NIV
 +
|text = <sup>1</sup>At that time the disciples came to Jesus and asked, "Who is the greatest in the kingdom of heaven?"
 +
<sup>2</sup>He called a little child and had him stand among them. <sup>3</sup>And he said: "I tell you the truth, unless you change and become like little children, you will never enter the kingdom of heaven. <sup>4</sup>Therefore, whoever humbles himself like this child is the greatest in the kingdom of heaven.
 +
}}
 
</noinclude>
 
</noinclude>

Revision as of 02:03, 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)