Template:Log2: Difference between revisions
Jump to navigation
Jump to search
m (And that word wrap thing? Yeah. Well now. . .) |
MOD-GSMOTTE (talk | contribs) (Let's try this again and see if it breaks everything.) |
||
(53 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]]. |
|||
⚫ | < |
||
==Usage== |
|||
PLEASE LEAVE MY WHITE SPACE IN A LOG ALONE! |
|||
<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: |
|||
This is an exceptionally long sentence to test the word wrapping capabilities of this particular template, largely because I don't believe it until I've seen it. I've been fooled just a few too many times! Let's prove the case, here and now, that this template can - in fact it MUST be able to handle and wrap long sentences. I shall '''not''' give up until it does!</div></noinclude> |
|||
<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.