Jump to content

Template:Article: Difference between revisions

From Philosophical Research
add missing parameter 1 / Parameters
m simplify logic
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}}
<includeonly><onlyinclude>{{TTS|tts={{{tts|}}}|{{{1}}}|E={{{E|}}}|R={{{R|}}}|href={{{href|}}}|html=cite|class=article}} {{#if: {{{YT|}}} | {{YouTube|{{{YT|}}}}} }}</onlyinclude></includeonly><!--
| {{{tts|}}}{{{E|}}}{{{R|}}}{{{href|}}} = <cite class="article">{{{1}}}</cite>
| #default = {{TTS|tts={{{tts|}}}|{{{1}}}|E={{{E|}}}|href={{{href|}}}|html=cite|class=article}}
}} {{#if: {{{YT|}}} | {{YouTube|{{{YT|}}}}} }}</onlyinclude></includeonly><!--
-->
-->
== Demo ==
== Demo ==
Line 12: Line 9:
== Description ==
== Description ==


This is a template for referring to article- or chapter-like sources in HTML5, using the <code>cite</code> tag and optionally the work's Ontology page. It may seem a little unnecessary at first, but the real power of it would be the potential ability to swap out the quotation marks depending on the language specified to the template. Apart from that, this template exists to be consistent with [[Template:Book]] and to be used beside it in Reference sections.
This is a template for referring to article- or chapter-like sources in HTML5, using the <code>cite</code> tag and optionally the work's Ontology page. It may seem a little unnecessary at first, but the real power of it would be the potential ability to swap out the quotation marks depending on the language specified to the template. Apart from that, this template exists to be consistent with [[Template:book]] and to be used beside it in Reference sections.


== Template parameters ==
== Template parameters ==


* <code>tts</code>  - tts pronunciation of article title, if needed.
* <code>tts</code>  - TTS pronunciation of article title, if needed.
* <code>1</code>    - Title of article.
* <code>1</code>    - Title of article.
* <code>href</code> - article link, external.
* <code>href</code> - article link, external.
* <code>R</code>    - article link, Philosophical Research: namespace.
* <code>R</code>    - article link, Philosophical Research: namespace.
* <code>E</code>    - page explaining article, Ontology: namespace.
* <code>E</code>    - page explaining article, Ontology: namespace.
* <code>YT</code>  - This is almost exclusively for rating sheets. You will not need it anywhere else, but on a rating sheet page a bunch of videos adds up quickly.
* <code>YT</code>  - This is almost exclusively for rating sheets. You will not likely need it anywhere else, but on a rating sheet page a bunch of videos adds up quickly.
* <code>ParameterWhichShouldAlwaysBeEmpty</code> - Used for logic switches; do not put anything in here.
<!-- "ParameterWhichShouldAlwaysBeEmpty" has been removed -->




[[Category:Templates for markup]]
[[Category:Templates for markup]]

Latest revision as of 21:29, 26 September 2025

Demo[edit]

Ruler of Everything

If Money is Infinite, Why Do We Still Have Poverty? [1]

Description[edit]

This is a template for referring to article- or chapter-like sources in HTML5, using the cite tag and optionally the work's Ontology page. It may seem a little unnecessary at first, but the real power of it would be the potential ability to swap out the quotation marks depending on the language specified to the template. Apart from that, this template exists to be consistent with Template:book and to be used beside it in Reference sections.

Template parameters[edit]

  • tts - TTS pronunciation of article title, if needed.
  • 1 - Title of article.
  • href - article link, external.
  • R - article link, Philosophical Research: namespace.
  • E - page explaining article, Ontology: namespace.
  • YT - This is almost exclusively for rating sheets. You will not likely need it anywhere else, but on a rating sheet page a bunch of videos adds up quickly.