Difference between revisions of "Template:Location Description"

From Masq
m
Line 1: Line 1:
'''[[Name of Page|Complete Room Name On Grid]]'''
+
<noinclude>
 
+
<pre>
{{pad|3em}}Paragraph 1.
+
{{Location Description
 
+
|page=Name of Location's Page
{{pad|3em}}Paragraph 2.
+
|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 />
[[Page Name|Exit&nbsp;Name]]&nbsp;<??> {{pad}} [[Page Name|Exit&nbsp;Name]]&nbsp;<??> {{pad}}[[Page Name|Exit&nbsp;Name]]&nbsp;<??>
+
{{#forargs: exit_
<includeonly>[[Category: Location Subpages]]</includeonly>
+
| key
 +
| value
 +
| {{#switch: {{#sub:{{#var:key}}|0|4}} | name = {{#vardefine:theExit|{{#replace:{{#var:value}}| |&nbsp;}}}}| link = {{#vardefine:theLink|{{#var:value}}}}| alia = {{#vardefine:theAlias|{{#var:value}}}}[[{{#var:theLink}}|{{#var:theExit}}]]&nbsp;<{{#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.
}}