Template:Portal: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{#cargo_declare:
<noinclude>{{#cargo_declare:
_table=sh_r
_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
}}
}}</noinclude><includeonly><div class="portal-container">{{#if:{{{featured-image|}}}|[[קובץ:{{{featured-image|}}}|טקסט=|מרכז|לא ממוסגר|1057x1057 פיקסלים|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">
<pre>
{{{field_section_94340_7|}}}
<nowiki>
</div>{{synopsis|1={{{field_section_94340_7|}}}|category=שער}}
{{portal
{{#if: {{{field_section_94340_8|}}}|<div class="{{{jumb-columns|jumbotron}}}">
|featured-image=Fox on shelf.jpg
{{{field_section_94340_8}}}
|header=Welcome to the portal
</div>|}}{{#if:{{{field_section_94340_9|}}}|[[{{{field_section_94340_9}}}|לקריאה נוספת]]|}}
|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
}}
}}
</nowiki>
</pre>

==Result==
{{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
}}
}}
</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">
{{{header|}}}
</div>{{synopsis|1={{{header|}}}|category=שער}}
{{#if: {{{excerpt|}}}|<div class="{{{jumb-columns|jumbotron}}}">
{{{excerpt}}}
</div>|}}{{#if:{{{link|}}}|[[{{{link}}}|לקריאה נוספת]]|}}
</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=sh_r
_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>
<span style="display:none">{{#default_form:שער}}</span>
<span style="display:none">{{#default_form:Portal}}</span>

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