Template:Web Link: Difference between revisions

From Indian River Lagoon Project
m (Protected "Template:Web Link" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
mNo edit summary
 
(108 intermediate revisions by the same user not shown)
Line 6: Line 6:
|Name=
|Name=
|Link Url=
|Link Url=
|Description=
|Region=
|Type=
|Topic=
|Topic=
|Subtopic=
|Subtopic=
|Description=
|Coordinates
|Rate=
|Site Logo=
|Site Logo=
|Screenshot=
|Screenshot=
|ShowMap=
|Coordinates=
|Text Body=
|Poster=
|Poster=
|Postdate=
|Posted=
|Extra=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=weblink|Name=String|Link_Url=URL|Topic=List (,) of Text|Subtopic=List (,) of Text|Description=Text|Coordinates=Coordinates|Rate=Rating|Site_Logo=File|Screenshot=File|Poster=String|Postdate=Integer}}
{{#cargo_declare:_table=weblink|Name=String|Link_Url=URL|Description=Text|Region=String|Type=String|Topic=String|Subtopic=List (,) of Text|Site_Logo=File|Screenshot=File|Coordinates=Coordinates|Text_Body=Text|Poster=String|Posted=String}}</noinclude><includeonly>{{#cargo_store:_table=weblink|Name={{{Name|}}}|Link_Url={{{Link Url|}}}|Description={{{Description|}}}|Region={{{Region|}}}|Type={{{Type|}}}|Topic={{{Topic|}}}|Subtopic={{{Subtopic|}}}|Site_Logo={{{Site Logo|}}}|Screenshot={{{Screenshot|}}}|Coordinates={{{Coordinates|}}}|Text_Body={{{Text_Body|}}}|Poster={{{Poster|}}}|Posted={{{Posted|}}} }}
</noinclude><includeonly>{{#cargo_store:_table=weblink|Name={{{Name|}}}|Link_Url={{{Link Url|}}}|Topic={{{Topic|}}}|Subtopic={{{Subtopic|}}}|Description={{{Description|}}}|Coordinates={{{Coordinates|}}}|Rate={{{Rate|}}}|Site_Logo={{{Site Logo|}}}|Screenshot={{{Screenshot|}}}|Poster={{{Poster|}}}|Postdate={{{Postdate|}}} }}
<templatestyles src="Web_Link/styles.css" />
<div class="irlheaderlink">{{IRL header weblink}}</div>
<div class="irlbody irllink">
<div class="irllinkdiv">
{{#ifeq:{{NAMESPACE}} | Link | {{IRL header|cat={{{Type|}}}|toc=no}} }}
<div class="irllinkbox">
<div class="irllinktop">
<div class="irllinktop">
<div class="irldlinkname">{{{Name|}}}{{#ifexist: {{SUBPAGENAME}} | <span class="irllinkarticle">[[File:bullet_page.png|16px|top|alt=Article|link={{SUBPAGENAME}}]]</span> | }}
{{#if:{{{Screenshot|}}} |<div class="irllinkscreenshot">[[File:{{{Screenshot|}}}|640px|thumb|left|border|alt=IRL Web Link Image|<b>[[:Category:Directory|IRL Resource Directory]]</b>|link=]]</div>}}
<div class="irllinkname">{{{Name|}}}{{#ifexist: {{SUBPAGENAME}} | <span class="irllinkarticle">[[File:bullet_page.png|16px|top|alt=Article|link={{SUBPAGENAME}}]]</span> }}{{#if: {{#pos:{{{Subtopic|}}}|Facebook}} |<span class="irllinksocial">[[File:Icon-facebook.png|30px|alt=Facebook|link={{{Link Url|}}}]]</span> }}{{ #if: {{#pos:{{{Subtopic|}}}|Twitter}}|<span class="irllinksocial">[[File:Icon-twitter.png|30px|alt=Twitter|link={{{Link Url|}}}]]</span> }}{{ #if: {{#pos:{{{Subtopic|}}}|You Tube}}|<span class="irllinksocial">[[File:Icon-you-tube.png|30px|alt=You Tube|link={{{Link Url|}}}]]</span> }}{{ #if: {{#pos:{{{Subtopic|}}}|Flickr}}|<span class="irllinksocial">[[File:Icon-flickr.png|30px|alt=Flickr|link={{{Link Url|}}}]]</span> }}</div>
<div class="irllinkurl"><b>Link:</b> {{{Link Url|}}}</div>
</div>
<div class="irllinkmiddle">
<div class="irllinkdesc">{{#if:{{{Site Logo|}}} |<div class="irllinkimage">[[File:{{{Site Logo|}}}|128px|frameless|{{{Type|}}}: {{{Name|}}}|link={{{Link Url|}}}]]</div>|<!-- <div class="irllinkimage">[[File:IRLN_Link_logo.png|96x96px|frameless|{{{Type|}}}: {{{Name|}}}|link={{{_pageName|}}}]]</div> --> }}{{{Description|}}}</div>
{{#if:{{{Text_Body|}}}|<div class="irllinktextbody">{{{Text_Body|}}}</div>}}
{{#if:{{{Coordinates|}}}|<div class="irllinkmap"><div class="toccolours mw-collapsible" data-expandtext="Show Map" data-collapsetext="Hide Map">Coordinates: ({{{Coordinates|}}})
<div class="mw-collapsible-content">{{#cargo_display_map:point={{{Coordinates|}}}|service=googlemaps|width=inherit|height=380px|zoom=12}}</div></div></div>}}
{{#ifeq:{{{Type|}}}| YouTube Video | <div class="irllinkvideo">{{#evu:{{{Link Url|}}}|inherit|left}}</div> | {{#ifeq:{{{Type|}}}| YouTube Playlist | <div class="irllinkvideo">{{#evu:{{{Link Url|}}}|inherit|left}}</div>}} }}{{#if:{{{Extra|}}}|<div class="irllinkextra">{{{Extra|}}}</div>|}}
</div>
</div>
<div class="irllinkurl">{{{Link Url|}}}</div>
<div class="irllinkbottom"><div class="irllinktopicdiv">
</div><!-- END linkTop -->
<div class="irllinktopicbutton">[[:Category:{{{Type|}}}|{{{Type|}}}]]</div>
<div class="irllinkmid1">
<div class="irllinktopicbutton">[[:Category:{{{Topic|}}}|{{{Topic|}}}]]</div>
<div class="irllinkdesc">
{{#arraymap:{{{Subtopic|}}}|,|x| <div class="irllinktopicbutton">[[:Category:x|x]]</div> |\s}}
{{#if:{{{Site Logo|}}} |<div class="irllinksitelogo">[[File:{{{Site Logo|}}}|128px|alt={{{Name|}}}|link={{{Link Url|}}}]]</div>|  }}{{{Description|}}}</div><!-- END irllinkdesc -->
</div>
</div><!-- END link mid1 -->
<div class="irllinkpostdiv"><span class="irllinkposter">Posted By: {{{Poster|}}}</span><span class="irllinkposted">Post Date: {{#time: Y-m-d|{{{Posted|}}} }}</span></div>
<div class="irllinkpostdiv"><span class="irllinkposter">Posted By: {{{Poster|}}}</span><span class="irllinkpostdate">Date: {{#time: Y-m-d|{{{Postdate|}}} }}</span>{{#if: {{{Rate|}}} |<span class="irllinkrate">{{#rating:{{{Rate|}}} }}</span>}}
</div></div>
</div><!-- irllinkpostdiv -->
{{#ifeq:{{NAMESPACE}} | Link | {{IRL footer|cat={{{Type|}}} }} }}
<div class="irllinktopicdiv">
</div>
<div class="irllinktopic">{{#arraymap:{{{Topic|}}}|,|x| [[:Category:x|x]][[Category:x]] |\s}}</div>
{{#ifeq:{{NAMESPACE}}| Link | [[Category:Web Link]] [[Category:{{{Type|}}}]] [[Category:{{{Topic|}}}]] {{#if:{{{Region|}}} | [[Category:{{{Region}}} Links]] }}{{#arraymap:{{{Subtopic|}}}|,|x|[[Category:x]] |\s}} {{#default_form:Web Link}}
{{#arraymap:{{{Subtopic|}}}|,|x| <div class="irllinksubtopic">[[:Category:x|x]][[Category:x]]</div> |\s}}
{{#seo:
</div><!-- END irllinktopicdiv -->
|title={{{Title|}}} - Indian River Lagoon Project
{{#if:{{{Screenshot|}}} |<div class="irllinkscreenshot">[[File:{{{Screenshot|}}}|420px|frameless|left|alt={{{Name|}}}|link={{{Link Url|}}} ]]</div>}}
|title_mode=replace
{{#ifeq:{{{Topic|}}}|Location| {{#if:{{{Coordinates|}}}| <div class="irllinkmap">{{#cargo_display_map:point= {{{Coordinates|}}}|service=googlemaps|width=420px|height=310px|zoom=14 }}</div> }} | }}
|keywords={{#if: {{{Keywords|}}} | {{{Keywords|}}} |Indian River Lagoon Website Link Directory Guide }}
</div><!-- END linkdiv -->
|description={{{Description|}}}
<div class="irllinkfooter">{{IRL footer weblink}}</div>
|robots=index,follow
{{#default_form:Web Link}}
|type={{#if: {{{Type|}}} | {{{Type|}}} | website }}
|image={{#if: {{{Screenshot|}}} | {{{Screenshot|}}} | {{#if:{{{Site Logo|}}} | {{{Site Logo|}}} }} }}
|image_alt={{SUBPAGENAME}}
|locale=en_US
|site_name={{SITENAME}}
}}
}}
</includeonly>
</includeonly>

Latest revision as of 08:05, December 29, 2021

This is the "weblink" template. It should be called in the following format:

{{weblink
|Name=
|Link Url=
|Description=
|Region=
|Type=
|Topic=
|Subtopic=
|Site Logo=
|Screenshot=
|ShowMap=
|Coordinates=
|Text Body=
|Poster=
|Posted=
|Extra=
}}

Edit the page to see the template text. This template defines the table "weblink". View table.