Template:Web citation: Difference between revisions

From WMDRock Library
No edit summary
Add WMD Says to metadesc
 
(One intermediate revision by the same user not shown)
Line 21: Line 21:
<div style="float: none; padding-top: 2em;">
<div style="float: none; padding-top: 2em;">
{{ #ifeq:{{PAGENAMEE}}|{{#replace:{{urlencode:{{{title}}} - {{{date}}} {{ #if: {{{author|}}}|by {{{author}}}}}}}|+|_}}
{{ #ifeq:{{PAGENAMEE}}|{{#replace:{{urlencode:{{{title}}} - {{{date}}} {{ #if: {{{author|}}}|by {{{author}}}}}}}|+|_}}
|<includeonly>[[auto category::2| ]] {{Web citation cat}}{{#tag:metadesc |WMD's extract from the {{{title}}} {{ #if: {{{author|}}}| by {{{author}}}}} }}</includeonly>
|<includeonly>[[auto category::2| ]] {{Web citation cat}}{{#tag:metadesc |WMD's extract from the {{{title}}} {{ #if: {{{author|}}}| by {{{author}}}}}{{#if: {{{wmdsays|}}}| — {{{wmdsays}}}}} }}</includeonly>
|  {{ #ifeq::{{PAGENAME}}|{{{alt pagename}}}
|  {{ #ifeq::{{PAGENAME}}|{{{alt pagename}}}
   |<includeonly>[[auto category::2| ]] {{Web citation cat}}{{#tag:metadesc |WMD's extract from the {{{title}}} {{ #if: {{{author|}}}| by {{{author}}}}} }}</includeonly>
   |<includeonly>[[auto category::2| ]] {{Web citation cat}}{{#tag:metadesc |WMD's extract from the {{{title}}} {{ #if: {{{author|}}}| by {{{author}}}}}{{#if: {{{wmdsays|}}}| — {{{wmdsays}}}}} }}</includeonly>
   |{{ #ifeq:{{PAGENAME}}|{{{title}}} - {{{date}}} {{ #if: {{{author|}}}|by {{{author}}}}}
   |{{ #ifeq:{{PAGENAME}}|{{{title}}} - {{{date}}} {{ #if: {{{author|}}}|by {{{author}}}}}
{{ #if: {{{unique|}}}|{{{unique}}}}}| <includeonly>
    {{ #if: {{{unique|}}}|{{{unique}}}}}| <includeonly>
[[auto category::4| ]] {{Web citation cat}}{{#tag:metadesc |WMD's extract from the {{{title}}} {{ #if: {{{author|}}}| by {{{author}}}}} }}</includeonly> }}   
    [[auto category::4| ]] {{Web citation cat}}{{#tag:metadesc |WMD's extract from the {{{title}}} {{ #if: {{{author|}}}| by {{{author}}}}}{{#if: {{{wmdsays|}}}| — {{{wmdsays}}}}} }}</includeonly> }}   
   }}
   }}
}}</div>{{ #if: {{{hastags|}}} | {{#arraymap:{{{hastags}}}|,|x|[[Subject Tags::x]]}} }}
}}</div>{{ #if: {{{hastags|}}} | {{#arraymap:{{{hastags}}}|,|x|[[Subject Tags::x]]}} }}
{{ #ifeq: {{{date}}}|Undated
{{ #ifeq: {{{date}}}|Undated
| [[web date::{{{date}}}|]]
    | [[web date::{{{date}}}|]]
| [[web date::{{{date}}}|]][[date::{{{date}}}|]]
    | [[web date::{{{date}}}|]][[date::{{{date}}}|]]
}}[[Primary Authors::{{{author}}}|]]
}}[[Primary Authors::{{{author}}}|]]
{{Clear float}}  
{{Clear float}}  
{{GoogleAd-wide}}


{{#set:
{{#set:
Line 41: Line 40:




<noinclude>==Usage==
<noinclude>
==Usage==
Include the following text to use the template:
Include the following text to use the template:
<pre>
<pre>
Line 56: Line 56:
|alt pagename=
|alt pagename=
}}
}}
<no include>{{Web citation cat}}</no include>
</pre>
</pre>


The Category: Web Citation will only appear if the page calling the template has the correct page name as defined by the SMW property Web Title
The Category: Web Citation will only appear if the page calling the template has the correct page name as defined by the SMW property Web Title.


[[Category:Song Templates]]
[[Category:Song Templates]]
</noinclude>
</noinclude>

Latest revision as of 06:17, 14 June 2026

[[{{{title}}} - {{{date}}} |{{{title}}}]] - {{{date}}} - {{{source}}}


Web:[{{{web link}}} {{{title}}} - {{{date}}} - {{{web link}}}]


Internal Link: {{{title}}} - {{{date}}}




Usage

Include the following text to use the template:

{{Web citation
|web link=
|title=
|author=
|other authors=
|date=Month dd, YYYY
|source=
|wmdsays=
|extract=
|unique=
|alt pagename=
}}

The Category: Web Citation will only appear if the page calling the template has the correct page name as defined by the SMW property Web Title.