Template:Log2: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
m (Gimped!)
(Let's try this again and see if it breaks everything.)
 
(33 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__noTOC__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 [[Help:Storyline_NPCs|Storyline and Merchant NPCS]].
<noinclude><div </noinclude>style="padding-top: 0px; padding-left: 10px; padding-right: 10px; margin-right: {{{margin-right|20%}}}; margin-left: 2em; margin-top: 2em; margin-bottom: 2em; background: #f3f3f9; border: 2px dashed #adbcd0; text-align: left; font-size:95%; font-family: Consolas, DejaVu sans mono, Courier New, monospace; color: black; white-space: pre-wrap; word-wrap: break-word;"<noinclude>>This template is for LOG captures where retaining white space in lines of information in a <nowiki><div></nowiki> tag - is considered important to retain. It thoughtfully includes proper word-wrap at the boundaries of the text box.

</div></noinclude>
==Usage==
<nowiki><pre{{log2}}>Insert game output here.</pre></nowiki>

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:

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

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

<pre <onlyinclude> 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></pre>
==Example==
===Markup===
<nowiki><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></nowiki>
===Result===
<pre style="margin-right: 20%;margin-left: 2em; margin-top: 1em; margin-bottom: 1em; padding: 7px 10px; background: #f3f3f9; border: line; text-align: left; font-size:95%; font-family: 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;">>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>

[[Category:CSS templates]]

Latest revision as of 10: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.