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= | ||
|Site Logo= | |Site Logo= | ||
|Screenshot= | |Screenshot= | ||
|ShowMap= | |||
|Coordinates= | |||
|Text Body= | |||
|Poster= | |Poster= | ||
| | |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= | {{#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|}}}| | <templatestyles src="Web_Link/styles.css" /> | ||
<div class=" | <div class="irlbody irllink"> | ||
<div class=" | {{#ifeq:{{NAMESPACE}} | Link | {{IRL header|cat={{{Type|}}}|toc=no}} }} | ||
<div class="irllinkbox"> | |||
<div class="irllinktop"> | <div class="irllinktop"> | ||
<div class=" | {{#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=" | <div class="irllinkbottom"><div class="irllinktopicdiv"> | ||
<div class="irllinktopicbutton">[[:Category:{{{Type|}}}|{{{Type|}}}]]</div> | |||
<div class=" | <div class="irllinktopicbutton">[[:Category:{{{Topic|}}}|{{{Topic|}}}]]</div> | ||
<div class=" | {{#arraymap:{{{Subtopic|}}}|,|x| <div class="irllinktopicbutton">[[:Category:x|x]]</div> |\s}} | ||
{{ | </div> | ||
</div | <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=" | </div></div> | ||
</div | {{#ifeq:{{NAMESPACE}} | Link | {{IRL footer|cat={{{Type|}}} }} }} | ||
</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| | {{#seo: | ||
|title={{{Title|}}} - Indian River Lagoon Project | |||
{{#if:{{{ | |title_mode=replace | ||
{{# | |keywords={{#if: {{{Keywords|}}} | {{{Keywords|}}} |Indian River Lagoon Website Link Directory Guide }} | ||
|description={{{Description|}}} | |||
|robots=index,follow | |||
|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.