The body of the article. This is an example of using Textpattern’s
shortcode function as
container tag, instead of a
single tag. – to insert a complex
<blockquote />. It is inserted in the article as (reminder: insert
new lines at the start for textile to work):
<txp::quote name="site name" cite_url="https://example.com"> text content being quoted. Textile can be used for formatting </txp::quote>
Below is a
The Meiji era (明治, Meiji, Japanese pronunciation: [meꜜː(d)ʑi]) is an era of Japanese history that extended from October 23, 1868 to July 30, 1912. The Meiji era was the first half of the Empire of Japan, when the Japanese people moved from being an isolated feudal society at risk of colonization by Western powers to the new paradigm of a modern, industrialized nation state and emergent great power, influenced by Western scientific, technological, philosophical, political, legal, and aesthetic ideas. As a result of such wholesale adoption of radically different ideas, the changes to Japan were profound, and affected its social structure, internal politics, economy, military, and foreign relations. The period corresponded to the reign of Emperor Meiji. It was preceded by the Keiō era and was succeeded by the Taishō era, upon the accession of Emperor Taishō.
To convert any Gregorian calendar year between 1868 and 1912 to Japanese calendar year in Meiji era, 1867 needs to be subtracted from the year in question.
The internal code used:
<blockquote <txp:if_yield name="cite_url">cite="<txp:yield name="cite_url" />"</txp:if_yield>> <txp:yield escape="textile" /> <footer> <p>Source: <a href="<txp:yield name="cite_url" />"><txp:yield name="name" /></a></p></footer> </blockquote>
Based on an idea by Keld in the Textpattern forum