Template:Log2: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
(Updated template page with more information about usage.)
(Let's try this again and see if it breaks everything.)
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
Parameters that can be overloaded / adjusted in adopting templates include:
Parameters that can be overloaded / adjusted in adopting templates include:


<pre <onlyinclude>style="margin-right: {{{margin-right|20%}}};
<pre <onlyinclude> style="margin-right: {{{margin-right|20%}}};
margin-left: {{{margin-left|2em}}};
margin-left: {{{margin-left|2em}}};
margin-top: {{{margin-top|1em}}};
margin-top: {{{margin-top|1em}}};

Latest revision as of 09:11, 1 August 2021

This template is intended to reduce the number of edits needed to properly format game output on the wiki. Editors can copy and paste game output inside of the below template with little to no editing. See Template:Log3 for use with character descriptions on Storyline and Merchant NPCS.

Usage

<pre{{log2}}>Insert game output here.</pre>

In many cases, it will be useful to include a right margin to keep the template from encroaching on a right sidebar. Use this syntax in these situations:

<pre{{log2|margin-right=26em}}>Insert game output here.</pre>

Other information

Parameters that can be overloaded / adjusted in adopting templates include:

 style="margin-right: {{{margin-right|20%}}}; 
margin-left: {{{margin-left|2em}}}; 
margin-top: {{{margin-top|1em}}}; 
margin-bottom: {{{margin-bottom|1em}}}; 
padding: {{{padding|7px 10px}}}; 
background: {{{background|#f3f3f9}}}; 
border: {{{border|line}}}; 
text-align: {{{text-align|left}}}; 
font-size:{{{font-size|95%}}}; 
font-family: {{{font|Consolas, DejaVu sans mono, Courier New, monospace}}};
color: {{{color|black}}}; 
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;"
</onlyinclude>

Example

Markup

<pre{{log2}}>exp
          Level: 6                           Deeds: 0              
     Experience: 43060               Death's Sting: None
Exp. until next: 11940               Recent Deaths: 0              
     Mental TPs: 5                            Fame: 27644          
   Physical TPs: 47                           Mana: 23/23 max

Your mind is as clear as a bell.</pre>

Result

>exp
          Level: 6                           Deeds: 0              
     Experience: 43060               Death's Sting: None
Exp. until next: 11940               Recent Deaths: 0              
     Mental TPs: 5                            Fame: 27644          
   Physical TPs: 47                           Mana: 23/23 max

Your mind is as clear as a bell.