Jump to content

Template:Article: Difference between revisions

From Philosophical Research
m simplify for R parameter
add missing parameter 1 / Parameters
Line 1: Line 1:
<includeonly><onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}}
<includeonly><onlyinclude>{{#switch:{{{ParameterWhichShouldAlwaysBeEmpty|}}}
| {{{tts|}}}{{{E|}}}{{{R|}}}{{{href|}}} = <cite class="article">{{{1}}}</cite>
| {{{tts|}}}{{{E|}}}{{{R|}}}{{{href|}}} = <cite class="article">{{{1}}}</cite>
| #default = {{TTS|tts={{{tts}}}|E={{{E|}}}|href={{{href|}}}|html=cite|class=article}}
| #default = {{TTS|tts={{{tts|}}}|{{{1}}}|E={{{E|}}}|href={{{href|}}}|html=cite|class=article}}
}} {{#if: {{{YT|}}} | {{YouTube|{{{YT|}}}}} }}</onlyinclude></includeonly><!--
}} {{#if: {{{YT|}}} | {{YouTube|{{{YT|}}}}} }}</onlyinclude></includeonly><!--
-->
-->
Line 13: Line 13:


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 ==
* <code>tts</code>  - tts pronunciation of article title, if needed.
* <code>1</code>    - Title of article.
* <code>href</code> - article link, external.
* <code>R</code>    - article link, Philosophical Research: 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>ParameterWhichShouldAlwaysBeEmpty</code> - Used for logic switches; do not put anything in here.




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

Revision as of 09:42, 13 September 2025

Demo

Ruler of Everything

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

Description

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

  • 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 need it anywhere else, but on a rating sheet page a bunch of videos adds up quickly.
  • ParameterWhichShouldAlwaysBeEmpty - Used for logic switches; do not put anything in here.