Template:RoomDescription: Difference between revisions
Jump to navigation
Jump to search
(Reworked formatting.) |
mNo edit summary Tag: Manual revert |
||
(27 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<div style="float: {{{ |
<div style="float: {{{float|none}}}; border: 1px solid black; background: white; margin-top: 1em; margin-bottom: 1em; margin-left: 2em; margin-right: {{{margin-right|20%}}}; display: table"> |
||
<div style="background: #E6F2FF; padding: 0.5em |
<div style="background: #E6F2FF; padding: 0.5em 1em; border: none; margin-bottom: 1px; text-align: left; font-size: 95%;"> |
||
{| width="100%" |
{| width="100%" cellpadding="0" cellspacing="0" |
||
| align="left" | '''[{{{roomname}}}]''' |
| align="left" | '''[{{{roomname}}}]''' |
||
| align="right" | {{#if: {{{realrnum|}}}|Room: {{{realrnum|}}} |}}{{#if: {{{rnum|}}} | {{#if: {{{realrnum|}}} | , [[Script Go2|RNUM]]: {{{rnum|}}} | [[Script Go2|RNUM]]: {{{rnum|}}} |}} |}} |
|||
| align="right" | <sup>{{{rnum|}}}</sup> |
|||
| |
|- |
||
⚫ | |||
{| width="100%" |
|||
|- |
|||
⚫ | |||
<includeonly>{{#if: {{{exits|}}} |</includeonly> {{!}} colspan="2" {{!}} Obvious exits: {{{exits}}}<includeonly>|</includeonly>}} |
|||
|- |
|||
<includeonly>{{#if: {{{paths|}}} |</includeonly> {{!}} colspan="2" {{!}} Obvious paths: {{{paths}}}<includeonly>|</includeonly>}} |
|||
|- |
|||
<includeonly>{{#if: {{{1|}}} |</includeonly> {{!}} style="padding-top: 1em" {{!}} {{{1}}}<includeonly>|</includeonly>}} |
|||
|} |
|} |
||
</div> |
</div> |
||
</div> |
</div><noinclude> |
||
<noinclude> |
|||
== Usage == |
== Usage == |
||
Parameters: |
Parameters: |
||
⚫ | |||
*1: (optional) left or right, determines floating |
|||
⚫ | |||
⚫ | |||
*(optional) rnum: mapdb/narost room number |
|||
⚫ | |||
* |
*(optional) realrnum: real room number |
||
*(optional) exits |
|||
⚫ | |||
*(optional) paths |
|||
*(optional) float: floating box |
|||
⚫ | |||
'''Copy/paste Code''' |
|||
<pre> |
|||
{{RoomDescription |
|||
|roomname = |
|||
|desc = |
|||
|rnum = |
|||
|realrnum = |
|||
|exits = |
|||
|paths = |
|||
|float = |
|||
|margin-right = |
|||
}} |
|||
</pre> |
|||
== Comparison with [[Template:Log2]] == |
== Comparison with [[Template:Log2]] == |
||
<div style="float: |
<div style="float: none; border: 1px solid black; background: white; margin-top: 1em; margin-bottom: 1em; margin-left: 2em; margin-right: 20%"> |
||
<div style="background: #E6F2FF; padding: 0.5em |
<div style="background: #E6F2FF; padding: 0.5em 1em; border: 1px; text-align: left; font-size: 95%;"> |
||
{| width="100%" |
{| width="100%" cellpadding="0" cellspacing="0" |
||
| align="left" | '''[ |
| align="left" | '''[Room Name]''' |
||
| align="right" | <sup> |
| align="right" | <sup>rnum</sup> |
||
| |
|- |
||
⚫ | | colspan="2" | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
||
{| |
|||
|- |
|||
⚫ | | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
||
| colspan="2" | Obvious paths: east, west |
|||
|} |
|} |
||
</div> |
</div> |
||
Line 35: | Line 58: | ||
<pre{{log2}}> |
<pre{{log2}}> |
||
<b>[ |
<b>[Room Name - rnum]</b> |
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
||
Obvious paths: east, west |
|||
</pre> |
</pre> |
||
[[Category: |
[[Category:CSS templates|{{PAGENAME}}]]</noinclude> |
Latest revision as of 16:29, 27 November 2024
[{{{roomname}}}] | |
{{{desc}}} | |
Obvious exits: {{{exits}}}}} | |
Obvious paths: {{{paths}}}}} | |
{{{1}}}}} |
Usage
Parameters:
- (required) roomname: room name
- (required) desc: room description
- (optional) rnum: mapdb/narost room number
- (optional) realrnum: real room number
- (optional) exits
- (optional) paths
- (optional) float: floating box
- (optional) margin-right: space on right, default 20%
Copy/paste Code
{{RoomDescription |roomname = |desc = |rnum = |realrnum = |exits = |paths = |float = |margin-right = }}
Comparison with Template:Log2
[Room Name] | rnum |
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | |
Obvious paths: east, west |
[Room Name - rnum] Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Obvious paths: east, west