Difference between revisions of "Verseheader"
From Theonomy Wiki
Line 1: | Line 1: | ||
{{#vardefine:chap|{{#rmatch:{{{1|}}}|([^:]+):.+|$1|{{{1|}}}}}}}{{#vardefine:verse|{{#rmatch:{{{1|}}}|[^:]+:(\d+)|$1|{{{1|}}}}}}}{{#vardefine:prevverse|{{#var:chap}}:{{#expr: {{#var:verse}}-1}}}}{{#vardefine:nextverse|{{#var:chap}}:{{#expr: {{#var:verse}}+1}}}} | {{#vardefine:chap|{{#rmatch:{{{1|}}}|([^:]+):.+|$1|{{{1|}}}}}}}{{#vardefine:verse|{{#rmatch:{{{1|}}}|[^:]+:(\d+)|$1|{{{1|}}}}}}}{{#vardefine:prevverse|{{#var:chap}}:{{#expr: {{#var:verse}}-1}}}}{{#vardefine:nextverse|{{#var:chap}}:{{#expr: {{#var:verse}}+1}}}} | ||
− | {{:Navup|Category:{{#var:chap}}|{{:Transname|{{#var:chap}}}}}} | + | <div dir="{{#if:{{:RTL}}|rtl|ltr"}}">{{:Navup|Category:{{#var:chap}}|{{:Transname|{{#var:chap}}}}}} |
{{#ifexist: Category:{{#var:prevverse}}|{{:Navleft|Category:{{#var:prevverse}}|{{:Transname|{{#var:prevverse}}}}}} | }} | {{#ifexist: Category:{{#var:prevverse}}|{{:Navleft|Category:{{#var:prevverse}}|{{:Transname|{{#var:prevverse}}}}}} | }} | ||
{{#ifexist: Category:{{#var:nextverse}}|{{:Navright|Category:{{#var:nextverse}}|{{:Transname|{{#var:nextverse}}}}}} }}<br/> | {{#ifexist: Category:{{#var:nextverse}}|{{:Navright|Category:{{#var:nextverse}}|{{:Transname|{{#var:nextverse}}}}}} }}<br/> | ||
{{:Scriptblock|{{{1|}}}}}<br/> | {{:Scriptblock|{{{1|}}}}}<br/> |