Difference between revisions of "Template:Crypt"

From BlogNomic Wiki
Jump to navigation Jump to search
(creating a cell border template)
 
(split out the main logic into {{borders}})
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<div style="{{#switch: {{{north}}} | blocked = border-top:2px solid #f00; }}
+
<div style="{{borders|north={{{north|}}}|west={{{west|}}}|south={{{south|}}}|east={{{east|}}}}}">{{{1}}}</div><noinclude>
{{#switch: {{{south}}} | blocked = border-bottom:2px solid #f00; }}
 
{{#switch: {{{east}}} | blocked = border-right:2px solid #f00; }}
 
{{#switch: {{{west}}} | blocked = border-left:2px solid #f00; }}">{{{1}}}</div>
 
 
 
<noinclude>
 
 
==Example==
 
==Example==
 
The code <code><nowiki>{{crypt|Tenuous Bridge|west=blocked|south=blocked}}</nowiki></code> inside a table cell at [[Zahndorf Crypt]] will produce:
 
The code <code><nowiki>{{crypt|Tenuous Bridge|west=blocked|south=blocked}}</nowiki></code> inside a table cell at [[Zahndorf Crypt]] will produce:

Latest revision as of 03:12, 25 July 2021

{{{1}}}

Example

The code {{crypt|Tenuous Bridge|west=blocked|south=blocked}} inside a table cell at Zahndorf Crypt will produce:

Tenuous Bridge