Template:BuildPage: Difference between revisions
More actions
Fix contributor amounts: use HTML rows for contributors 2-15 to avoid MediaWiki #if newline stripping bug |
Add funded=yes/no parameter for partially funded builds, additional_requirements field, crest image for funded builds |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
A styled page template for '''Bankers Guild | A styled page template for '''Bankers Guild Build''' pages — both '''Funded''' and '''Partially Funded'''. Wraps the build's lore, details, and contribution history in a consistent, attractive layout. | ||
Set <code>funded=no</code> for partially funded builds. This changes the contributions heading to "Contributions so far", removes the Bankers Guild crest, and categorises the page as a partially funded build. | |||
=== Quick Start (Visual Editor) === | === Quick Start (Visual Editor) === | ||
| Line 8: | Line 10: | ||
# Select '''BuildPage''' from your Favorites | # Select '''BuildPage''' from your Favorites | ||
# Fill in the labelled fields — each contribution row has its own Contributor / Source / Amount fields | # Fill in the labelled fields — each contribution row has its own Contributor / Source / Amount fields | ||
# Set '''funded''' to "no" for partially funded builds (defaults to "yes") | |||
# Click '''Insert''' to add the template | # Click '''Insert''' to add the template | ||
=== Source Editor Example === | === Source Editor Example (Funded) === | ||
<pre> | <pre> | ||
{{BuildPage | {{BuildPage | ||
| Line 22: | Line 25: | ||
|source1=Valdraeth | |source1=Valdraeth | ||
|amount1=1 Legend, 5 Myths, 5 Sagas | |amount1=1 Legend, 5 Myths, 5 Sagas | ||
|balance=PAID IN FULL | |balance=PAID IN FULL | ||
|nation=Avereaux | |nation=Avereaux | ||
}} | |||
</pre> | |||
=== Source Editor Example (Partially Funded) === | |||
<pre> | |||
{{BuildPage | |||
|funded=no | |||
|subtitle=A Gentle Reawakening, Fur-lined and Fanged | |||
|quote=Death is not the end—it's merely a chance to train your bear. | |||
|lore=Your build lore text goes here. | |||
|cost=60 Legends | |||
|additional_requirements=Fable Weaving (To Obtain Victims Stories) + Oracle Weaving (8 Victims Names Listed) | |||
|location=MORVALIS - Storms Vigil | |||
|build_code=BG.FSM.14A | |||
|contributor1=Ivanov Von Belladonna | |||
|source1=Morvalis | |||
|amount1=5 Sagas | |||
|balance=59 Legends, 19 Myths, 15 Sagas | |||
|nation=Morvalis | |||
}} | }} | ||
</pre> | </pre> | ||
| Line 33: | Line 52: | ||
{| class="wikitable" | {| class="wikitable" | ||
! Parameter !! Required !! Description | ! Parameter !! Required !! Description | ||
|- | |||
| '''funded''' || No || Set to "no" for partially funded builds. Defaults to "yes". Changes heading, crest visibility, and categories. | |||
|- | |- | ||
| '''subtitle''' || No || A short tagline or thematic subtitle | | '''subtitle''' || No || A short tagline or thematic subtitle | ||
| Line 41: | Line 62: | ||
|- | |- | ||
| '''cost''' || No || Cost of construction (use middot · to separate) | | '''cost''' || No || Cost of construction (use middot · to separate) | ||
|- | |||
| '''additional_requirements''' || No || Any non-currency requirements (e.g. weaving, faith, essences) | |||
|- | |- | ||
| '''location''' || No || Build location (e.g. "AVEREAUX – EMBERMOUNT") | | '''location''' || No || Build location (e.g. "AVEREAUX – EMBERMOUNT") | ||
| Line 52: | Line 75: | ||
| '''amount1''' – '''amount15''' || No || Contribution amount for each contributor | | '''amount1''' – '''amount15''' || No || Contribution amount for each contributor | ||
|- | |- | ||
| '''balance''' || No || Remaining balance status (e.g. "PAID IN FULL") | | '''balance''' || No || Remaining balance status (e.g. "PAID IN FULL" or "59 Legends, 19 Myths") | ||
|- | |- | ||
| '''nation''' || '''Yes''' || Nation name, used for categories and back-link | | '''nation''' || '''Yes''' || Nation name, used for categories and back-link | ||
| Line 59: | Line 82: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "A styled page template for Bankers Guild | "description": "A styled page template for Bankers Guild Build pages (both Funded and Partially Funded). Creates a consistent layout with subtitle, flavour quote, lore text, build details table, and contributions table.", | ||
"format": "block", | "format": "block", | ||
"params": { | "params": { | ||
"funded": { | |||
"label": "Funded?", | |||
"description": "Set to 'no' for partially funded builds. Defaults to 'yes'. Changes contributions heading, hides the crest, and adjusts categories.", | |||
"type": "string", | |||
"default": "yes", | |||
"suggestedvalues": ["yes", "no"], | |||
"suggested": true | |||
}, | |||
"subtitle": { | "subtitle": { | ||
"label": "Subtitle", | "label": "Subtitle", | ||
| Line 87: | Line 118: | ||
"type": "string", | "type": "string", | ||
"suggested": true | "suggested": true | ||
}, | |||
"additional_requirements": { | |||
"label": "Additional Requirements", | |||
"description": "Any non-currency requirements such as weaving, faith, essences, etc.", | |||
"example": "Fable Weaving + Oracle Weaving", | |||
"type": "string" | |||
}, | }, | ||
"location": { | "location": { | ||
| Line 130: | Line 167: | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"contributor1": { | "contributor1": { "label": "Contributor 1", "description": "Name of contributor 1", "type": "string", "suggested": true }, | ||
"source1": { "label": "Source 1", "description": "Source or affiliation of contributor 1", "type": "string", "suggested": true }, | |||
"amount1": { "label": "Amount 1", "description": "Contribution amount from contributor 1", "type": "string", "suggested": true }, | |||
"contributor2": { "label": "Contributor 2", "description": "Name of contributor 2", "type": "string", "suggested": true }, | |||
"source2": { "label": "Source 2", "description": "Source or affiliation of contributor 2", "type": "string", "suggested": true }, | |||
"amount2": { "label": "Amount 2", "description": "Contribution amount from contributor 2", "type": "string", "suggested": true }, | |||
"source1": { | "contributor3": { "label": "Contributor 3", "description": "Name of contributor 3", "type": "string", "suggested": true }, | ||
"source3": { "label": "Source 3", "description": "Source or affiliation of contributor 3", "type": "string", "suggested": true }, | |||
"amount3": { "label": "Amount 3", "description": "Contribution amount from contributor 3", "type": "string", "suggested": true }, | |||
"contributor4": { "label": "Contributor 4", "type": "string" }, | |||
"source4": { "label": "Source 4", "type": "string" }, | |||
"amount4": { "label": "Amount 4", "type": "string" }, | |||
"amount1": { | "contributor5": { "label": "Contributor 5", "type": "string" }, | ||
"source5": { "label": "Source 5", "type": "string" }, | |||
"amount5": { "label": "Amount 5", "type": "string" }, | |||
"contributor6": { "label": "Contributor 6", "type": "string" }, | |||
"source6": { "label": "Source 6", "type": "string" }, | |||
"amount6": { "label": "Amount 6", "type": "string" }, | |||
"contributor2": { | "contributor7": { "label": "Contributor 7", "type": "string" }, | ||
"source7": { "label": "Source 7", "type": "string" }, | |||
"amount7": { "label": "Amount 7", "type": "string" }, | |||
"contributor8": { "label": "Contributor 8", "type": "string" }, | |||
"source8": { "label": "Source 8", "type": "string" }, | |||
"amount8": { "label": "Amount 8", "type": "string" }, | |||
"source2": { | "contributor9": { "label": "Contributor 9", "type": "string" }, | ||
"source9": { "label": "Source 9", "type": "string" }, | |||
"amount9": { "label": "Amount 9", "type": "string" }, | |||
"contributor10": { "label": "Contributor 10", "type": "string" }, | |||
"source10": { "label": "Source 10", "type": "string" }, | |||
"amount10": { "label": "Amount 10", "type": "string" }, | |||
"amount2": { | "contributor11": { "label": "Contributor 11", "type": "string" }, | ||
"source11": { "label": "Source 11", "type": "string" }, | |||
"amount11": { "label": "Amount 11", "type": "string" }, | |||
"contributor12": { "label": "Contributor 12", "type": "string" }, | |||
"source12": { "label": "Source 12", "type": "string" }, | |||
"amount12": { "label": "Amount 12", "type": "string" }, | |||
"contributor3": { | "contributor13": { "label": "Contributor 13", "type": "string" }, | ||
"source13": { "label": "Source 13", "type": "string" }, | |||
"amount13": { "label": "Amount 13", "type": "string" }, | |||
"contributor14": { "label": "Contributor 14", "type": "string" }, | |||
"source14": { "label": "Source 14", "type": "string" }, | |||
"amount14": { "label": "Amount 14", "type": "string" }, | |||
"source3": { | "contributor15": { "label": "Contributor 15", "type": "string" }, | ||
"source15": { "label": "Source 15", "type": "string" }, | |||
"amount15": { "label": "Amount 15", "type": "string" }, | |||
"amount3": { | |||
"contributor4": { | |||
"source4": { | |||
"amount4": { | |||
"source5": { | |||
"amount5": { | |||
"contributor6": { | |||
"source6": { | |||
"amount6": { | |||
"contributor7": { | |||
"source7": { | |||
"amount7": { | |||
"contributor8": { | |||
"source8": { | |||
"amount8": { | |||
"contributor9": { | |||
"source9": { | |||
"amount9": { | |||
"contributor10": { | |||
"source10": { | |||
"amount10": { | |||
"contributor11": { | |||
"source11": { | |||
"amount11": { | |||
"contributor12": { | |||
"source12": { | |||
"amount12": { | |||
"contributor13": { | |||
"source13": { | |||
"amount13": { | |||
"contributor14": { | |||
"source14": { | |||
"amount14": { | |||
"contributor15": { | |||
"source15": { | |||
"amount15": { | |||
"contributions": { | "contributions": { | ||
"label": "Contributions (legacy)", | "label": "Contributions (legacy)", | ||
| Line 372: | Line 220: | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
"funded", | |||
"subtitle", | "subtitle", | ||
"quote", | "quote", | ||
"lore", | "lore", | ||
"cost", | "cost", | ||
"additional_requirements", | |||
"location", | "location", | ||
"build_code", | "build_code", | ||
"nation", | "nation", | ||
"balance", | "balance", | ||
"contributor1", | "contributor1", "source1", "amount1", | ||
"contributor2", "source2", "amount2", | |||
"contributor3", "source3", "amount3", | |||
"contributor2", | "contributor4", "source4", "amount4", | ||
"contributor5", "source5", "amount5", | |||
"contributor6", "source6", "amount6", | |||
"contributor3", | "contributor7", "source7", "amount7", | ||
"contributor8", "source8", "amount8", | |||
"contributor9", "source9", "amount9", | |||
"contributor4", | "contributor10", "source10", "amount10", | ||
"contributor11", "source11", "amount11", | |||
"contributor12", "source12", "amount12", | |||
"contributor5", | "contributor13", "source13", "amount13", | ||
"contributor14", "source14", "amount14", | |||
"contributor15", "source15", "amount15", | |||
"contributor6", | |||
"contributor7", | |||
"contributor8", | |||
"contributor9", | |||
"contributor10", | |||
"contributor11", | |||
"contributor12", | |||
"contributor13", | |||
"contributor14", | |||
"contributor15", | |||
"contributions" | "contributions" | ||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude><includeonly><div class="build-page"> | </noinclude><includeonly><div class="build-page{{#ifeq:{{{funded|yes}}}|no| pfb-page}}"> | ||
{{#ifeq:{{{funded|yes}}}|no||<div class="build-page-crest">[[File:Bankers Guild Seal.png|150px|center|link=|alt=Bankers Guild Seal]]</div>}} | |||
<div class="build-page-header">{{#if:{{{subtitle|}}}| | <div class="build-page-header">{{#if:{{{subtitle|}}}| | ||
<div class="build-page-subtitle">{{{subtitle}}}</div>}}{{#if:{{{quote|}}}| | <div class="build-page-subtitle">{{{subtitle}}}</div>}}{{#if:{{{quote|}}}| | ||
| Line 443: | Line 264: | ||
{{{!}} class="wikitable build-details-table" | {{{!}} class="wikitable build-details-table" | ||
! Cost of Construction {{!}} {{{cost}}} | ! Cost of Construction {{!}} {{{cost}}} | ||
{{#if:{{{additional_requirements|}}}| | |||
{{!}}- | |||
! Additional Requirements {{!}} {{{additional_requirements}}}}} | |||
{{!}}- | {{!}}- | ||
! Location {{!}} {{{location}}} | ! Location {{!}} {{{location}}} | ||
| Line 452: | Line 276: | ||
{{{!}} class="wikitable build-details-table" | {{{!}} class="wikitable build-details-table" | ||
! Cost of Construction {{!}} {{{cost}}} | ! Cost of Construction {{!}} {{{cost}}} | ||
{{#if:{{{additional_requirements|}}}| | |||
{{!}}- | |||
! Additional Requirements {{!}} {{{additional_requirements}}}}} | |||
{{!}}} | {{!}}} | ||
</div>}}}} | </div>}}}} | ||
| Line 457: | Line 284: | ||
{{#if:{{{contributor1|}}}| | {{#if:{{{contributor1|}}}| | ||
<div class="build-page-contributions"> | <div class="build-page-contributions"> | ||
=== Contributions === | === {{#ifeq:{{{funded|yes}}}|no|Contributions so far|Contributions}} === | ||
{{{!}} class="wikitable" style="width:100%;" | {{{!}} class="wikitable" style="width:100%;" | ||
! Contributor !! Source !! Amount | ! Contributor !! Source !! Amount | ||
| Line 467: | Line 294: | ||
</div>|{{#if:{{{contributions|}}}| | </div>|{{#if:{{{contributions|}}}| | ||
<div class="build-page-contributions"> | <div class="build-page-contributions"> | ||
=== Contributions === | === {{#ifeq:{{{funded|yes}}}|no|Contributions so far|Contributions}} === | ||
{{{!}} class="wikitable" style="width:100%;" | {{{!}} class="wikitable" style="width:100%;" | ||
! Contributor !! Source !! Amount | ! Contributor !! Source !! Amount | ||
| Line 477: | Line 304: | ||
</div>}}}} | </div>}}}} | ||
</div>{{#if:{{{nation|}}}| [[Category:{{{nation}}}]]}}[[Category:Funded Builds]][[Category:Bankers Guild Builds]]</includeonly> | </div>{{#if:{{{nation|}}}| [[Category:{{{nation}}}]]}}{{#ifeq:{{{funded|yes}}}|no|[[Category:Partially Funded Builds]]|[[Category:Funded Builds]]}}[[Category:Bankers Guild Builds]]</includeonly> | ||
Latest revision as of 19:41, 16 April 2026
Usage
A styled page template for Bankers Guild Build pages — both Funded and Partially Funded. Wraps the build's lore, details, and contribution history in a consistent, attractive layout.
Set funded=no for partially funded builds. This changes the contributions heading to "Contributions so far", removes the Bankers Guild crest, and categorises the page as a partially funded build.
Quick Start (Visual Editor)
- Open a page in the Visual Editor
- Click Insert → Template
- Select BuildPage from your Favorites
- Fill in the labelled fields — each contribution row has its own Contributor / Source / Amount fields
- Set funded to "no" for partially funded builds (defaults to "yes")
- Click Insert to add the template
Source Editor Example (Funded)
{{BuildPage
|subtitle=A Hearth of Warmth and Sweet Delights
|quote=Where the oven glows and each bite carries sweetness.
|lore=Your build lore text goes here. Supports bold, italic, links, paragraphs.
|cost=5 Legends · 3 Myths · 9 Sagas
|location=AVEREAUX – EMBERMOUNT
|build_code=BG.MRS.09
|contributor1=Bankers Guild
|source1=Valdraeth
|amount1=1 Legend, 5 Myths, 5 Sagas
|balance=PAID IN FULL
|nation=Avereaux
}}
Source Editor Example (Partially Funded)
{{BuildPage
|funded=no
|subtitle=A Gentle Reawakening, Fur-lined and Fanged
|quote=Death is not the end—it's merely a chance to train your bear.
|lore=Your build lore text goes here.
|cost=60 Legends
|additional_requirements=Fable Weaving (To Obtain Victims Stories) + Oracle Weaving (8 Victims Names Listed)
|location=MORVALIS - Storms Vigil
|build_code=BG.FSM.14A
|contributor1=Ivanov Von Belladonna
|source1=Morvalis
|amount1=5 Sagas
|balance=59 Legends, 19 Myths, 15 Sagas
|nation=Morvalis
}}
Parameters
| Parameter | Required | Description |
|---|---|---|
| funded | No | Set to "no" for partially funded builds. Defaults to "yes". Changes heading, crest visibility, and categories. |
| subtitle | No | A short tagline or thematic subtitle |
| quote | No | A flavour quote displayed in italics |
| lore | Yes | The main body text / lore description |
| cost | No | Cost of construction (use middot · to separate) |
| additional_requirements | No | Any non-currency requirements (e.g. weaving, faith, essences) |
| location | No | Build location (e.g. "AVEREAUX – EMBERMOUNT") |
| build_code | No | Unique build ID code (e.g. "BG.MRS.09") |
| contributor1 – contributor15 | No | Name of each contributor (up to 15 rows) |
| source1 – source15 | No | Source or affiliation for each contributor |
| amount1 – amount15 | No | Contribution amount for each contributor |
| balance | No | Remaining balance status (e.g. "PAID IN FULL" or "59 Legends, 19 Myths") |
| nation | Yes | Nation name, used for categories and back-link |
A styled page template for Bankers Guild Build pages (both Funded and Partially Funded). Creates a consistent layout with subtitle, flavour quote, lore text, build details table, and contributions table.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Funded? | funded | Set to 'no' for partially funded builds. Defaults to 'yes'. Changes contributions heading, hides the crest, and adjusts categories.
| String | suggested |
| Subtitle | subtitle | A short tagline or thematic subtitle displayed in gold below the page title
| String | suggested |
| Flavour Quote | quote | An italicised flavour quote displayed with decorative curly quotes | String | suggested |
| Lore Text | lore | The main body text describing the build. Supports full wikitext formatting (bold, italic, links, paragraphs). This field uses a large resizable text area. | Content | required |
| Cost of Construction | cost | The build cost. Use middot (·) to separate currency types. Do NOT use pipe characters.
| String | suggested |
| Additional Requirements | additional_requirements | Any non-currency requirements such as weaving, faith, essences, etc.
| String | optional |
| Location | location | Where the build is located. Typically in ALL CAPS by convention.
| String | suggested |
| Unique Build Code | build_code | The Bankers Guild build code. Displayed in a monospace badge.
| String | suggested |
| Nation | nation | The nation this build belongs to. Used to auto-categorise the page.
| String | required |
| Remaining Balance | balance | The remaining balance shown in the contributions table footer.
| String | suggested |
| Contributor 1 | contributor1 | Name of contributor 1 | String | suggested |
| Source 1 | source1 | Source or affiliation of contributor 1 | String | suggested |
| Amount 1 | amount1 | Contribution amount from contributor 1 | String | suggested |
| Contributor 2 | contributor2 | Name of contributor 2 | String | suggested |
| Source 2 | source2 | Source or affiliation of contributor 2 | String | suggested |
| Amount 2 | amount2 | Contribution amount from contributor 2 | String | suggested |
| Contributor 3 | contributor3 | Name of contributor 3 | String | suggested |
| Source 3 | source3 | Source or affiliation of contributor 3 | String | suggested |
| Amount 3 | amount3 | Contribution amount from contributor 3 | String | suggested |
| Contributor 4 | contributor4 | no description | String | optional |
| Source 4 | source4 | no description | String | optional |
| Amount 4 | amount4 | no description | String | optional |
| Contributor 5 | contributor5 | no description | String | optional |
| Source 5 | source5 | no description | String | optional |
| Amount 5 | amount5 | no description | String | optional |
| Contributor 6 | contributor6 | no description | String | optional |
| Source 6 | source6 | no description | String | optional |
| Amount 6 | amount6 | no description | String | optional |
| Contributor 7 | contributor7 | no description | String | optional |
| Source 7 | source7 | no description | String | optional |
| Amount 7 | amount7 | no description | String | optional |
| Contributor 8 | contributor8 | no description | String | optional |
| Source 8 | source8 | no description | String | optional |
| Amount 8 | amount8 | no description | String | optional |
| Contributor 9 | contributor9 | no description | String | optional |
| Source 9 | source9 | no description | String | optional |
| Amount 9 | amount9 | no description | String | optional |
| Contributor 10 | contributor10 | no description | String | optional |
| Source 10 | source10 | no description | String | optional |
| Amount 10 | amount10 | no description | String | optional |
| Contributor 11 | contributor11 | no description | String | optional |
| Source 11 | source11 | no description | String | optional |
| Amount 11 | amount11 | no description | String | optional |
| Contributor 12 | contributor12 | no description | String | optional |
| Source 12 | source12 | no description | String | optional |
| Amount 12 | amount12 | no description | String | optional |
| Contributor 13 | contributor13 | no description | String | optional |
| Source 13 | source13 | no description | String | optional |
| Amount 13 | amount13 | no description | String | optional |
| Contributor 14 | contributor14 | no description | String | optional |
| Source 14 | source14 | no description | String | optional |
| Amount 14 | amount14 | no description | String | optional |
| Contributor 15 | contributor15 | no description | String | optional |
| Source 15 | source15 | no description | String | optional |
| Amount 15 | amount15 | no description | String | optional |
| Contributions (legacy) | contributions | Legacy format: raw wiki table rows. For new pages, use the numbered Contributor/Source/Amount fields instead. | Content | deprecated |