Template:Log2: Difference between revisions
Jump to navigation
Jump to search
VANKRASN39 (talk | contribs) (set up remaining parameters) |
MOD-GSMOTTE (talk | contribs) (Let's try this again and see if it breaks everything.) |
||
(4 intermediate revisions by 2 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]]. |
|||
'''Template to reduce edits needed to bring LOG information to GSWIKI.''' |
|||
==Usage== |
|||
A simple copy and paste should now suffice, with very little if any editing. |
|||
<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== |
|||
⚫ | |||
<pre <onlyinclude> style="margin-right: {{{margin-right|20%}}}; |
<pre <onlyinclude> style="margin-right: {{{margin-right|20%}}}; |
||
Line 20: | Line 26: | ||
white-space: -pre-wrap; |
white-space: -pre-wrap; |
||
white-space: -o-pre-wrap;" |
white-space: -o-pre-wrap;" |
||
</onlyinclude> |
</onlyinclude></pre> |
||
==Example== |
|||
> |
|||
===Markup=== |
|||
>exp |
|||
<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 |
Level: 6 Deeds: 0 |
||
Experience: 43060 Death's Sting: None |
Experience: 43060 Death's Sting: None |
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.