Difference between revisions of "Template:Business"
From Fate's Harvest
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | <noinclude> | ||
| + | |||
| + | Stuff for the business template. This populates [[Businesses]] and also some other stuff! | ||
| + | |||
<pre> | <pre> | ||
{{ Business | {{ Business | ||
| use-infobox=Yes/No | | use-infobox=Yes/No | ||
| biz-page-name=The name of the page this template is on | | biz-page-name=The name of the page this template is on | ||
| − | | icon= | + | | icon=A square icon that will show on the Businesses page |
| main-picture= | | main-picture= | ||
| − | | owned-by= Name | + | | owned-by=Owner's Name (links to wiki page) |
| − | | loc-name= | + | | loc-name=The name of the Grid Square (or something like it) |
| − | | loc-grid-square= | + | | loc-grid-square=This links to the Grid Square page |
| − | | hedge= | + | | hedge=Yes/No |
| − | | business-type= | + | | business-type=A brief description |
| − | | public-scenes= | + | | public-scenes=Is this location free to use by anyone? |
| − | | hiring= | + | | hiring=Yes/No - If yes, feel free to say what you are hiring |
| − | | status= | + | | status=Active/Potential/Inactive |
}} | }} | ||
</pre> | </pre> | ||
| + | </noinclude> | ||
<includeonly> | <includeonly> | ||
| + | {{#ifeq: {{{use-infobox}}} | Yes | ||
| + | | | ||
{{{!}} width=300px class="infobox" style="float: right; margin: 0;" | {{{!}} width=300px class="infobox" style="float: right; margin: 0;" | ||
{{!}} colspan="2" align=center {{!}} [[Image:{{{main-picture}}}{{!}}280px{{!}}center]] | {{!}} colspan="2" align=center {{!}} [[Image:{{{main-picture}}}{{!}}280px{{!}}center]] | ||
| Line 25: | Line 32: | ||
{{!}}- | {{!}}- | ||
{{!}} class="left" {{!}} '''Location:''' | {{!}} class="left" {{!}} '''Location:''' | ||
| − | {{! | + | {{!}} {{#ifeq: {{{hedge| }}} | No | {{#if: {{{loc-name}}} | {{{loc-name}}} | }} - [[{{{loc-grid-square}}}]] | <span style="color: green;">{{#if: {{{loc-name}}} | {{{loc-name}}} | }} - [[{{{loc-grid-square}}}]] </span>}} |
{{!}}- | {{!}}- | ||
{{!}} class="left" {{!}}'''Hiring:''' | {{!}} class="left" {{!}}'''Hiring:''' | ||
| − | {{!}} {{#ifeq: {{{hiring}}} | + | {{!}} {{#ifeq: {{{hiring}}} | No | No | {{{hiring}}} }} |
{{!}}- | {{!}}- | ||
{{!}} class="left" {{!}} '''Owner:''' | {{!}} class="left" {{!}} '''Owner:''' | ||
{{!}} [[{{{owned-by}}}]] | {{!}} [[{{{owned-by}}}]] | ||
| − | {{!}}} | + | {{!}}} | }} |
| + | {{#if: {{{status}}} | [[Category:{{{status}}}]] | }}[[Category:Business]] | ||
</includeonly> | </includeonly> | ||
Latest revision as of 18:30, 30 March 2017
Stuff for the business template. This populates Businesses and also some other stuff!
{{ Business
| use-infobox=Yes/No
| biz-page-name=The name of the page this template is on
| icon=A square icon that will show on the Businesses page
| main-picture=
| owned-by=Owner's Name (links to wiki page)
| loc-name=The name of the Grid Square (or something like it)
| loc-grid-square=This links to the Grid Square page
| hedge=Yes/No
| business-type=A brief description
| public-scenes=Is this location free to use by anyone?
| hiring=Yes/No - If yes, feel free to say what you are hiring
| status=Active/Potential/Inactive
}}