Difference between revisions of "Template:NeighborhoodCard"
From ThresholdRPG Wiki
(Restyle to match Deity infobox chrome (rounded border, float right, transparent bg); conditional row rendering so empty fields don't leave empty cells; add image parameter) |
(Only categorize into Neighborhoods when used in main namespace, so template + doc pages don't end up in the category via their own example) |
||
| Line 16: | Line 16: | ||
}} | }} | ||
|} | |} | ||
| − | [[Category:Neighborhoods]] | + | {{#ifeq:{{NAMESPACE}}||[[Category:Neighborhoods]]}} |
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
Latest revision as of 01:43, 22 May 2026
{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}
This template creates a card to show a neighborhood's name, the region it's located in, and any racial or other restriction on moving in. It also adds the page to the Category:Neighborhoods category.
Example : {{NeighborhoodCard|name=Parkside Manors|region=Thrace}}
Result :
| Parkside Manors | |
| Region | Thrace |
Usage
{{NeighborhoodCard|name|region|restriction|image}}
Parameters
All parameters are optional. Rows for empty parameters are hidden.
- name
- When not used, the page name is shown.
- region
- The region the neighborhood is in. Examples: Thrace, Sable, Kelnore, Androctonus, Banyee.
- restriction
- Any race or heritage restriction on moving in. Omit if there are no restrictions.
- image
- Filename of an image (without File: prefix) to display in the card, sized to 200px wide. Omit if there is no image yet.
The above documentation is transcluded from Template:NeighborhoodCard/doc. (edit | history)