Difference between revisions of "Template:Infobox company"
m (Replaced {{PAGENAME}} / {{PAGENAMEE}} calls with custom variable that replaces spaces with underscores. Might need to extend this to formerNames later?) |
m (escape double quotes (", html entity: ") in the query using a backslash (\)) |
||
Line 1: | Line 1: | ||
<table class="vertical-navbox template-infobox" id="infobox-company"> | <table class="vertical-navbox template-infobox" id="infobox-company"> | ||
− | <caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}<includeonly>[[Category:Companies]]</includeonly></caption> | + | <caption class="template-infobox-title">{{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}}<includeonly>[[Category:Companies]]</includeonly></caption><!-- |
− | {{#vardefine:pageName|{{#arraymap:{{PAGENAME}}|\s|€€€€€|€€€€€|_}}}} | + | -->{{#vardefine:pageName|{{#arraymap:{{PAGENAME}}|\s|€€€€€|€€€€€|_}}}}<!-- convert spaces ( ) to underscore (_) |
+ | -->{{#vardefine:pageName|{{#arraymap:{{#var:pageName}}|"|€€€€€|€€€€€|\"}}}}<!-- escape double quotes (", html entity: ") in the query using a backslash (\) | ||
+ | --> | ||
{{#if: {{{cover|}}} | | {{#if: {{{cover|}}} | | ||
<tr> | <tr> |
Revision as of 00:54, 29 November 2021
This template defines the table "Company". View table.
Description
Used on pages below the "Company" namespace.
Also automatically populates lists of games the company is involved in, unless disabled using listgames=false
. If the lists are disabled in this template call, add {{Infobox company/query}} call somewhere further down the page to have the lists appear there instead.
Syntax
{{Infobox company |title = |cover = |website = |parent = |formernames = |founded = |defunct = |wikipedia = |listgames = true }}