Difference between revisions of "Template:Rule"

From AmtWiki
m
(incorporated ruleblock start and end)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="width:100%; margin: 1em; padding: 1em 1em 2em 1em; background-color: #FFFFee; border-style: groove; border-color: #FFFF55; position: relative;">{{{1}}}<div style="position: absolute; bottom: 2px; right: 5px; font-size: small; color: #666;">{{#if:{{{2|}}}|{{rulebook|{{{2}}}|Rulebook {{{2}}}}}|<span style="color: red;">Rulebook version missing!</span>}}</div></div>[[Category:{{{2}}} Rulebook Content]]</includeonly><noinclude>Creates a box that contains rulebook text. The rulebook version should be appended to the end as parameter 2. The page will automatically be added to a category for the rulebook version content.
+
<includeonly>{{Ruleblock-start}}{{{1}}}{{Ruleblock-end|{{{2}}}}}</includeonly><noinclude>Creates a box that contains rulebook text. The rulebook version should be appended to the end as parameter 2. The page will automatically be added to a category for the rulebook version content.
  
 
Example:
 
Example:

Latest revision as of 21:50, 11 February 2025

Creates a box that contains rulebook text. The rulebook version should be appended to the end as parameter 2. The page will automatically be added to a category for the rulebook version content.

Example:

{{rule
|'''Persuasion'''

Intelligent monsters and NPCs find the players arguments
more convincing than they otherwise would and are more
likely to be influenced by the player.
|8.6.2}}

becomes:

Persuasion

Intelligent monsters and NPCs find the players arguments more convincing than they otherwise would and are more likely to be influenced by the player.