imported>Wottem No edit summary |
No edit summary |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> | <div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> | ||
{{{for template|portal}}} | {{{for template|portal}}} | ||
<div class="card my-5"><div class="px-10"> | <div class="card my-5 field field-file"><div class="px-10"> | ||
== Header == | == Header == | ||
'''Page title''': {{{field|page title}}} | '''Page title''': {{{field|page title}}} | ||
'''Title icon (image name)''': {{{field|title-icon}}} | '''Title icon (image name)''': | ||
<div class="den-inner-component"> | |||
{{{field|title-icon|label=upload image|input type=tokens|class=img-src|values from namespace=File|image preview|uploadable}}} | |||
</div> | |||
Hide title: {{{field|no-title|input type=checkbox}}} | |||
Rich text in content: {{{field|prose|input type=checkbox}}} | |||
</div></div> | </div></div> | ||
<div class="card my-5"><div class="px-10"> | <div class="card my-5 field field-file"><div class="px-10"> | ||
== Banner == | == Banner == | ||
'''Banner lead text''': {{{field|banner-heading}}} | '''Banner lead text''': {{{field|banner-heading}}} | ||
{{{field|banner-text|input type=textarea|editor=visualeditor|class=toolbarOnTop}}} | {{{field|banner-text|input type=textarea|editor=visualeditor|class=toolbarOnTop}}} | ||
<div class="den-inner-component"> | |||
'''Banner image (image name)''': {{{field|banner-image}}} | '''Banner image (image name)''': | ||
</div></div> | {{{field|banner-image|label=upload image|input type=tokens|class=img-src|values from namespace=File|image preview|uploadable}}} | ||
</div></div></div> | |||
<div id="cards"> | |||
== Card rows == | == Card rows == | ||
<div class="card my-5"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 1|default=Section 1 title}}}</div> | <div class="card my-5 field field-file"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 1|default=Section 1 title}}}</div> | ||
{{{field|cards 1|holds template}}} | {{{field|cards 1|holds template}}} | ||
{{{field|template 1|input type=combobox|values from category=card row template|placeholder=choose template instead|size=60}}} | |||
</div></div> | </div></div> | ||
<div class="card my-5"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 2|default=Section 2 title}}}</div> | <div class="card my-5 field field-file"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 2|default=Section 2 title}}}</div> | ||
{{{field|cards 2|holds template}}} | {{{field|cards 2|holds template}}} | ||
{{{field|template 2|input type=combobox|values from category=card row template|placeholder=choose template instead|size=60}}} | |||
</div></div> | </div></div> | ||
<div class="card my-5"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 3|default=Section 3 title}}}</div> | <div class="card my-5 field field-file"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 3|default=Section 3 title}}}</div> | ||
{{{field|cards 3|holds template}}} | {{{field|cards 3|holds template}}} | ||
{{{field|template 3|input type=combobox|values from category=card row template|placeholder=choose template instead|size=60}}} | |||
</div></div> | </div></div> | ||
<div class="card my-5"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 4|default=Section 4 title}}}</div> | <div class="card my-5 field field-file"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 4|default=Section 4 title}}}</div> | ||
{{{field|cards 4|holds template}}} | {{{field|cards 4|holds template}}} | ||
{{{field|template 4|input type=combobox|values from category=card row template|placeholder=choose template instead|size=60}}} | |||
</div></div> | </div></div> | ||
<div class="card my-5"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 5|default=Section 5 title}}}</div> | <div class="card my-5 field field-file"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 5|default=Section 5 title}}}</div> | ||
{{{field|cards 5|holds template}}} | {{{field|cards 5|holds template}}} | ||
{{{field|template 5|input type=combobox|values from category=card row template|placeholder=choose template instead|size=60}}} | |||
</div></div> | </div></div> | ||
<div class="card my-5"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 6|default=Section 6 title}}}</div> | <div class="card my-5 field field-file"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 6|default=Section 6 title}}}</div> | ||
{{{field|cards 6|holds template}}} | {{{field|cards 6|holds template}}} | ||
{{{field|template 6|input type=combobox|values from category=card row template|placeholder=choose template instead|size=60}}} | |||
</div></div> | </div></div> | ||
<div class="card my-5"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 7|default=Section 7 title}}}</div> | <div class="card my-5 field field-file"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 7|default=Section 7 title}}}</div> | ||
{{{field|cards 7|holds template}}} | {{{field|cards 7|holds template}}} | ||
{{{field|template 7|input type=combobox|values from category=card row template|placeholder=choose template instead|size=60}}} | |||
</div></div> | </div></div> | ||
<div class="card my-5 field field-file"><div class="px-10"><div class="mb-8 mt-8 uppercase font-medium text-gray-900">{{{field|section 8|default=Section 8 title}}}</div> | |||
{{{field|cards 8|holds template}}} | |||
{{{field|template 8|input type=combobox|values from category=card row template|placeholder=choose template instead|size=60}}} | |||
</div></div> | |||
</div> | |||
{{{field|type|input type=dropdown|values=cards,dynamic|show on select=dynamic=>dynamic;cards=>cards|default=cards|size=30}}} | |||
<div id="dynamic"> | |||
=== Dynamic card grid === | |||
You can choose to show a cards list from another portal | |||
* page (optional): {{{field|page query|input type=combobox|values from category=Portal}}} | |||
* row: {{{field|row title query|input type=combobox|cargo table=carousel_title|cargo field=title}}} | |||
</div> | |||
=== Categories === | === Categories === | ||
{{{field|categories|input type=tokens|values from namespace=category}}} | {{{field|categories|input type=tokens|values from namespace=category|delimiter=;}}} | ||
{{{end template}}} | {{{end template}}} | ||
{{{for template|card 1|multiple|add button text=Add card|embed in field=portal[cards 1]|display=table}}} | {{{for template|card 1|multiple|add button text=Add card|embed in field=portal[cards 1]|display=table}}} | ||
Line 108: | Line 131: | ||
{{{end template}}} | {{{end template}}} | ||
{{{for template|card 7|multiple|add button text=Add card|embed in field=portal[cards 7]|display=table}}} | {{{for template|card 7|multiple|add button text=Add card|embed in field=portal[cards 7]|display=table}}} | ||
{{{field|title|input type=combobox|label=card title (can be the target page name)|values from namespace=Main}}} | |||
{{{field|subtitle|label=Card content}}} | |||
{{{field|color|input type=dropdown|label=Color (in HEX - optional)|values=#0099FF,#AC64FF,#1BAB50}}} | |||
{{{field|type|label=Card tag}}} | |||
{{{field|image|input type=combobox|values from namespace=File|uploadable|label=Image (optional)}}} | |||
{{{field|link|label=Page for link (if title is not page name)}}} | |||
{{{end template}}} | |||
{{{for template|card 8|multiple|add button text=Add card|embed in field=portal[cards 8]|display=table}}} | |||
{{{field|title|input type=combobox|label=card title (can be the target page name)|values from namespace=Main}}} | {{{field|title|input type=combobox|label=card title (can be the target page name)|values from namespace=Main}}} | ||
{{{field|subtitle|label=Card content}}} | {{{field|subtitle|label=Card content}}} |
Latest revision as of 12:17, 27 June 2024
This form is being used to create portal pages for use as Main pages in Wazeopedia communities.