Template:Portal: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:
<noinclude>{{#cargo_declare:
_table=portal
_table=portal
|field_section_94340_7=String
|header=String
|field_section_94340_9=String
|excerpt=String
|field_section_18753_11=List (;) of String
|tiles=List (;) of String
}}
}}
<pre>
<pre>
<nowiki>
<nowiki>
{{portal
{{portal
|featured-image=image.jpg
|featured-image=Fox on shelf.jpg
|field_section_94340_7=Welcome to the portal
|header=Welcome to the portal
|field_section_94340_8=Welcome text
|excerpt=Welcome text
|text-ontop=no
|text-ontop=no
|field_section_18753_11={{Animated tile
|tiles={{Animated tile
|title=All pages
|title=All pages
|link=special:AllPages
|link=special:AllPages
Line 27: Line 27:
}}
}}
</nowiki>
</nowiki>
</pre>


==Result==
==Result==
{{portal
{{portal
|featured-image=image.jpg
|featured-image=Fox on shelf.jpg
|field_section_94340_7=Welcome to the portal
|header=Welcome to the portal
|field_section_94340_8=Welcome text
|excerpt=Welcome text
|text-ontop=no
|text-ontop=no
|field_section_18753_11={{Animated tile
|tiles={{Animated tile
|title=All pages
|title=All pages
|link=special:AllPages
|link=special:AllPages
Line 48: Line 49:
}}
}}
}}
}}
</noinclude><includeonly><div class="portal-container">{{#if:{{{featured-image|}}}|{{#if: {{{image in content|}}}|[[file:{{{featured-image|}}}|center|frameless|1057x1057px|link=|class=fetured-image]]|{{#spniBeforeTitle:[[file:{{{featured-image|}}}|center|frameless|600x1960px|link=|class=fetured-image]]}} }}|}}{{#if:{{{header|}}}{{{excerpt|}}}|<div class="portal-excerpt mb-5"><div class="mt-0 text-center text-primary-ejppd h1">
</pre>
{{{header|}}}
</noinclude><includeonly><div class="portal-container">{{#if:{{{featured-image|}}}|{{#if: {{{image in content|}}}|[[קובץ:{{{featured-image|}}}|center|frameless|1057x1057px|link=|class=fetured-image]]|{{#htmlbeforetitle:[[קובץ:{{{featured-image|}}}|center||frameless|600x1960px|link=|class=fetured-image]]}} }}|}}{{#if:{{{field_section_94340_7|}}}{{{field_section_94340_8|}}}|<div class="portal-excerpt mb-5"><div class="mt-0 text-center text-primary-ejppd h1">
</div>{{synopsis|1={{{header|}}}|category=שער}}
{{{field_section_94340_7|}}}
{{#if: {{{excerpt|}}}|<div class="{{{jumb-columns|jumbotron}}}">
</div>{{synopsis|1={{{field_section_94340_7|}}}|category=שער}}
{{{excerpt}}}
{{#if: {{{field_section_94340_8|}}}|<div class="{{{jumb-columns|jumbotron}}}">
</div>|}}{{#if:{{{link|}}}|[[{{{link}}}|לקריאה נוספת]]|}}
{{{field_section_94340_8}}}
</div>|}}{{#if:{{{field_section_94340_9|}}}|[[{{{field_section_94340_9}}}|לקריאה נוספת]]|}}
</div>|}}<div class="row {{#ifeq: {{{text-ontop|}}}|כן|text-ontop|}}">
</div>|}}<div class="row {{#ifeq: {{{text-ontop|}}}|כן|text-ontop|}}">
{{{ field_section_18753_11 |}}}
{{{tiles|}}}
</div></div>
</div></div>
{{#cargo_store:
{{#cargo_store:
_table=portal
_table=portal
|header={{{header|}}}
|field_section_94340_7={{{field_section_94340_7|}}}
|excerpt={{{excerpt|}}}
|field_section_94340_9={{{field_section_94340_9|}}}
|tiles={{{tiles|}}}
|field_section_18753_11={{{field_section_18753_11|}}}
}}
}}
</includeonly>
</includeonly>

Latest revision as of 22:53, 28 February 2022

This template defines the table "portal". This table has not been created yet.


{{portal
|featured-image=Fox on shelf.jpg
|header=Welcome to the portal
|excerpt=Welcome text
|text-ontop=no
|tiles={{Animated tile
|title=All pages
|link=special:AllPages
|icon=copy
}}{{Animated tile
|title=Recent Changes
|link=Special:RecentChanges
|icon=history
}}{{Animated tile
|title=Help Center
|link=openfoxhelp:Getting Started
|icon=life-ring
}}
}}

Result

{{#spniBeforeTitle:
}}

Welcome to the portal

Welcome text