Difference between revisions of "Ogmeta"
From InfoTechPedia
TomHutchison (talk | contribs) (Created page with "<includeonly>{{#set: |Meta element og-image=https:{{filepath:{{#sub:{{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}}|5}}}} |Meta el...") |
TomHutchison (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#set: | <includeonly>{{#set: | ||
− | |Meta element og-image= | + | |Meta element og-image={{filepath:{{#sub:{{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}}|5}}}} |
− | |Meta element og-image-type={{#show: {{#show: {{FULLPAGENAME}} |?Attachment_link| | + | |Meta element og-image-type={{#show: {{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}} |?MIME type }} |
− | |Meta element og-image-width={{#show: {{#show: {{FULLPAGENAME}} |?Attachment_link| | + | |Meta element og-image-width={{#show: {{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}}#_EXIFDATA |?Width }} |
− | |Meta element og-image-height={{#show: {{#show: {{FULLPAGENAME}} |?Attachment_link| | + | |Meta element og-image-height={{#show: {{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}}#_EXIFDATA |?Height }} |
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
This template automatically adds the og meta tags, og:image, og:image-type, og:image-height, and og:image-width. | This template automatically adds the og meta tags, og:image, og:image-type, og:image-height, and og:image-width. | ||
<pre> | <pre> | ||
{{#set: | {{#set: | ||
− | |Meta element og-image= | + | |Meta element og-image={{filepath:{{#sub:{{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}}|5}}}} |
− | |Meta element og-image-type={{#show: {{#show: {{FULLPAGENAME}} |?Attachment_link| | + | |Meta element og-image-type={{#show: {{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}} |?MIME type }} |
− | |Meta element og-image-width={{#show: {{#show: {{FULLPAGENAME}} |?Attachment_link| | + | |Meta element og-image-width={{#show:{{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}}#_EXIFDATA|?Width }} |
− | |Meta element og-image-height={{#show: {{#show: {{FULLPAGENAME}} |?Attachment_link| | + | |Meta element og-image-height={{#show:{{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}}#_EXIFDATA|?Height }} |
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> |
Latest revision as of 12:01, 3 November 2020
This template automatically adds the og meta tags, og:image, og:image-type, og:image-height, and og:image-width.
{{#set: |Meta element og-image={{filepath:{{#sub:{{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}}|5}}}} |Meta element og-image-type={{#show: {{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}} |?MIME type }} |Meta element og-image-width={{#show:{{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}}#_EXIFDATA|?Width }} |Meta element og-image-height={{#show:{{#explode:<MANY>{{#show: {{FULLPAGENAME}} |?Attachment_link|format=array}}|<MANY>|1}}#_EXIFDATA|?Height }} }}