Template:5e Setting: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<includeonly>{|align="right" style="border-style:solid; border-width:1px; border-color:#000000; border-radius:0.5em; background:#CC6600; min-width:150px;" |style="{{#if: {{{2|...")
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|align="right" style="border-style:solid; border-width:1px; border-color:#000000; border-radius:0.5em; background:#CC6600; min-width:150px;"
<includeonly><div style="display:block; float:right; border-style:solid; border-width:1px; {{5e Setting Color|{{{1|}}}}} border-radius:0.5em; <!--max-width: 20vw;--> padding:0 0.5em;"><span style="font-size: 0.9rem;">Setting{{#if: {{{2|}}}|&ensp;Specific|}}: '''{{5ed|{{{1}}}}}'''</div>[[Category:5e {{{1|no setting}}}]]</includeonly><noinclude>
|style="{{#if: {{{2|}}}|background:{{{2}}};|background:#ffffff;}} text-align: center;"|'''[[{{{1|no setting}}} (5e Campaign Setting)|{{{1|no setting}}}]]'''
==Use==
|-
Badge to display setting.
|style="background:#CC6600; text-align:center; font-size:7pt; color:#ffffff;"|Setting {{#if: {{{3|}}}|Specific {{#set: Setting Specific=true}}| }}
 
|}[[Category:5e {{{1|no setting}}}]]{{#set: Setting={{{1|no setting}}}}}</includeonly><noinclude>
==Syntax==
==Syntax==
<pre>{{5e Setting|SettingName|optBGcolor|optSettingSpecific}}</pre>
<pre>{{5e Setting|SettingName|OptSettingSpecific}}</pre>


==Example==
==Example==
<pre>{{5e Setting|The Setting}}</pre>
<pre>{{5e Setting|The Setting}}</pre>


<pre>{{5e Setting|Second Setting|#ccccff}}</pre>
<pre>{{5e Setting|Eberron}}</pre>


<pre>{{5e Setting|Third Setting||y}}</pre>
<pre>{{5e Setting|Third Setting|y}}</pre>


produces...
produces...
Line 18: Line 17:
{{5e Setting|The Setting}}
{{5e Setting|The Setting}}
<br clear="right" />
<br clear="right" />
{{5e Setting|Second Setting|#ccccff}}
{{5e Setting|Eberron}}
<br clear="right" />
<br clear="right" />
{{5e Setting|Third Setting||y}}
{{5e Setting|Third Setting|y}}
 
==Dependencies==
This template calls [[Template:5e Setting Color]] that returns the border and background color for a setting.


[[Category:5e Templates]]
[[Category:5e Templates]]
</noinclude>
</noinclude>

Latest revision as of 18:12, 5 June 2020

Use

Badge to display setting.

Syntax

{{5e Setting|SettingName|OptSettingSpecific}}

Example

{{5e Setting|The Setting}}
{{5e Setting|Eberron}}
{{5e Setting|Third Setting|y}}

produces...

Setting: The Setting


Setting: Eberron


Setting Specific: Third Setting

Dependencies

This template calls Template:5e Setting Color that returns the border and background color for a setting.