Content deleted Content added
→Full vertical style: implemented, as discussed at Help talk:Citation Style 1 |
Adding category and interwiki ___location comments |
||
(47 intermediate revisions by 17 users not shown) | |||
Line 1:
{{Documentation subpage}}
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
{{template shortcut|csdoc}}
{{notice|When updating this template keep in mind that it is used on a number of template documentation pages. If the parameters in question are unique to a template, then either add it manually to the template documentation or create a new section here for transclusion.}}
Line 6 ⟶ 7:
This template is used to build consistent documentation pages for {{cs1}} templates.
: For example: {{tlx|Citation Style documentation|author}} will show the author documentation.
Where a particular section of documentation is not appropriate for a certain template, simply add the text manually or create a new subtemplate.
Line 32 ⟶ 33:
*** Quote
*** Editors
*** Display options
==Lead section==
Use {{tlx|csdoc|lead|<var>content type</var>}} to create consistent content for the lead:
{{Citation Style documentation/edit|lead}}
Line 53:
==Usage section==
Start the usage section with {{tlx|csdoc|usage}}:
: {{csdoc|usage}}
Parameters to copy are enclosed in tables created by sub-templates.
Line 63:
* Close the table with {{tlx|end}}
{{
{{csdoc|usage full}}
:<code><nowiki>{{cite xxxxx |last1= |first1= |author-link1= |last2= |first2= |author-link2= |last3= |first3= |author-link3= |last4= |first4= |author-link4= |last5= |first5= |author-link5= |name-list-
{{end}}</nowiki>
}}
{{csdoc|usage full}}
:<code><nowiki>{{cite xxxxx |last1= |first1= |author-link1= |last2= |first2= |author-link2= |last3= |first3= |author-link3= |last4= |first4= |author-link4= |last5= |first5= |author-link5= |name-list-
{{end}}
The above set is organised contextually rather than alphabetically. The following parameters, which are usually available for at least a few cite templates, are not included in the full parameter set above:
===Most commonly used horizontal style===
Line 79:
* Close the table with {{tlx|end}}
<syntaxhighlight lang="wikitext">
{{csdoc|usage common}}
:<code>
{{end}}
}}
</syntaxhighlight>
{{csdoc|usage common}}
:<code><nowiki>{{cite book |last= |first= |author-link= |title= |url= |access-date= |date= |publisher= |___location= |isbn= |page= |pages=}}</nowiki></code>
Line 89 ⟶ 90:
===Full vertical style===
The full vertical style can be implemented in a three
====Three
The full vertical style in three columns consists of a "Vertical list", "Prerequisites" and "Brief instructions / notes".
<syntaxhighlight lang="wikitext">
<!--
* Start with:
-->
{{csdoc|usage vertical}}
<pre style="margin:0px;">
<!--
* Create the vertical list column
* Separate the next column with:
-->
</pre>
{{csdoc|usage vertical mid}}
<pre style="margin:0px;">
<!--
* Create the prerequisites column; blank lines must include a
* Separate the next column with:
-->
</pre>
{{csdoc|usage vertical mid}}
<pre style="margin:0px;">
<!--
* Create the instructions column; blank lines must include a
* End with:
-->
</pre>
{{csdoc|usage vertical end}}
</syntaxhighlight>
Example:
<syntaxhighlight lang="wikitext">
{{csdoc|usage vertical}}
<pre style="margin:0px;">
Line 132 ⟶ 133:
{{csdoc|usage vertical mid}}
<pre style="margin:0px;">
&
&
last
&
&
</pre>
{{csdoc|usage vertical mid}}
<pre style="margin:0px;">
&
same as last1
same as first1
&
&
</pre>
{{csdoc|usage vertical end}}
</syntaxhighlight>
{{csdoc|usage vertical}}
<pre style="margin:0px;">
Line 174 ⟶ 175:
{{csdoc|usage vertical end}}
====Four
<syntaxhighlight lang="wikitext">
{| class="wikitable"
|+ Full parameter set in vertical format
! Parameters !! Prerequisites !! Brief instructions / notes !! Vertical list
|-
| {{
|
| Author's last name
| rowspan="3" style="vertical-align:top;" | <pre style="margin:0px; border:none;">
{{cite xxxxx
Line 189:
|first1 =
|author-link1 =
</pre>
|-
| {{
| {{
| Author's first name.
|-
| {{
| {{
| Title of Wikipedia article about the first author. Don't link.
|
</syntaxhighlight>
{| class="wikitable"
|+ Full parameter set in vertical format
! Parameters !! Prerequisites !! Brief instructions / notes !! Vertical list
|-
| {{
|
| Author's last name
| rowspan="
{{cite xxxxx
|last1 =
Line 229 ⟶ 226:
|first5 =
|author-link5 =
|name-list-
|vauthors =
|translator-last1 =
Line 277 ⟶ 274:
|date =
|year =
|orig-
|df =
|publisher =
Line 286 ⟶ 283:
|page =
|pages =
|
|at =
|minutes =
Line 304 ⟶ 301:
|sbn =
|isbn =
|ismn =
|issn =
Line 328 ⟶ 324:
|chapter-url =
|chapter-format =
|access-date =
|
|quote =
|ref =
Line 343 ⟶ 335:
|author-mask5 =
|display-authors =
|translator-mask1 =
|translator-mask2 =
Line 382 ⟶ 373:
|interviewer-mask2 =
|display-interviewers =
|season =
|series-number =
|series-separator =
Line 393 ⟶ 384:
|conference-url =
|conference-format =
</pre>
|-
| {{
| {{
| Author's first name.
|-
| {{
| {{
| Title of Wikipedia article about the first author. Don't link.
|-
| {{
| {{
| Like <code>last1</code>, but for 2nd author.
|-
| {{
| {{
| Like <code>first1</code>, but for 2nd author.
|-
| {{
| {{
| Like <code>author-link1</code>, but for 2nd author.
|-
| {{tooltip|2=or any of its aliases, including: author2; author-last2; (etc.)|last2}}
| Like <code>last1</code>, but for 3rd author.
|-
| {{tooltip|2=or any of its aliases, including: given3; author-first3; (etc.)|first3}}
| {{tooltip|2=or any of its aliases, including: author3; author-last3; (etc.)|last3}}
| Like <code>first1</code>, but for 3rd author.
|-
| {{tooltip|2=or any of its aliases, including: author3-link; subject-link3; (etc.)|author-link3}}
| {{tooltip|2=or any of its aliases, including: author3; author-last3; (etc.)|last3}}
| Like <code>author-link1</code>, but for 3rd author.
|-
| {{tooltip|2=or any of its aliases, including: author4; author-last4; (etc.)|last4}}
| {{tooltip|2=or any of its aliases, including: author3; author-last3; (etc.)|last3}}
| Like <code>last1</code>, but for 4th author.
|-
| {{tooltip|2=or any of its aliases, including: given4; author-first4; (etc.)|first4}}
| {{tooltip|2=or any of its aliases, including: author4; author-last4; (etc.)|last4}}
| Like <code>first1</code>, but for 4th author.
|-
| {{tooltip|2=or any of its aliases, including: author4-link; subject-link4; (etc.)|author-link4}}
| {{tooltip|2=or any of its aliases, including: author4; author-last4; (etc.)|last4}}
| Like <code>author-link1</code>, but for 4th author.
|-
| {{tooltip|2=or any of its aliases, including: author5; author-last5; (etc.)|last5}}
| {{tooltip|2=or any of its aliases, including: author4; author-last4; (etc.)|last4}}
| Like <code>last1</code>, but for 5th author. Similar: last6, etc.
|-
| {{tooltip|2=or any of its aliases, including: given5; author-first5; (etc.)|first5}}
| {{tooltip|2=or any of its aliases, including: author5; author-last5; (etc.)|last5}}
| Like <code>first1</code>, but for 5th author. Similar: first6, etc.
|-
| {{tooltip|2=or any of its aliases, including: author5-link; subject-link5; (etc.)|author-link5}}
| {{tooltip|2=or any of its aliases, including: author5; author-last5; (etc.)|last5}}
| Like <code>author-link1</code>, but for 5th author. Similar: author-link6, etc.
|-
|| name-list-
|-
|| vauthors || ||
Line 474 ⟶ 483:
|| editor-last2 || editor-last1 ||
|-
|| editor-first2 ||
|-
|| editor-link2 ||
|-
|| editor-last3 || editor-last2 ||
|-
|| editor-first3 ||
|-
|| editor-link3 ||
|-
|| veditors || ||
Line 502 ⟶ 511:
|| department || ||
|-
|| chapter || || Chapter title can be wikilinked unless when a <code>
|-
|| script-chapter || ||
Line 530 ⟶ 539:
|| year || ||
|-
|| orig-
|-
|| df || ||
Line 548 ⟶ 557:
|| pages || || choose one: "page", "pages", or "at". Use when content on multiple pages supports the article text.
|-
||
|-
|| at || || choose one: "page", "pages", or "at"
Line 583 ⟶ 592:
|-
|| isbn || || '''always include ISBN''', if one has been assigned
|-
|| ismn || ||
Line 631 ⟶ 638:
|-
|| chapter-format || chapter-url ||
|-
|| access-date || url ||
|-
||
|-
|| quote || ||
Line 660 ⟶ 659:
|| author-mask5 || last5 ||
|-
| {{tooltip|2=or alias displayauthors|display-authors
| {{tooltip|2=or any of its aliases, including: last; author1; author; author-last1; author-last; (etc.)|last1}}
| number (number of authors displayed) or <code>etal</code> (more authors)
|-
|| translator-mask1 || translator-last1 ||
Line 765 ⟶ 764:
|-
! colspan="4" | Additional parameters (available for at least some cite templates)
|-
|| || || || {{para|authors}}
Line 777 ⟶ 774:
|-
|| || || || {{para|docket}}
|-
|| || || || {{para|encyclopedia}}
|-
|| || || || {{para|
|-
|| || ||
|-
|| || || || {{para|number}}
|-
|| || || || {{para|
|-
|| || || || {{para|section}}
Line 831 ⟶ 824:
Use {{tl|markup2}} to format the examples {{crossref|(see that template's documentation for use)}}.
<pre>{{markup2 |t=Basic usage with url
|m=<nowiki>{{cite book |title=Mysterious book |url=https://www.example.com |edition=2nd}}</nowiki>
|r={{cite book |title=Mysterious book |url=https://www.example.com |edition=2nd}}
}}
</pre>
{{markup2 |t=Basic usage with url
|m=<nowiki>{{cite book |title=Mysterious book |url=https://www.example.com |edition=2nd}}</nowiki>
|r={{cite book |title=Mysterious book |url=https://www.example.com |edition=2nd}}
}}
Line 936 ⟶ 929:
{{Citation Style documentation/edit|date}}
{{Citation Style documentation/opt|1=
* '''limited_param_list''' hides '''orig-
}}
Line 985 ⟶ 978:
===chapterurl===
{{Citation Style documentation/edit|chapterurl}}
===quote===
Line 1,031 ⟶ 1,021:
{{Citation Style documentation/edit|conference}}
==
<references/>
{{Citation Style 1}}
{{Wikipedia referencing}}
<includeonly>{{Sandbox other||
<!-- Categories below this line, interwikis to Wikidata please; thank you -->
[[Category:Documentation assistance templates]]
}}</includeonly>
|