Template:cite pu: Difference between revisions

From sona pona, the Toki Pona wiki
Content added Content deleted
(Created page with "<includeonly>Lang, Sonja (2014). ''Toki Pona: The Language of Good''. ''Tawhid''.{{#if:{{{page|{{{1|}}}}}}|<nowiki /> p. {{{page|{{{1}}}}}}}}</includeonly>")
 
No edit summary
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{short|}}}
<includeonly>[[jan Sonja|Lang, Sonja]] (2014). ''[[Toki Pona: The Language of Good]]''. ''Tawhid''.{{#if:{{{page|{{{1|}}}}}}|<nowiki /> p. {{{page|{{{1}}}}}}}}</includeonly>
|{{pu}}{{#switch:{{{2|}}}|fr|de|eo=<nowiki /> ({{ISO|{{{2}}}}})}}{{#if:{{{page|{{{1|}}}}}}|, {{pp|{{{page|{{{1}}}}}}}}}}.
|
{{cite book
|author=[[jan Sonja|Lang, Sonja]]
|date={{#switch:{{{2|}}}
|#default=25 May 2014
|fr=24 April 2016
|de=1 December 2021
|eo=1 October 2022
}}
|title={{pu|{{{2|en}}}}}
|language={{{2|}}}
|translator={{#switch:{{{2|}}}
|#default=<!--N/A-->
|fr=Sonja Lang
|de=[[jan Juli|Julius Strake]]
|eo=[[jan Pensa|Spencer van der Meulen]]
}}
|publisher={{#switch:{{{2|}}}
|#default|fr=Tawhid
|de|eo=<!--Self-published-->
}}
|isbn={{#switch:{{{2|}}}
|#default=978-0978292300
|fr=978-0-9782923-5-5
|de=979-8-7707-5525-1
|eo=978-94-6437-609-8
}}
|oclc={{#switch:{{{2|}}}
|#default=921253340
|fr|de|eo=<!--N/A-->
}}
|page={{{page|{{{1|}}}}}}
|quote={{{quote|}}}
|trans-quote={{{trans-quote|}}}
}}
}}</includeonly><noinclude>{{tp title|pu}}

{|class="wikitable" style="background:transparent;border:0 none transparent;"
!<nowiki>{{{2}}}</nowiki>
!Citation
|-
|{{N/A}}
|{{cite pu}}
|-
|style="text-align:center;"|<code>fr</code>
|{{cite pu||fr}}
|-
|style="text-align:center;"|<code>de</code>
|{{cite pu||de}}
|-
|style="text-align:center;"|<code>eo</code>
|{{cite pu||eo}}
|-
|colspan="2" style="border:0 none transparent;"|
|-
!<nowiki>{{{short}}}</nowiki>
!Citation
|-
|{{yes|yes}}
|{{cite pu|short=yes}}
|}

==Documentation==
===Examples===
{|class="wikitable"
!style="width:50%;"|Code
!style="width:50%;"|Result
|-
|
<syntaxhighlight lang="xml">
Lorem ipsum.<ref>{{cite pu}}</ref>
</syntaxhighlight>
|
Lorem ipsum.<ref>{{cite pu}}</ref>
<references />
|-
|
<syntaxhighlight lang="xml">
Lorem ipsum.<ref>{{cite pu|20}}</ref>
</syntaxhighlight>
|
Lorem ipsum.<ref>{{cite pu|20}}</ref>
<references />
|-
|
<syntaxhighlight lang="xml">
Lorem ipsum.<ref>{{cite pu|20|quote=An adjective is a word that describes a noun.}}</ref>
</syntaxhighlight>
|
Lorem ipsum.<ref>{{cite pu|20|quote=An adjective is a word that describes a noun.}}</ref>
<references />
|-
|
<syntaxhighlight lang="xml">
Lorem ipsum.<ref>{{cite pu|20|short=yes}}<ref>
</syntaxhighlight>
|
Lorem ipsum.<ref>{{cite pu|20|short=yes}}</ref>
<references />
|-
!colspan="2"|
|-
|
<syntaxhighlight lang="xml">
Lorem ipsum.<ref>{{cite pu||fr}}</ref>
</syntaxhighlight>
|
Lorem ipsum.<ref>{{cite pu||fr}}</ref>
<references />
|-
|
<syntaxhighlight lang="xml">
Lorem ipsum.<ref>{{cite pu|22|fr|quote=L'adjectif est un mot qui décrit un nom.|trans-quote=An adjective is a word that describes a noun.}}</ref>
</syntaxhighlight>
|
Lorem ipsum.<ref>{{cite pu|22|fr|quote=L'adjectif est un mot qui décrit un nom.|trans-quote=An adjective is a word that describes a noun.}}</ref>
<references />
|-
|
<syntaxhighlight lang="xml">
Lorem ipsum.<ref>{{cite pu|22|fr|short=yes}}</ref>
</syntaxhighlight>
|
Lorem ipsum.<ref>{{cite pu|22|fr|short=yes}}</ref>
<references />
|}
[[Category:Citation templates]]

===Template data===
<templatedata>
{
"params": {
"1": {
"label": "Page",
"description": "Page number or range (using a comma or en dash)",
"type": "string",
"aliases": [
"page"
],
"example": "1, 3–4",
"suggested": true
},
"2": {
"label": "Language",
"description": "Language of edition of pu, as an ISO 639-1 (2-letter) language code",
"suggestedvalues": [
"en",
"fr",
"de",
"eo"
],
"default": "en",
"type": "string",
"suggested": true
},
"short": {
"label": "Short reference",
"description": "If set, a summarized version of the reference is used.",
"example": "yes",
"type": "boolean"
},
"quote": {
"label": "Quote",
"description": "Quoted passage from pu",
"type": "string",
"example": "In this book, I hope to present the language in its completed form. This is the way I use Toki Pona.",
"suggested": true
},
"trans-quote": {
"label": "Translated quote",
"description": "Translation of quoted passage to English, if the passage is from another language edition",
"type": "string"
}
},
"description": "Returns a citation of pu.",
"paramOrder": [
"1",
"2",
"short",
"quote",
"trans-quote"
],
"format": "inline"
}
</templatedata>
</noinclude>

Latest revision as of 13:19, 2 March 2024

{{{2}}} Citation
Lang, Sonja. (25 May 2014). Toki Pona: The Language of Good. Tawhid. ISBN 978-0978292300. OCLC 921253340.
fr Lang, Sonja. (24 April 2016). Toki Pona: la langue du bien (in French). Translated by Sonja Lang. Tawhid. ISBN 978-0-9782923-5-5.
de Lang, Sonja. (1 December 2021). Toki Pona: Die Sprache des Guten (in German). Translated by Julius Strake. ISBN 979-8-7707-5525-1.
eo Lang, Sonja. (1 October 2022). Tokipono: La lingvo de bono (in Esperanto). Translated by Spencer van der Meulen. ISBN 978-94-6437-609-8.
{{{short}}} Citation
yes pu.

Documentation[edit source]

Examples[edit source]

Code Result
Lorem ipsum.<ref>{{cite pu}}</ref>

Lorem ipsum.[1]

Lorem ipsum.<ref>{{cite pu|20}}</ref>

Lorem ipsum.[1]

Lorem ipsum.<ref>{{cite pu|20|quote=An adjective is a word that describes a noun.}}</ref>

Lorem ipsum.[1]

  1. Lang, Sonja. (25 May 2014). Toki Pona: The Language of Good. Tawhid. ISBN 978-0978292300. OCLC 921253340. p. 20. "An adjective is a word that describes a noun.".
Lorem ipsum.<ref>{{cite pu|20|short=yes}}<ref>

Lorem ipsum.[1]

  1. pu, p. 20.
Lorem ipsum.<ref>{{cite pu||fr}}</ref>

Lorem ipsum.[1]

  1. Lang, Sonja. (24 April 2016). Toki Pona: la langue du bien (in French). Translated by Sonja Lang. Tawhid. ISBN 978-0-9782923-5-5.
Lorem ipsum.<ref>{{cite pu|22|fr|quote=L'adjectif est un mot qui décrit un nom.|trans-quote=An adjective is a word that describes a noun.}}</ref>

Lorem ipsum.[1]

  1. Lang, Sonja. (24 April 2016). Toki Pona: la langue du bien (in French). Translated by Sonja Lang. Tawhid. ISBN 978-0-9782923-5-5. p. 22. "L'adjectif est un mot qui décrit un nom." [An adjective is a word that describes a noun.].
Lorem ipsum.<ref>{{cite pu|22|fr|short=yes}}</ref>

Lorem ipsum.[1]

  1. pu (French), p. 22.

Template data[edit source]

Returns a citation of pu.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page1 page

Page number or range (using a comma or en dash)

Example
1, 3–4
Stringsuggested
Language2

Language of edition of pu, as an ISO 639-1 (2-letter) language code

Suggested values
en fr de eo
Default
en
Stringsuggested
Short referenceshort

If set, a summarized version of the reference is used.

Example
yes
Booleanoptional
Quotequote

Quoted passage from pu

Example
In this book, I hope to present the language in its completed form. This is the way I use Toki Pona.
Stringsuggested
Translated quotetrans-quote

Translation of quoted passage to English, if the passage is from another language edition

Stringoptional