Template:Blockref: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|align="left"
<includeonly><div style="display:block; border-style:solid; border-width:1px; border-radius:0.25em; border-color:lightgray; text-align:left; {{#if: {{{margin|}}}|margin-right:{{{margin}}};|}}"><div style="display:inline-block; <!--float:left;--> background:gainsboro; border:solid 1px gainsboro; border-radius:0.25em; text-align:left; margin-right:0.5em;">&nbsp;{{{2}}}&nbsp;</div> {{{1}}}</div>{{#if: {{{squeeze|}}}|<br clear="left" />|<br />}}</includeonly><noinclude>
|style="border-style:solid; border-width:1px; border-radius:0.25em; border-color:#ddddee;"|{{{1}}}
|valign="top"|{{{2}}}
|}<br clear="left" /></includeonly><noinclude>
==Use==
==Use==
For referencing a large chunk of text (paragraph or more).
For referencing a large chunk of text (paragraph or more).
Line 12: Line 9:


<pre><references /></pre>
<pre><references /></pre>
===Optional parameter===
<pre>
|margin= <!--right margin-->
|squeeze= <!--if filled does not clear left-->
</pre>


==Example==
==Example==
Line 19: Line 22:


'''Produces:'''
'''Produces:'''
 
{{Blockref|Injury and the risk of death are constant companions of those who explore fantasy gaming worlds. The thrust of a sword, a well-­placed arrow, or a blast of flame from a ''[[SRD5:Fireball|fireball]]'' spell all have the potential to damage, or even kill, the hardiest of creatures.|<ref name="srd5">[[SRD-OGL v5.1]] - 5th edition [[SRD5|SRD]]</ref>}}
{{Blockref
<!--
|Injury and the risk of death are constant companions of those who explore fantasy gaming worlds. The thrust of a sword, a well-­placed arrow, or a blast of flame from a ''[[SRD5:Fireball|fireball]]'' spell all have the potential to damage, or even kill, the hardiest of creatures.
{{Blockref|Injury and the risk of death are constant companions of those who explore fantasy gaming worlds. The thrust of a sword, a well-­placed arrow, or a blast of flame from a ''[[SRD5:Fireball|fireball]]'' spell all have the potential to damage, or even kill, the hardiest of creatures.|<ref name="srd5">[[SRD-OGL v5.1]] - 5th edition [[SRD5|SRD]]</ref>|margin=200px}}
|<ref name="srd5">[[SRD-OGL v5.1]] - 5th edition [[SRD5|SRD]]</ref>}}
{{tocright}}
 
{{Blockref|Injury and the risk of death are constant companions of those who explore fantasy gaming worlds. The thrust of a sword, a well-­placed arrow, or a blast of flame from a ''[[SRD5:Fireball|fireball]]'' spell all have the potential to damage, or even kill, the hardiest of creatures.|<ref name="srd5">[[SRD-OGL v5.1]] - 5th edition [[SRD5|SRD]]</ref>|squeeze=true}}
-->
[[Category:Help Templates]]
[[Category:Help Templates]]
</noinclude>
</noinclude>

Latest revision as of 18:56, 5 April 2024

Use

For referencing a large chunk of text (paragraph or more).

Syntax

{{Blockref|quoted text|reference}}

And place under sources, notes, etc.

<references />

Optional parameter

|margin= <!--right margin-->
|squeeze= <!--if filled does not clear left-->

Example

{{Blockref
|Injury and the risk of death are constant companions of those who explore fantasy gaming worlds. The thrust of a sword, a well-­placed arrow, or a blast of flame from a ''[[SRD5:Fireball|fireball]]'' spell all have the potential to damage, or even kill, the hardiest of creatures.
|<ref name="srd5">[[SRD-OGL v5.1]] - 5th edition [[SRD5|SRD]]</ref>}}

Produces:

 [1] 
Injury and the risk of death are constant companions of those who explore fantasy gaming worlds. The thrust of a sword, a well-­placed arrow, or a blast of flame from a fireball spell all have the potential to damage, or even kill, the hardiest of creatures.


  1. SRD-OGL v5.1 - 5th edition SRD