Template:Web citation: Difference between revisions
From WMDRock Library
m 1 revision |
Add WMD Says to metadesc |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
|===[[{{{title}}} - {{{date}}} {{ #if: {{{author|}}}|by {{{author}}}}}|{{{title}}}]] - {{{date}}}''' {{ #if: {{{author|}}}|by [[Authors::{{{author}}}]]}} {{ #if: {{{other authors|}}}|, {{#arraymap:{{{other authors}}}|,|x|[[Authors::x]]}} }}- [[web source::{{{source}}}]]===}} | |===[[{{{title}}} - {{{date}}} {{ #if: {{{author|}}}|by {{{author}}}}}|{{{title}}}]] - {{{date}}}''' {{ #if: {{{author|}}}|by [[Authors::{{{author}}}]]}} {{ #if: {{{other authors|}}}|, {{#arraymap:{{{other authors}}}|,|x|[[Authors::x]]}} }}- [[web source::{{{source}}}]]===}} | ||
</div> | </div> | ||
{{ #if: {{{archive link|}}}| | |||
Archive.org Link: [{{{archive link}}} saved] | |||
{{#set: | |||
archive link={{{archive link}}} | |||
}} | |||
}} | |||
[[auto category::8| ]] | [[auto category::8| ]] | ||
<div class="wmd-cite"><span class="wmd-cite-sechead">Web:</span>[{{{web link}}} {{{title}}} - {{{date}}} - {{{web link}}}]</div> | <div class="wmd-cite"><span class="wmd-cite-sechead">Web:</span>[{{{web link}}} {{{title}}} - {{{date}}} - {{{web link}}}]</div> | ||
| Line 14: | 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> | |||
[[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}}}|]][[date::{{{date}}}|]] | |||
}}[[Primary Authors::{{{author}}}|]]<noinclude>==Usage== | }}[[Primary Authors::{{{author}}}|]] | ||
{{Clear float}} | |||
{{#set: | |||
web link={{{web link}}} | |||
}} | |||
<noinclude> | |||
==Usage== | |||
Include the following text to use the template: | Include the following text to use the template: | ||
<pre> | <pre> | ||
| Line 40: | Line 56: | ||
|alt pagename= | |alt pagename= | ||
}} | }} | ||
</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.
