Difference between revisions of "Template:Location Description"
From Masq
m |
|||
| Line 1: | Line 1: | ||
| − | + | <noinclude> | |
| − | + | <pre> | |
| − | {{ | + | {{Location Description |
| − | + | |page=Name of Location's Page | |
| − | {{pad|3em}} | + | |name=Complete Room Name On Grid |
| − | + | |----- | |
| + | |paragraph1=The first paragraph of the description. | ||
| + | |paragraph2=The second paragraph of the description. | ||
| + | |paragraphN=The Nth paragraph of the description. | ||
| + | |----- | ||
| + | |exit_name1=The name of the first exit. | ||
| + | |exit_link1=The name of the wiki grid page for the room the first exit links to. | ||
| + | |exit_alias1=The short alias for the first exit. | ||
| + | |exit_name2=The name of the second exit. | ||
| + | |exit_link2=The name of the wiki grid page for the room the second exit links to. | ||
| + | |exit_alias2=The short alias for the second exit. | ||
| + | |exit_nameN=The name of the Nth exit. | ||
| + | |exit_linkN=The name of the wiki grid page for the room the Nth exit links to. | ||
| + | |exit_aliasN=The short alias for the Nth exit. | ||
| + | }} | ||
| + | </pre> | ||
| + | [[Category:Templates]]</noinclude><includeonly> | ||
| + | '''[[{{{page}}}|{{{name}}}]]'''{{#forargs: paragraph | ||
| + | | key | ||
| + | | value | ||
| + | |{{#ifeq:{{#sub:{{#var:value}}|0|8}}|<center>||<br/><br/>{{pad|3em}}}} {{#var:value}}}} | ||
''Obvious exits:''<br /> | ''Obvious exits:''<br /> | ||
| − | + | {{#forargs: exit_ | |
| − | + | | key | |
| + | | value | ||
| + | | {{#switch: {{#sub:{{#var:key}}|0|4}} | name = {{#vardefine:theExit|{{#replace:{{#var:value}}| | }}}}| link = {{#vardefine:theLink|{{#var:value}}}}| alia = {{#vardefine:theAlias|{{#var:value}}}}[[{{#var:theLink}}|{{#var:theExit}}]] <{{#var:theAlias}}> {{pad}} }} | ||
| + | }} | ||
| + | [[Category: Location Subpages]]</includeonly> | ||
Revision as of 13:54, 17 February 2013
{{Location Description
|page=Name of Location's Page
|name=Complete Room Name On Grid
|-----
|paragraph1=The first paragraph of the description.
|paragraph2=The second paragraph of the description.
|paragraphN=The Nth paragraph of the description.
|-----
|exit_name1=The name of the first exit.
|exit_link1=The name of the wiki grid page for the room the first exit links to.
|exit_alias1=The short alias for the first exit.
|exit_name2=The name of the second exit.
|exit_link2=The name of the wiki grid page for the room the second exit links to.
|exit_alias2=The short alias for the second exit.
|exit_nameN=The name of the Nth exit.
|exit_linkN=The name of the wiki grid page for the room the Nth exit links to.
|exit_aliasN=The short alias for the Nth exit.
}}